On Mon, Sep 01, 2008 at 05:29:25PM +0200, ryah dahl <[EMAIL PROTECTED]> wrote:
> I'm trying to understand your emulation for readahead() in libeio. It
> doesn't seem that the eio_buf that is being read into is ever referred
> to again.

Correct.

> Is the idea that calling pread() will cache the file anyway?

The idea is to emulate the linux readahead(2) syscall, which does the same
thing, it reads the data but doesn't use it/transfer it to the app.

> What about using fadvise?

Indeed, what about it? fadvise isn't blocking anywhere I know of (in fact,
fadvise most often simply does nothing), so it is outside the scope of
libeio.

(this might change - I was under the impression that close, futime and
fstat were non-blocking, too, but linux proved me wrong :)

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      [EMAIL PROTECTED]
      -=====/_/_//_/\_,_/ /_/\_\

_______________________________________________
libev mailing list
libev@lists.schmorp.de
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to