From owner-freebsd-hackers Fri Dec 6 4:32:44 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 996E937B401; Fri, 6 Dec 2002 04:32:42 -0800 (PST) Received: from apache.metrocom.ru (www.metrocom.ru [195.5.128.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 488CB43EB2; Fri, 6 Dec 2002 04:32:41 -0800 (PST) (envelope-from alex@metrocom.ru) Received: from apache.metrocom.ru (localhost [127.0.0.1]) by apache.metrocom.ru (8.12.6/8.12.6) with ESMTP id gB6CWTtg021952; Fri, 6 Dec 2002 15:32:32 +0300 (MSK) Received: from localhost (alex@localhost) by apache.metrocom.ru (8.12.6/8.12.6/Submit) with ESMTP id gB6Bs3bY016610; Fri, 6 Dec 2002 14:54:03 +0300 (MSK) X-Authentication-Warning: apache.metrocom.ru: alex owned process doing -bs Date: Fri, 6 Dec 2002 14:54:03 +0300 (MSK) From: Varshavchick Alexander To: David Schultz Cc: Terry Lambert , , Subject: Re: maxusers and random system freezes In-Reply-To: <20021206112942.GA16222@HAL9000.homeunix.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 Fri, 6 Dec 2002, David Schultz wrote: > > vm.zone_kmem_pages: 5413 > > vm.zone_kmem_kvaspace: 218808320 > > vm.kvm_size: 1065353216 > > vm.kvm_free: 58720256 > > > > does it mean that total KVA reservation is 1065353216 bytes (1G) and > > almost all of it is really mapped to physical memory because only 58720256 > > (56M) is free, and the server is balancing on the edge of crashing with > > KVA going out? > > Yes, 56 MB of unreserved kernel virtual memory (modulo > fragmentation) is probably pushing it for a busy server. > Try bumping KVA_PAGES. > Well, now I made KVA space 2G, we'll see later on if it helps to get rid of the sudden system halts, but for some reason a side-effect has appeared: pthread_create function returns EAGAIN error now, so I had to recompile the software using it with linux threads to make it working. With the old kernel these pieces worked without problems. Can it be that somehow the enlarged KVA space messed up with the threads mechanism? ---- 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