Re: [PATCH] TCP Zero Copy for mmapped files

Gianni Tedesco (gianni@ecsc.co.uk)
06 Jan 2003 14:36:19 +0000


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-24074-1041863789-0001-2
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Fri, 2003-01-03 at 01:59, Alan Cox wrote:
> You may not be doing an mmap a send, its more likely to look like
>=20
> page =3D hash(url);
> memcpy(current_time, page->clock, TIMESIZE);
> write(sock, page->data, page->len);

If your web data rarely changes, it could also be all the files stored
in a hashfile database covered by one large mmap, eliminating filesystem
overhead (and vma overhead).

--=20
// Gianni Tedesco (gianni at scaramanga dot co dot uk)
lynx --source www.scaramanga.co.uk/gianni-at-ecsc.asc | gpg --import
8646BE7D: 6D9F 2287 870E A2C9 8F60 3A3C 91B5 7669 8646 BE7D

--=_courier-24074-1041863789-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.0.7 (GNU/Linux)

iD8DBQA+GZRjkbV2aYZGvn0RAvBWAJ951cMC9dOxoDWI0w6UuWEpMmoFbACeJCNI
2jgq8MgfTWnzSkj9RNadQOs=
=PCDm
-----END PGP SIGNATURE-----

--=_courier-24074-1041863789-0001-2--