From owner-freebsd-net Tue Dec 5 5:18:47 2000 From owner-freebsd-net@FreeBSD.ORG Tue Dec 5 05:18:45 2000 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from alijku04.edvz.uni-linz.ac.at (alijku04.edvz.uni-linz.ac.at [140.78.182.1]) by hub.freebsd.org (Postfix) with ESMTP id 4D34237B400 for ; Tue, 5 Dec 2000 05:18:44 -0800 (PST) Received: from sondermuell.oeh.uni-linz.ac.at (root@sondermuell.oeh.uni-linz.ac.at [140.78.214.105]) by alijku04.edvz.uni-linz.ac.at (8.8.8/8.8.8) with ESMTP id OAA134372 for ; Tue, 5 Dec 2000 14:18:42 +0100 Received: from atommuell.oeh.uni-linz.ac.at (root@atommuell.oeh.uni-linz.ac.at [140.78.214.101]) by sondermuell.oeh.uni-linz.ac.at (8.9.3/8.9.3) with ESMTP id OAA06006 for ; Tue, 5 Dec 2000 14:18:54 +0100 Received: from localhost (ferdl@localhost) by atommuell.oeh.uni-linz.ac.at (8.9.3/8.9.3) with ESMTP id OAA16027 for ; Tue, 5 Dec 2000 14:18:53 +0100 (CET) (envelope-from ferdl@atommuell.oeh.uni-linz.ac.at) Date: Tue, 5 Dec 2000 14:18:52 +0100 (CET) From: Ferdinand Goldmann To: freebsd-net@freebsd.org Subject: hints on mbuf calculation needed Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Greetings. I have three questions about the value of NMBCLUSTERS: - Is there any way to tell in advance how high I need to set this value to have enough? I.e., I have a machine which does forwarding to a proxy and firewalling/traffic shaping for about 6-700 clients, no local users - how high should the value of NMBCLUSTERS be? Current usage is: $ netstat -m 748/1360/16384 mbufs in use (current/peak/max): 163 mbufs allocated to data 585 mbufs allocated to packet headers 163/582/4096 mbuf clusters in use (current/peak/max) 1504 Kbytes allocated to network (12% of mb_map in use) 0 requests for memory denied 0 requests for memory delayed 0 calls to protocol drain routines This short after a reboot, the value of mbuf clusters rises to ~2000 after some time. - Memory consumption: How much memory does one mbuf eat up? I'd like to have a formula to answer the question "I have 32MB RAM, how many NMBCLUSTERS can I compile into my kernel until that RAM will be eaten up?" - What's the difference between 'mbuf' and 'mbuf clusters' *blush*? Regards, Ferdinand Goldmann To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message