Re: Consider POSIX_FADV_NOREUSE?

Ciprian Craciun via rsync <[email protected]> Mon, 9 Oct 2023 16:30:13 +0300
Newsgroups gmane.network.rsync.general
Message-ID <CA+Tk8fxTna8d9KCj1A1uC84tRp1HAUB_SN35CC0z3jVLbXE18g@mail.gmail.com>
On Fri, Aug 4, 2023 at 3:24 AM Ronan Pigott via rsync
<[email protected]> wrote:
> Maybe it's time to re-evaluate the utility of posix_fadvise in rsync?


I would be glad to see this option added to `rsync`, especially when
mirroring very large sources / targets and I don't want to trash the
file-system cache.

However, I think any of these variants (either "dontneed" or
"noreuse") should be opt-in, because I often use `rsync -n -c` to see
what would change, and then issue a proper `rsync -c` which would
benefit from the file-system cache.  (Also, "dontneed" might be much
more aggressive than "noreuse".)

(BTW, if one starts implementing `fadvise` and friends, then there are
options to tell the file-system that the whole file would be read,
etc.)

Ciprian.

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html