Common memory usage questions
Matt McCutchen
matt at mattmccutchen.net
Tue Mar 2 01:23:35 MST 2010
On Wed, 2010-02-10 at 11:34 +0100, Paul Slootman wrote:
> On Tue 09 Feb 2010, Matt McCutchen wrote:
> >
> > The number of files that rsync tries to maintain in the active file
> > lists at one time is controlled by {MIN,MAX}_FILECNT_LOOKAHEAD in
> > rsync.h. I did some tests with "ulimit -v", and reducing those values
> > helped significantly. That still may not be enough to fit rsync into 32
> > MB.
>
> If you're also preserving hard links (-H), then rsync also needs to
> remember each file that's hardlinked (until link_count entries have been
> seen, assumedly).
There is currently no check to forget files once all of their hard links
have been seen.
Note that when --copy-links is used to make the same dentry show up
multiple places in the source, this check (as well as the initial check
that st_nlink > 1) would not be desirable:
http://lists.samba.org/archive/rsync/2009-May/023201.html
--
Matt
More information about the rsync
mailing list