readahead(2) - Linux

Ivan Voras ivoras at freebsd.org
Mon Mar 3 13:49:43 UTC 2008


Ed Schouten wrote:
> * carlos neira <cneirabustos at gmail.com> wrote:
>> is there an equivalent of  readahead syscall in linux , for  freebsd ?.
>> i was looking at  http://preload.sourceforge.net/ ,  and it needs this .
> 
> Maybe a mmap(), followed by a madvise()?

Or an open() followed by a read() loop? :) If the goal is to preload the
files, this one is certainly going to do it :)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20080303/4f447077/signature.pgp


More information about the freebsd-hackers mailing list