readahead(2) - Linux

Julian Elischer julian at elischer.org
Mon Mar 3 21:32:44 UTC 2008


Ivan Voras wrote:
> 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 :)
> 
> 

the aim is to load it into system memory but not copy anything into
user memory.



More information about the freebsd-hackers mailing list