[Rpm-maint] [rpm-software-management/rpm] Add macro to force fsync() on close() (#187)
notifications at github.com
Fri Apr 14 19:13:06 UTC 2017
One last note: doing fdatasync once, before fadvise+fsync, not after every write is ~10x faster:
FDIO: 30 writes, 3763601 total bytes in 0.003558 secs
FDIO: 1 allocs, 3763601 total bytes in 0.000024 secs
FDIO: 1 dsyncs, 0 total bytes in 0.074081 secs
FDIO: 1 syncs, 0 total bytes in 0.005785 secs
That makes the best case ~17x slower than using the kernel caches. A cost of 17x is almost tolerable in RPM for the benefits of having files written to disk and not blowing out the kernel caches.
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...
More information about the Rpm-maint