Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Mar 2008 13:32:45 -0800
From:      Julian Elischer <julian@elischer.org>
To:        Ivan Voras <ivoras@freebsd.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: readahead(2) - Linux
Message-ID:  <47CC6E7D.10707@elischer.org>
In-Reply-To: <fqgvlb$s11$1@ger.gmane.org>
References:  <200803022218.32873.cneirabustos@gmail.com>	<20080303081021.GC80576@hoeg.nl> <fqgvlb$s11$1@ger.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.




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