readahead(2) - Linux
Mike Bristow
mike at urgle.com
Thu Mar 6 13:57:59 UTC 2008
Julian Elischer wrote:
> 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.
sendfile(2) to /dev/null, perhaps.
More information about the freebsd-hackers
mailing list