lkml.org 
[lkml]   [2013]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [v2] fadvise: perform WILLNEED readahead asynchronously
Hello,

Il 25/12/2012 03:22, Eric Wong ha scritto:
> Any other (Free Software) applications that might benefit from
> lower FADV_WILLNEED latency?

Not with fadvise but with madvise. Libreoffice / Openoffice.org have
this comment:

// On Linux, madvise(..., MADV_WILLNEED) appears to have the undesirable
// effect of not returning until the data has actually been paged in, so
// that its net effect would typically be to slow down the process
// (which could start processing at the beginning of the data while the
// OS simultaneously pages in the rest); on other platforms, it remains
// to be evaluated whether madvise or equivalent is available and
// actually useful:

See:
http://cgit.freedesktop.org/libreoffice/core/tree/sal/osl/unx/file.cxx#n1213

May the same approach be extended to madvise MADV_WILLNEED?

thanks,
riccardo magliocchetti



\
 
 \ /
  Last update: 2013-01-10 11:42    [W:0.117 / U:2.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site