On Tue, Apr 5, 2022 at 11:10 AM Wols Lists <antli...@youngman.org.uk> wrote: > > I don't know how you take advantage of it, but linux by default caches > disk i/o. You can tell it to "don't cache" and apparently it makes a > major difference. Given that rsync reads once and then never uses it > again, you don't want it cached. >
I suggest reading: man posix_fadvise https://insights.oetiker.ch/linux/fadvise/ http://rdiez.shoutwiki.com/wiki/The_Linux_Filesystem_Cache_is_Braindead https://lwn.net/Articles/806980/ https://bugzilla.samba.org/show_bug.cgi?id=9560 There might be something more recent, but my overall impression is that this problem is less solved than it probably ought to be. -- Rich