Date: Wed, 24 Jan 2001 12:34:23 -0800 (PST) From: Luigi Rizzo <rizzo@aciri.org> To: net@freebsd.org Subject: suboptimal mbuf usage Message-ID: <200101242034.f0OKYNP19344@iguana.aciri.org> In-Reply-To: <200101241918.LAA23469@implode.root.com> from David Greenman at "Jan 24, 2001 11:18:50 am"
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, i have been looking at how often a packet which is sent to an ethernet driver is split over multiple mbufs, and it seems that this happens for the vast majority of packets -- basically everything above MHLEN goes into two mbufs, and MTU-sized TCP packets end up using 3 or more mbufs. This is on 4.2, and using ttcp to generate traffic, and ipfw which defaults to accept everything. I seem to remember that there was code at least in TCP which tries to leave room for the link and ip headers, but somehow this seems to fail... Has anyone else noticed this behaviour ? cheers luigi ----------------------------------+----------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . ACIRI/ICSI (on leave from Univ. di Pisa) http://www.iet.unipi.it/~luigi/ . 1947 Center St, Berkeley CA 94704 Phone: (510) 666 2927 ----------------------------------+----------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101242034.f0OKYNP19344>