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

Reply via email to