From owner-freebsd-hackers Tue Feb 20 15:32:40 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA14433 for hackers-outgoing; Tue, 20 Feb 1996 15:32:40 -0800 (PST) Received: from Root.COM (implode.Root.COM [198.145.90.17]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id PAA14399 Tue, 20 Feb 1996 15:32:34 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by Root.COM (8.6.12/8.6.5) with SMTP id PAA04282; Tue, 20 Feb 1996 15:31:50 -0800 Message-Id: <199602202331.PAA04282@Root.COM> X-Authentication-Warning: implode.Root.COM: Host localhost didn't use HELO protocol To: Andreas Klemm cc: nao@sbl.cl.nec.co.jp (Naoki Hamada), hackers@FreeBSD.org, current@FreeBSD.org Subject: Re: mbuf enhancement patch In-reply-to: Your message of "Sun, 18 Feb 1996 20:00:52 +0100." <199602181900.UAA02120@knobel.gun.de> From: David Greenman Reply-To: davidg@Root.COM Date: Tue, 20 Feb 1996 15:31:50 -0800 Sender: owner-hackers@FreeBSD.org Precedence: bulk >> I found mbuf's are not buffered though mclusters are. So here is my >> patch for /sys/sys/mbuf.h. This seems to provide me slightly good >> network performance. > >Did one of the core team members accept these patches >officially ?! Will they go into -current ? No. The performance improvemment is actually quite small and the effect of this is that any buffers malloced up to the high water mark won't be available to other parts of the system after they are freed. We generally try to avoid private pools of buffers unless it's absolutely necessary - which is case for mbuf clusters, for example, which has a mechanism for maintaining reference counts that requires them to be allocated out of a private pool. We once had changes similar to the ones you've provided, except we had it so that the buffers over a certain threshold were returned back to malloc. The problem with this was that the malloc type was lost in the process and this messed up the malloc-type accounting (which eventually leads to malloc failures). -DG David Greenman Core-team/Principal Architect, The FreeBSD Project