From owner-freebsd-net Thu Aug 17 11:40:50 2000 Delivered-To: freebsd-net@freebsd.org Received: from silby.com (cb34181-a.mdsn1.wi.home.com [24.14.173.39]) by hub.freebsd.org (Postfix) with ESMTP id 10C6937B669 for ; Thu, 17 Aug 2000 11:40:48 -0700 (PDT) Received: (qmail 17436 invoked by uid 1000); 17 Aug 2000 18:40:44 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 17 Aug 2000 18:40:44 -0000 Date: Thu, 17 Aug 2000 13:40:44 -0500 (CDT) From: Mike Silbersack To: Xiaowei Yang Cc: freebsd-net@freebsd.org Subject: Re: how to set nmbufs In-Reply-To: <200008171440.KAA17967@cordelia.lcs.mit.edu> 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 On Thu, 17 Aug 2000, Xiaowei Yang wrote: > Greetings, everyone, > > I am doing some simulation that needs to allocate as many nmbufs as > possible. I could not figure out how to set nmbufs to be the maximum > value allowd by my physical memory. I tired to mannual set it to be a > huge number, for example, 128MB/128B=1M (I have 196M memory) and used > netstat -m to monitor the real allocated nmbufs. However, when it > reached some value lower that a 1M, a kernel page fault happened. Use options NMBCLUSTERS in your kernel config file to set it. See LINT/NOTES for usage examples. The number of nmbufs will be 4x what you set this value to. Mike "Silby" Silbersack To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message