From owner-freebsd-current Mon May 6 12:56:47 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA04360 for current-outgoing; Mon, 6 May 1996 12:56:47 -0700 (PDT) Received: from mail.barrnet.net (mail.barrnet.net [131.119.246.7]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id MAA04355 Mon, 6 May 1996 12:56:37 -0700 (PDT) Received: from Root.COM (implode.Root.COM [198.145.90.17]) by mail.barrnet.net (8.7.5/MAIL-RELAY-LEN) with ESMTP id MAA14065; Mon, 6 May 1996 12:56:36 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by Root.COM (8.7.5/8.6.5) with SMTP id MAA07220; Mon, 6 May 1996 12:50:38 -0700 (PDT) Message-Id: <199605061950.MAA07220@Root.COM> X-Authentication-Warning: implode.Root.COM: Host localhost [127.0.0.1] didn't use HELO protocol To: michael butler cc: owensc@enc.edu (Charles Owens), winter@jurai.net, davidg@Root.COM, freebsd-current@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG Subject: Re: MBUFs leaking? In-reply-to: Your message of "Tue, 07 May 1996 00:39:59 +1000." <199605061440.AAA16598@asstdc.scgt.oz.au> From: David Greenman Reply-To: davidg@Root.COM Date: Mon, 06 May 1996 12:50:38 -0700 Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Charles Owens writes: > >> I am seeing the same behavior as well! I also have NMBCLUSTERS set to >> 4096 but according to 'netstat -m', only 156k is allocated to mbufs!! I >> was wondering if I was interpretting it correctly. Any theories? > >I always thought that whilst there is a definable upper bound on how many >clusters might be created, the memory actually used for data was dynamically >allocated (and freed), Clusters are allocated from a private map. Once allocated from the map, they are allocated and freed from a private pool. NMBCLUSTERS determines the size of the map and thus the maximum number that can be allocated from it. The number of clusters currently in-use and in the free pool is what netstat -m reports, and the total of these thus indicates the peak in-use amount. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project