Bug 391571
| Summary: | yum-updates makes gamin wake the disk up every 4 seconds due to a bug | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Arjan van de Ven <arjan> |
| Component: | yum-updatesd | Assignee: | Jeremy Katz <katzj> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 8 | CC: | bnocera, jane.lv |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | 0.9 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2008-01-18 19:51:13 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 204948, 418441 | ||
/me mutters something about actively harmful APIs. Thanks for noticing, fixed in git and I'm prepping an update for sometime within the next week or so (just want to make sure there aren't other things lurking before going through the work of pushing it) yum-updatesd-0.8-2.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update yum-updatesd' yum-updatesd-0.9-1.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update yum-updatesd' yum-updatesd-0.9-1.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report. |
Description of problem: for some reason, yum-updatesd sets gamin to watch some directories, that turn out to be actual files not directories. This causes gamin to go wild and wake the cpu and the disk up every 4 seconds. This isn't very nice for power; especially the disk part. From strace: 22:04:13.698538 poll([{fd=3, events=POLLIN}, {fd=4, events=0}, {fd=5, events=POLLIN}, {fd=4, events=POLLIN}, {fd=7, events=POLLIN}], 5, 4000) = 0 22:04:17.698788 gettimeofday({1195538657, 698846}, NULL) = 0 22:04:17.698920 inotify_add_watch(3, "/var/cache/yum/.gpgkeyschecked.yum", IN_MODIFY|IN_ATTRIB|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR) = -1 ENOTDIR (Not a directory) 22:04:17.699074 inotify_add_watch(3, "/var/cache/yum/timedhosts.txt", IN_MODIFY|IN_ATTRIB|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR) = -1 ENOTDIR (Not a directory) 22:04:17.699213 gettimeofday({1195538657, 699248}, NULL) = 0 22:04:17.699312 poll( <unfinished ...> notice the ENOTDIR error return because of the IN_ONLYDIR flag.. since yum-updatesd is in the default install it would be really nice if this could be fixed in an F8 update; right now it takes power for everyone.