Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Mar 2008 09:49:14 +0100
From:      Ed Schouten <ed@80386.nl>
To:        Julian Elischer <julian@elischer.org>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>, Ivan Voras <ivoras@freebsd.org>
Subject:   Re: readahead(2) - Linux
Message-ID:  <20080304084914.GK80576@hoeg.nl>
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

--K4LMwn8CgX2KMboP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Julian Elischer <julian@elischer.org> wrote:
> the aim is to load it into system memory but not copy anything into
> user memory.

madvise() should do the trick, then.

The manpage is quite misleading:

	http://linux.die.net/man/2/readahead

"readahead() populates the page cache with data from a file so that
subsequent reads from that file will not block on disk I/O."

This isn't guaranteed, of course.

--=20
 Ed Schouten <ed@fxq.nl>
 WWW: http://g-rave.nl/

--K4LMwn8CgX2KMboP
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (FreeBSD)

iEYEARECAAYFAkfNDQkACgkQ52SDGA2eCwWpCQCdH9h5jPocoRJ++R+Bodlm192o
dzcAnR6vn7pGiDu8VQHwMgxxltTIaSRP
=leRM
-----END PGP SIGNATURE-----

--K4LMwn8CgX2KMboP--



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