<p>Yes, fdatasync+fadvise_syncfs removes pages from system cache:</p>
<p><code>--> Fincore(0x614000008e40) fdno 16 path /opt/local/tmp/lib/modules/4.11.0-0.rc6.git2.1.fc27.x86_64/System.map;58f7761a <-- Fincore(0x614000008e40) fdno 16 rc 0 <-- fdClose(0x614000008e40) rc 0 | UFD -1 fp 0x612000004e40 FDIO: 30 write(s), 3763601 total bytes in 0.003806 secs FDIO: 32 digest(s), 3763601 total bytes in 0.037065 secs FDIO: 1 alloc(s), 3763601 total bytes in 0.000040 secs FDIO: 1 datasync(s), 0 total bytes in 0.072015 secs FDIO: 1 syncfs(s), 0 total bytes in 0.063909 secs FDIO: 2 incore(s), 3764224 total bytes in 0.000263 secs</code></p>
<p>I'm not sure whether per-partition rather than per-file durability is usefully needed for RPM.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/pull/187#issuecomment-295296195">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ANb809SOg5vmYnLLCr604OfJyIwSWSsYks5rxh6_gaJpZM4MyLOi">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ANb802GbWZIbgvUXccDY22dl2puggeVCks5rxh6_gaJpZM4MyLOi.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/rpm-software-management/rpm/pull/187#issuecomment-295296195"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/rpm-software-management/rpm","title":"rpm-software-management/rpm","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/rpm-software-management/rpm"}},"updates":{"snippets":[{"icon":"PERSON","message":"@n3npq in #187: Yes, fdatasync+fadvise_syncfs removes pages from system cache:\r\n\r\n`\r\n--\u003e Fincore(0x614000008e40) fdno 16 path /opt/local/tmp/lib/modules/4.11.0-0.rc6.git2.1.fc27.x86_64/System.map;58f7761a\r\n\u003c-- Fincore(0x614000008e40) fdno 16 rc 0\r\n\u003c--     fdClose(0x614000008e40) rc 0    | UFD -1 fp 0x612000004e40\r\n FDIO:      30    write(s),  3763601 total bytes in 0.003806 secs\r\n FDIO:      32   digest(s),  3763601 total bytes in 0.037065 secs\r\n FDIO:       1    alloc(s),  3763601 total bytes in 0.000040 secs\r\n FDIO:       1 datasync(s),        0 total bytes in 0.072015 secs\r\n FDIO:       1   syncfs(s),        0 total bytes in 0.063909 secs\r\n FDIO:       2   incore(s),  3764224 total bytes in 0.000263 secs\r\n`\r\n\r\nI'm not sure whether per-partition rather than per-file durability is usefully needed for RPM."}],"action":{"name":"View Pull Request","url":"https://github.com/rpm-software-management/rpm/pull/187#issuecomment-295296195"}}}</script>