Suggestion for hammer cleanup
Venkatesh Srinivas
me at endeavour.zapto.org
Tue Oct 19 21:59:48 PDT 2010
On Mon, Oct 18, 2010 at 9:31 PM, <elekktretterr at exemail.com.au> wrote:
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
time.
* 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
file)
* 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.
Petr
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.
-- vs
More information about the Users
mailing list