[Rpm-maint] [rpm-software-management/rpm] Add macro to force fsync() on close() (#187)

Jeff Johnson notifications at github.com
Sun Apr 9 03:57:14 UTC 2017

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:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170408/5d7e5cf2/attachment.html>

More information about the Rpm-maint mailing list