How to bypass buffer caches?

Bruno Diniz de Paula (diniz@cs.rutgers.edu)
13 Feb 2003 12:29:12 -0500


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-6885-1045157393-0001-2
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

I've sent some messages about using O_DIRECT to read files, but I
suppose that is not possible using 2.4 kernel and ext2. So I was
wondering which other alternatives I have to bypass the buffer cache of
the kernel. One option would be create a raw device on top of my disk
partition, but in this case I would have to learn how to map a logical
file name (/var/tmp/myfile) to a set of block disks. Is there any other
solution? Can I disable buffer caches or at least limit their memory
utilization?

Thanks,

Bruno.
--=20
Bruno Diniz de Paula <diniz@cs.rutgers.edu>
Rutgers University

--=_courier-6885-1045157393-0001-2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Transfer-Encoding: 7bit
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQA+S9XmZGORSF4wrt8RApiXAJ9mqMpQHB0uK0zG7QjFm59O2MIzywCfSEZA
K90e4RGsVuChx86w9g19/AE=
=mKgs
-----END PGP SIGNATURE-----

--=_courier-6885-1045157393-0001-2--