From owner-freebsd-hackers Thu Dec 5 2:36:34 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7EF9737B401; Thu, 5 Dec 2002 02:36:32 -0800 (PST) Received: from apache.metrocom.ru (www.metrocom.ru [195.5.128.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F1E043EA9; Thu, 5 Dec 2002 02:36:31 -0800 (PST) (envelope-from alex@metrocom.ru) Received: from apache.metrocom.ru (localhost [127.0.0.1]) by apache.metrocom.ru (8.12.3/8.12.3) with ESMTP id gB5AaSck024120; Thu, 5 Dec 2002 13:36:28 +0300 (MSK) Received: from localhost (alex@localhost) by apache.metrocom.ru (8.12.3/8.12.3/Submit) with ESMTP id gB5AaSEb024117; Thu, 5 Dec 2002 13:36:28 +0300 (MSK) X-Authentication-Warning: apache.metrocom.ru: alex owned process doing -bs Date: Thu, 5 Dec 2002 13:36:28 +0300 (MSK) From: Varshavchick Alexander To: Terry Lambert Cc: , Subject: Re: maxusers and random system freezes In-Reply-To: <3DEF2573.D8C66C11@mindspring.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 5 Dec 2002, Terry Lambert wrote: ... > > 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. Are you talking primarily about SHMMAXPGS=262144 option here? Then may be it'll be oevrall better to reduce it and make KVA space 2G, to leave more room for user address space? You see, there cannot be any much possibility to make experiments with this server, so I very much relay on your advices, thank you again. > > 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. > No, the swap is very slightly used on this server, and the total swap size is 2G. > 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". ---- Alexander Varshavchick, Metrocom Joint Stock Company Phone: (812)118-3322, 118-3115(fax) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message