Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filesystem: revamp udev handling #1806

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

dbungert
Copy link
Collaborator

@dbungert dbungert commented Sep 25, 2023

In LP: #2009141, we are hitting kernel limits and pyudev buffer limits.
We don't care about specific events, so much as getting one event,
waiting for things to calm down, then reprobing.

Outright disable the event monitor, and re-enable later. If there is a
storm of events, testing has shown that stopping the listener is not
enough.

@dbungert dbungert force-pushed the lp-2009141-udev-events branch 3 times, most recently from 858fecb to 67d7625 Compare September 27, 2023 00:40
@dbungert dbungert marked this pull request as ready for review September 27, 2023 00:41
Copy link
Member

@ogayot ogayot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is going in the right direction, but I would appreciate some comments to explain what is being done, including:

  • the fact that the initial call to start_monitor is done after the initial probing operation finishes (which is triggered by FilesystemController._start.
  • the reason why we call stop_monitor in _udev_event. A link to the bug report maybe ?

subiquity/server/controllers/filesystem.py Outdated Show resolved Hide resolved
subiquity/server/controllers/filesystem.py Outdated Show resolved Hide resolved
subiquity/server/controllers/filesystem.py Outdated Show resolved Hide resolved
@dbungert dbungert force-pushed the lp-2009141-udev-events branch 5 times, most recently from c5a5713 to a3d45f0 Compare September 27, 2023 19:24
Copy link
Member

@ogayot ogayot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the changes!

In LP: #2009141, we are hitting kernel limits and pyudev buffer limits.
We don't care about specific events, so much as getting one event,
waiting for things to calm down, then reprobing.

Outright disable the event monitor, and re-enable later.  If there is a
storm of events, testing has shown that stopping the listener is not
enough.
@dbungert dbungert merged commit 9bf0a50 into canonical:main Sep 27, 2023
11 checks passed
@dbungert dbungert deleted the lp-2009141-udev-events branch September 27, 2023 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants