Monitoring running processes by IO
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
powernap |
Fix Released
|
Wishlist
|
Dustin Kirkland |
Bug Description
I think that PowerNap is a very useful utility. However the fact that it is able
to only check if an app is present in the process table is a bit limiting for me.
I'm using PowerNap to reduce the power consumption of my file/web server.
As it is rarely used (usually once per day) I wanted to suspend it when no one is
accessing the files or the web pages for 1/2h or so. Then the server
can be quickly brought up by sending an unicast package (usually ping
or http / nfs request). I'm using "ethtool -s eth1 wol u" to make it
work.
To get such setup running I modified PowerNap to monitor the IO
activity of processes. If there was none in the ABSENT_SECONDS period
PowerNap will be able to suspend the server. I think I managed not to
alter the way PowerNap works when the IO monitoring is not needed.
Also it would be now very easy to add CPU usage monitoring, but for my
purpose IO serves better. This is mainly because lighttpd seems to
wakeup every now and then even if there are no http requests ...
In attachment you'll find a patch against revision 140 from your
trunk. I've been running this for over a month now and it seems to
work as expected. If you'll find this functionality useful then I
would be very happy to see it in some future release :-).
Cheers,
Konrad
Related branches
- Dustin Kirkland : Pending requested
-
Diff: 1509 lines (+1102/-285)10 files modifiedaction (+0/-23)
config (+106/-46)
config_migrate.py (+77/-0)
plugins/IOMonitor.py (+87/-0)
plugins/InputMonitor.py (+131/-0)
plugins/Monitor.py (+67/-0)
plugins/ProcessMonitor.py (+66/-0)
plugins/RemoteMonitor.py (+75/-0)
powernapd (+476/-205)
powernapd.8 (+17/-11)
Changed in powernap: | |
status: | Fix Committed → Fix Released |
Great feature and patch.
I'll get this merged!