DragonFly BSD
DragonFly users List (threaded) for 2010-10
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Suggestion for hammer cleanup


From: Venkatesh Srinivas <me@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 20 Oct 2010 00:55:32 -0400

On Mon, Oct 18, 2010 at 9:31 PM, <elekktretterr@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


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]