<div dir="ltr">Hi,<div><br></div><div>Both swift[1] and gluster-swift[2] calls posix_fadvise64()  with POSIX_FADV_DONTNEED</div><div>right after calling fdatasync() or fsync(). This is only performed during object PUT operation</div><div>(writing an object to disk) suggesting the kernel that the data written is no longer needed</div><div>with the hopes that cached pages that are more useful are not discarded instead.</div><div><br></div><div>[1]: <a href="https://github.com/openstack/swift/blob/2105ad2a7f6e56cabea0e0b71c5cae94088fd597/swift/common/utils.py#L833">https://github.com/openstack/swift/blob/2105ad2a7f6e56cabea0e0b71c5cae94088fd597/swift/common/utils.py#L833</a></div><div>[2]: <a href="https://github.com/gluster/gluster-swift/blob/master/gluster/swift/obj/diskfile.py#L300">https://github.com/gluster/gluster-swift/blob/master/gluster/swift/obj/diskfile.py#L300</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 11, 2017 at 10:17 AM, Raghavendra Gowdappa <span dir="ltr">&lt;<a href="mailto:rgowdapp@redhat.com" target="_blank">rgowdapp@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
In a conversation between me, Milind and Csaba, Milind pointed out fadvise(2) [1] and its potential benefits to Glusterfs&#39; caching translators like read-ahead etc. After discussing about it, we agreed that our performance translators can leverage the hints to provide better performance. Now the question is how commonly applications actually provide hints? Is it something that is used quite frequently? If yes, we can think of implementing this in glusterfs (probably kernel-fuse too?). If no, there is not much of an advantage in spending our energies here. Your inputs will help us to prioritize this feature.<br>
<br>
[1] <a href="https://linux.die.net/man/2/fadvise" rel="noreferrer" target="_blank">https://linux.die.net/man/2/<wbr>fadvise</a><br>
<br>
regards,<br>
Raghavendra<br>
______________________________<wbr>_________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@gluster.org">Gluster-devel@gluster.org</a><br>
<a href="http://lists.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">http://lists.gluster.org/<wbr>mailman/listinfo/gluster-devel</a><br>
</blockquote></div><br></div>