I knew if I wrote a patch, better answers would instantly appear.

There is fadvise(FADV_DONTNEED) wrto fsync(2) analogous to 
madvise(MADV_DONTNEED) wrto msync(2). I will add to my patch in the next few 
days for measurement, todo++.

The easy answer for your "Chef installs packages and my databases stall!" is 
likely to run
use nocache from [https://github.com/Feh/nocache](url). There's also a means to 
use a cgroup there to put a resource cap on RPM (or any other application) 
memory usage.

Perhaps the group scripting can be use with rpm lib: todo++.

Meanwhile rsync backups have a similar effect to your RPM issue. Both rpm/rsync 
have huge I/O needs that easily cause cache blowout. Recent rsync has not only 
a solution, but rsync can also use mincore(2) to explicitly verify that no 
blocks/pages from a file remain in the cache. Ditto, todo++ to add to patch ...


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/187#issuecomment-292762306
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to