From owner-freebsd-net Thu Aug 17 18:55:31 2000 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.129.65]) by hub.freebsd.org (Postfix) with ESMTP id 3111B37BDE3 for ; Thu, 17 Aug 2000 18:51:26 -0700 (PDT) Received: from field.videotron.net (field.videotron.net [205.151.222.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 358676E3A46 for ; Thu, 17 Aug 2000 13:46:20 -0700 (PDT) Received: from modemcable136.203-201-24.mtl.mc.videotron.net ([24.201.203.136]) by field.videotron.net (Sun Internet Mail Server sims.3.5.1999.12.14.10.29.p8) with ESMTP id <0FZG004QYELCJ1@field.videotron.net> for freebsd-net@FreeBSD.ORG; Thu, 17 Aug 2000 16:36:48 -0400 (EDT) Date: Thu, 17 Aug 2000 16:39:44 -0400 (EDT) From: Bosko Milekic Subject: Re: how to set nmbufs In-reply-to: <200008171440.KAA17967@cordelia.lcs.mit.edu> X-Sender: bmilekic@jehovah.technokratis.com To: Xiaowei Yang Cc: freebsd-net@FreeBSD.ORG 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 Hi, I'm afraid you'll need to provide much more information concerning the page fault, if you expect someone to be able to help you. In particular, the following is the necessary minimum: * FreeBSD version you're doing this with. * Is this reproducable? If so, what is the exact procedure? * Stack trace, as well as other available debugging information following the page fault. With the information you have presently provided, it may not even be the relevant code that is causing this fault. It could just be triggering a problem that occurs only when kmem_map is mostly occupied by the mb_map submap, and the size of the kmem_map (or its parent, kernel_map), may need to be increased. Bosko bmilekic@dsuper.net 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. > > It seems to me I also need to increase the maximum kernel memory size > seperately. Can someone tell me how to do it right? Is there a simple > formula to estimate the number? > > > Thanks, > > Xiaowei > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message