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

Re: HAMMER cleanup

From: Oliver Fromme <check+k971m800rspj5ba8@xxxxxxxxxx>
Date: 23 Oct 2008 14:00:50 GMT

Thomas Nikolajsen <thomas.nikolajsen@mail.dk> 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
own strategy.

Best regards

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

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