samba-technical@lists.samba.org
[Top] [All Lists]

Re: readahead() which is Linux-only vs. posix_fadvise()

Subject: Re: readahead) which is Linux-only vs. posix_fadvise(
From: Henrik Nordstrom
Date: Thu, 10 May 2007 23:28:26 +0200
ons 2007-05-09 klockan 21:35 -0400 skrev derrell@xxxxxxxxx:

> In researching this, I discovered what appears to be a POSIX replacement.  It
> looks like readahead is equivalent to posix_fadvise(..., POSIX_FADV_WILLNEED).

Not entirely equivalent. readahead() blocks, while POSIX_FADV_WILLNEED
doesn't..

Regards
Henrik
<Prev in Thread] Current Thread [Next in Thread>