DragonFly users List (threaded) for 2010-10
Re: Suggestion for hammer cleanup
On Mon, Oct 18, 2010 at 9:31 PM, <firstname.lastname@example.org>
What about hammerd?
* Starts when system starts
* Wakes up every 10 seconds or so to check current system load/memory
usage to estimate if its appropriate to run a cleanup operation at this
* Can have a text file configuration where you can specify maximum
size(GB) of history per PFS or % of disk space
* Remembers last time it was run (stores information on disk in some text
* Maybe it can detect if it's a laptop and running on battery to defer
cleanup till power is plugged in?
The daemon itself would be fairly inexpensive to run.
I rather like the idea of hammer(e)d; I've been joking for a while about a HammerTimeDaemon, which would watch for specific udev events from a certain USB key/disk and hammer mirror-stream onto it... hammerd would be a nice place to put hammer things to run on some conditions rather than a schedule.