rsync and posix_fadvise

Tobias Oetiker tobi at
Wed Sep 20 20:28:12 GMT 2006


I use rsync for hardlink-backup ... since I run this quite
frequently, linux happily fills its cache with stuff that should
not realy go there .... I have set /proc/sys/vm/swappiness to 0
which helps, but since this acts across board it is not ideal.

Better would be to use posix_fadvise to POSIX_FADV_DONTNEED drop
the cache while reading and writing to disk ...

I did not find anything in the archive on this ... has anyone
attempted to implement this ?


Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten tobi at ++41 62 213 9902

More information about the rsync mailing list