-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Don't wakeup unnecessarily in 'zpool events -f' #9091
Conversation
Signed-off-by: DHE <[email protected]>
Is there a good reason for the polling-wait? I can't think of one. |
Codecov Report
@@ Coverage Diff @@
## master #9091 +/- ##
==========================================
+ Coverage 70.83% 79.07% +8.24%
==========================================
Files 351 401 +50
Lines 115431 121648 +6217
==========================================
+ Hits 81760 96189 +14429
+ Misses 33671 25459 -8212
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I agree. We shouldn't need to periodically wake up, when an event in posted it's broadcast to the CV so we'll get notified.
ZED can prevent CPU's from properly sleeping. Rather than periodically waking up in the zevents code, just go to sleep and wait for a wakeup. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Signed-off-by: DHE <[email protected]> Closes openzfs#9091
ZED can prevent CPU's from properly sleeping. Rather than periodically waking up in the zevents code, just go to sleep and wait for a wakeup. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Signed-off-by: DHE <[email protected]> Closes openzfs#9091
ZED can prevent CPU's from properly sleeping. Rather than periodically waking up in the zevents code, just go to sleep and wait for a wakeup. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Signed-off-by: DHE <[email protected]> Closes openzfs#9091
ZED can prevent CPU's from properly sleeping. Rather than periodically waking up in the zevents code, just go to sleep and wait for a wakeup. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Signed-off-by: DHE <[email protected]> Closes openzfs#9091
ZED can prevent CPU's from properly sleeping. Rather than periodically waking up in the zevents code, just go to sleep and wait for a wakeup. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Tony Hutter <[email protected]> Signed-off-by: DHE <[email protected]> Closes #9091
Signed-off-by: DHE [email protected]
Motivation and Context
A user in IRC came in complaining that
zed
was preventing his laptop CPU from properly sleeping. Traced it down to this.Description
Rather than quasi-busy-waiting in the zevents code, just go to sleep and wait for a wakeup.
How Has This Been Tested?
Build-tested only at this point. It's late as I type this.
Types of changes
Checklist:
Signed-off-by
.