DragonFly kernel List (threaded) for 2008-10
Re: HAMMER cleanup
Thomas Nikolajsen <email@example.com> wrote:
> Anyway I think we should be able to choose *one* default cleanup strategy;
> newbies won't have to worry and expert users will disable default and
> impelment their own strategy anyway.
A simple yet versatile default strategy would be to run
the cleanup in a nightly cronjob which stores the current
date+time in a file somewhere. Additionally, upon system
boot a job is started in the background that first sleeps
for half an hour (to avoid heavy I/O right after boot),
then it checks the above mentioned file. If there was no
cleanup the previous night, it starts one right away. A
similar check could be done when waking up from suspend.
That strategy would suit servers (up 24h/d) as well as
desktops or laptops that don't usually run at night.
Of course, as you pointed out, there should be a way for
expert users to disable the default and implement their
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart
FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd