From owner-freebsd-questions Thu Dec 5 2: 9:11 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EAA0A37B401; Thu, 5 Dec 2002 02:09:09 -0800 (PST) Received: from gull.mail.pas.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8962A43E9C; Thu, 5 Dec 2002 02:09:09 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0020.cvx40-bradley.dialup.earthlink.net ([216.244.42.20] helo=mindspring.com) by gull.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 18JswL-0002ll-00; Thu, 05 Dec 2002 02:09:06 -0800 Message-ID: <3DEF2573.D8C66C11@mindspring.com> Date: Thu, 05 Dec 2002 02:07:47 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Varshavchick Alexander Cc: freebsd-questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: maxusers and random system freezes References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Varshavchick Alexander wrote: > On Wed, 4 Dec 2002, Terry Lambert wrote: > .... > > grep -B 7 KVA_ /sys/i386/conf/LINT > > Thanks a lot Terry, and will you please correct me if I'm wrong, so I > don't mess anything up on a production server? The kernel option in > question is KVA_PAGES, correct? Yes. > Because it's not defined in the custom > server's kernel then it's value default to 256 (FreeBSD 4.5-STABLE), which > makes the KVA space to occupy 1G. Then if I make KVA_PAGES=512 (KVA space > 2G), will it solve the problem for this particular server having 4G of > phisical memory, or must KVA_PAGES be 768 (KVA space 3G)? Have some other > options to be tuned besides KVA_PAGES? IMO, KVA need to be more than half of physical memory. But I tend to use a lot of mbufs and mbuf clusters in products I work on lately (mostly networking stuff). If you don't tune kernel memory usage up, then you may be able to get away with 2G. So: 2G might be OK, 3G would be more certain, given you are cranking some things up, in the config you posted, that make me think you will be eating more physical memory. If you follow the 1.5 rule, then you will have 6G of swap when you have 4G of physical RAM, and will definitely need to go for 3G of KVA space. Note, though: all space you add to KVA is subtracted from the process address space, so if you need big processes, sometimes you are better off with less physical RAM, and a larger user virtual address space. For other tuning information, see also "man tuning". -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message