On Wed, Nov 3, 2010 at 10:58 PM, Ben Gamari <bgamari.f...@gmail.com> wrote:

> It looks like a few folks have discussed addressing the issue in the past,
> but nothing has happened as of 2.6.36.


Yeah, the linux code for this has long been buggy and near useless.  What is
really needed is a way for some file access to be marked as generating
low-priority cache data into the filesystem cache.  Such a flag should only
apply to newly cached data, so that copying a file that was cached by some
other program would not lower its cache priority (nor kick it out of the
cache).  If some other process comes along and reads from the low-priority
cache with a normal-priority read, it should get upgraded to normal
priority.  Something like that seems pretty simple and useful.

As for rsync, all current implementations of cache dropping are way too
klugey to go into rsync.  I'd personally suggest that someone create a
linux-specific pre-load library that overrides read() and write() calls and
use that when running rsync (or whatever else) to implement the extreme
weirdness that is currently needed for cache twiddling.

..wayne..
-- 
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

Reply via email to