samba-bugs at samba.org
2009-Dec-21 20:56 UTC
DO NOT REPLY [Bug 7004] New: Use posix_fadvise to free cached file contents when done
https://bugzilla.samba.org/show_bug.cgi?id=7004 Summary: Use posix_fadvise to free cached file contents when done Product: rsync Version: 3.0.6 Platform: All OS/Version: Linux Status: NEW Severity: enhancement Priority: P3 Component: core AssignedTo: wayned at samba.org ReportedBy: ted at midg3t.net QAContact: rsync-qa at samba.org It would be good if rsync used posix_fadvise with POSIX_FADV_DONTNEED to notify the kernel when it no longer needs file contents that have been synced to prevent useful cache contents being dropped in favor of never-reused rsynced files. Tobias Oetiker wrote a patch & documentation about this: http://insights.oetiker.ch/linux/fadvise.html -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs at samba.org
2010-Nov-03 12:54 UTC
DO NOT REPLY [Bug 7004] Use posix_fadvise to free cached file contents when done
https://bugzilla.samba.org/show_bug.cgi?id=7004 ------- Comment #1 from bgamari at gmail.com 2010-11-03 07:54 CST ------- What is the status of this? Grepping the source for fadvise turns up nothing. It seems the patch has even been ported up to 3.0.7 [1] [1] http://tobi.oetiker.ch/patches/rsync-3.0.7-fadvise.patch -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs at samba.org
2010-Nov-06 16:03 UTC
DO NOT REPLY [Bug 7004] Use posix_fadvise to free cached file contents when done
https://bugzilla.samba.org/show_bug.cgi?id=7004 wayned at samba.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX ------- Comment #2 from wayned at samba.org 2010-11-06 11:03 CST ------- I don't feel this patch is general enough nor straight-forward enough to make it into rsync. It would be better for someone to write a a pre-load library that could be used with any copy program rather than putting this into rsync. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
samba-bugs at samba.org
2018-Oct-24 07:29 UTC
[Bug 7004] Use posix_fadvise to free cached file contents when done
https://bugzilla.samba.org/show_bug.cgi?id=7004 --- Comment #3 from Arkadiusz Miskiewicz <arekm at maven.pl> --- The rsync filling up kernel cache is a problem on bigger backup servers. These days POSIX_FADV_DONTNEED is commonly implemented in unix systems. Anyway as temporary/not optimal workaround: https://github.com/Feh/nocache (if not wanting to patch rsync). -- You are receiving this mail because: You are the QA Contact for the bug.
Apparently Analagous Threads
- FADV_DONTNEED support
- [PATCH nbdkit] file: Implement cache=none and fadvise=normal|random|sequential.
- Re: [PATCH nbdkit] file: Implement cache=none and fadvise=normal|random|sequential.
- [RFC PATCH] fadvise support in rsync
- [PATCH nbdkit] plugins: file: More standard cache mode names