[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[rdiff-backup-users] [PATCH] Adjust librdiff blocksize for files > 1GB
From: |
Eric Wheeler |
Subject: |
[rdiff-backup-users] [PATCH] Adjust librdiff blocksize for files > 1GB |
Date: |
Sun, 02 Jan 2011 20:26:12 -0800 |
Hello all,
At the expensive of slightly increased diff blocks, I propose we align
the librsync blocksize to be RAID-stripe-size friendly.
Currently, rdiff-backup uses a librsync blocksize of "16-byte aligned
square_root(file_length)".
For large files, square_root returns values that are not condusive to
RAID stripe sizes. For example, a 5GB file would have a block size of
73264.
The attached patch forces the librsync blocksize to multiples of
Globals.blocksize (which is currently 128k) for files > 1GB.
Please let me know what you think, I'm open to comments and suggestions.
-Eric
--
Eric Wheeler
President
eWheeler, Inc.
dba Global Linux Security
www.GlobalLinuxSecurity.pro
503-330-4277
PO Box 14707
Portland, OR 97293
1-blocksize.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [rdiff-backup-users] [PATCH] Adjust librdiff blocksize for files > 1GB,
Eric Wheeler <=