Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Mar 2008 14:53:10 +0100
From:      Ivan Voras <ivoras@freebsd.org>
To:        freebsd-hackers@freebsd.org
Subject:   Re: readahead(2) - Linux
Message-ID:  <fqgvlb$s11$1@ger.gmane.org>
In-Reply-To: <20080303081021.GC80576@hoeg.nl>
References:  <200803022218.32873.cneirabustos@gmail.com> <20080303081021.GC80576@hoeg.nl>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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 :)



[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHzALGldnAQVacBcgRAv+TAKC4fCFIvoblvjrDOnXCAEuty4dHwgCghLNN
i8LydGGXnqMjoz6sRAOEWsg=
=IHmO
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fqgvlb$s11$1>