From owner-freebsd-net Thu Nov 21 12:55:20 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 87E1E37B401; Thu, 21 Nov 2002 12:55:18 -0800 (PST) Received: from HAL9000.homeunix.com (12-232-220-15.client.attbi.com [12.232.220.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EFCB43E88; Thu, 21 Nov 2002 12:55:17 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id gALKtGm9005830; Thu, 21 Nov 2002 12:55:16 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id gALKtG54005829; Thu, 21 Nov 2002 12:55:16 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Date: Thu, 21 Nov 2002 12:55:15 -0800 From: David Schultz To: Petri Helenius Cc: freebsd-questions@FreeBSD.ORG, freebsd-net@FreeBSD.ORG Subject: Re: panic: kmem_map too small Message-ID: <20021121205515.GA5716@HAL9000.homeunix.com> Mail-Followup-To: Petri Helenius , freebsd-questions@FreeBSD.ORG, freebsd-net@FreeBSD.ORG References: <0e3b01c28fc4$ff9a4ee0$862a40c1@PHE> <20021119152114.GA2228@HAL9000.homeunix.com> <3DDBDE2B.6050407@he.iki.fi> <20021120195919.GA679@HAL9000.homeunix.com> <11fd01c290eb$f48311e0$862a40c1@PHE> <20021121022524.GA2300@HAL9000.homeunix.com> <126801c2912c$5be3cec0$862a40c1@PHE> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii:iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <126801c2912c$5be3cec0$862a40c1@PHE> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Thus spake Petri Helenius : > > > With about 150M in use and KVA_PAGES undefined in config (default), > > > both 4.7-STABLE and 5.0-CURRENT panic (1G installed memory). > > > > Yes, the default is 256, IIRC. That corresponds to 1 GB of KVA, > > and you have only 1 GB of physical memory to back it. I take it > > this is a very busy machine. Short of getting more memory, you > > can decrease memory utilization by the network, e.g. by decreasing > > TCP window sizes, or you can limit memory usage by the network so > > you don't get panics. I forget the details here, so perhaps > > someone else can fill them in. > > > The thing I´m concerned about that if with 150M kernel memory usage and > >200M free and >300M inact memory the system panics, how much "extra" > memory is needed to keep it running? And the swap is never touched. Most kernel memory is not pageable, so swap probably won't help you. Your `kmem_map too small' error message should report to you the size of the attempted allocation and the size of kmem_map. If the map really isn't full, I'm not sure why you would get this panic, unless you're somehow running into excessive fragmentation. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message