| Summary: | Use qmf::posix::EventNotifier to improve performance on Linux | ||
|---|---|---|---|
| Product: | [Retired] Matahari | Reporter: | Russell Bryant <rbryant> |
| Component: | matahari | Assignee: | Zane Bitter <zbitter> |
| Status: | CLOSED WONTFIX | QA Contact: | Dave Johnson <dajohnso> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | unspecified | CC: | astokes, matahari-maint, rbryant, walters, whayutin, zbitter |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-07-17 12:30:18 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 751431 | ||
|
Description
Russell Bryant
2012-01-03 13:15:25 UTC
I took a look at this and it's not quite as easy as I hoped. It actually doesn't help anything as long as we're using the glib main loop. You can have the main loop poll an fd for you, but it's still waking up the process just as often to do so as it was before. You can't just have it block on poll(). I think the best thing to do here would be to consider switching to libqb. (In reply to comment #1) > I took a look at this and it's not quite as easy as I hoped. It actually > doesn't help anything as long as we're using the glib main loop. You can have > the main loop poll an fd for you, but it's still waking up the process just as > often to do so as it was before. You can't just have it block on poll(). I'm likely missing some context here, but that just sounds wrong. The GLib mainloop *definitely* supports passing -1 as a timeout to poll(). If you suspect there's a bug or deficiency, feel free to file a bug at http://bugzilla.gnome.org, component glib. |