[Box Backup] Housekeeping hogging the server

Chris Wilson boxbackup at fluffy.co.uk
Sun Oct 22 23:29:02 BST 2006


Hi all,

On Fri, 20 Oct 2006, Per Thomsen wrote:
> On 10/20/06 2:13 PM, Jan Rychter wrote:
>> I have one annoyance, though: bbstored does its housekeeping, which in
>> my case both consumes a lot of CPU time and does a lot of I/O, which
>> slows the server machine down a lot.
[...]
> A bit of explanation: The housekeeping process keeps the accounts within
> their respective limits for the amount of backed up data. To do that, it
> needs to check which files are the oldest, and get rid of them from the
> store. This takes CPU and I/O.

I still think the client should do its own housekeeping, and implement 
whatever policy it chooses on how long to keep old versions of files.

I think that the only protocol change that would be needed is an 
additional client->server command which causes a file to be immediately 
deleted (not just marking it as due for deletion).

Of course, the current housekeeping code would need to be moved or copied 
from the server to the client.

If we want to support low-spec servers, this seems like a good idea, since 
it would enable the server operator to disable the housekeeping process 
completely.

Cheers, Chris.
-- 
_ ___ __     _
  / __/ / ,__(_)_  | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |




More information about the Boxbackup mailing list