Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Mar 2008 22:29:23 +0000
From:      Mike Bristow <mike@urgle.com>
To:        Julian Elischer <julian@elischer.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: readahead(2) - Linux
Message-ID:  <47CC7BC3.3020504@urgle.com>
In-Reply-To: <47CC6E7D.10707@elischer.org>
References:  <200803022218.32873.cneirabustos@gmail.com>	<20080303081021.GC80576@hoeg.nl>	<fqgvlb$s11$1@ger.gmane.org> <47CC6E7D.10707@elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Julian Elischer wrote:
> Ivan Voras wrote:
>> Ed Schouten wrote:
>>> * carlos neira <cneirabustos@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47CC7BC3.3020504>