From owner-freebsd-net Thu Aug 17 7:41:10 2000 Delivered-To: freebsd-net@freebsd.org Received: from cordelia.lcs.mit.edu (cordelia.lcs.mit.edu [18.26.0.55]) by hub.freebsd.org (Postfix) with ESMTP id CFFAA37B635 for ; Thu, 17 Aug 2000 07:41:06 -0700 (PDT) Received: from cordelia.lcs.mit.edu (localhost [127.0.0.1]) by cordelia.lcs.mit.edu (8.9.3/8.9.3) with ESMTP id KAA17967 for ; Thu, 17 Aug 2000 10:40:53 -0400 (EDT) (envelope-from yxw@cordelia.lcs.mit.edu) Message-Id: <200008171440.KAA17967@cordelia.lcs.mit.edu> From: Xiaowei Yang To: freebsd-net@freebsd.org Subject: how to set nmbufs Date: Thu, 17 Aug 2000 10:40:53 -0400 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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