From owner-freebsd-net@FreeBSD.ORG Wed Sep 10 21:39:11 2003 Return-Path: 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 43A4016A4BF for ; Wed, 10 Sep 2003 21:39:11 -0700 (PDT) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 3A30A43FDF for ; Wed, 10 Sep 2003 21:39:10 -0700 (PDT) (envelope-from silby@silby.com) Received: (qmail 75411 invoked from network); 11 Sep 2003 04:39:08 -0000 Received: from niwun.pair.com (HELO localhost) (209.68.2.70) by relay.pair.com with SMTP; 11 Sep 2003 04:39:08 -0000 X-pair-Authenticated: 209.68.2.70 Date: Wed, 10 Sep 2003 23:37:46 -0500 (CDT) From: Mike Silbersack To: Vincent Jardin In-Reply-To: <200309110106.28960.vjardin@free.fr> Message-ID: <20030910233631.P67226@odysseus.silby.com> References: <200309110106.28960.vjardin@free.fr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: net@freebsd.org Subject: Re: KMAP ENTRY limit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2003 04:39:11 -0000 On Thu, 11 Sep 2003, Vincent Jardin wrote: > Hi, > > I get a FreeBSD 4.8 that reaches the limit of KMAP ENTRY whereas it remains > enough free memory. How is computed this limit and how can it be increased ? > > $ vmstat -z > ITEM SIZE LIMIT USED FREE REQUESTS > ... > KMAP ENTRY: 48, 7933, 130, 168, 1037 > (panic when SIZE >= LIMIT) > > Moreover, why should vm_map_entry_create() panic when zalloc() returns NULL ? > I think one can return NULL without panicing. Is it a bug or a feature ? > > Regards, > Vincent Heh, Tor just proposed raising the number of kmap entries allocated in a private thread. So, I think you'll see that change in soon enough. BTW, I hope size doesn't change as your machine is running. :) Mike "Silby" Silbersack