From 2e5e834e37fad52f4e5471117b809ce68e6e88d3 Mon Sep 17 00:00:00 2001 From: bescoto Date: Tue, 25 Oct 2005 01:57:32 +0000 Subject: Increased buffer sizes by a factor of 4 git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@650 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109 --- rdiff-backup/CHANGELOG | 3 +++ rdiff-backup/rdiff_backup/Globals.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG index 01b7c18..75f65f9 100644 --- a/rdiff-backup/CHANGELOG +++ b/rdiff-backup/CHANGELOG @@ -5,6 +5,9 @@ Refactored fs_abilities for more flexibility. In particular, avoid quoting if both source and destination file systems are case-insensitive. +Increased buffer sizes by factor of 4, because everyone probably has 4 +times as much RAM now as when I originally picked those values. + When possible, fsync using a writable file descriptor. This may help with cygwin. (Requested/tested by Dave Kempe.) diff --git a/rdiff-backup/rdiff_backup/Globals.py b/rdiff-backup/rdiff_backup/Globals.py index 9a34238..a0afe99 100644 --- a/rdiff-backup/rdiff_backup/Globals.py +++ b/rdiff-backup/rdiff_backup/Globals.py @@ -30,12 +30,12 @@ version = "$version" current_time = None # This determines how many bytes to read at a time when copying -blocksize = 32768 +blocksize = 131072 # This is used by the BufferedRead class to determine how many # bytes to request from the underlying file per read(). Larger # values may save on connection overhead and latency. -conn_bufsize = 98304 +conn_bufsize = 393216 # This is used in rorpiter.CacheIndexable. The number represents the # number of rpaths which may be stuck in buffers when moving over a -- cgit v1.2.1