SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
[PATCH] Adjust librdiff blocksize for files > 1GB
Author Message
Post [PATCH] Adjust librdiff blocksize for files > 1GB 
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



_______________________________________________
rdiff-backup-users mailing list at rdiff-backup-users < at > nongnu.org
http://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB