From owner-freebsd-current Sat Jan 4 12:59:29 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C8B137B401; Sat, 4 Jan 2003 12:59:28 -0800 (PST) Received: from bluejay.mail.pas.earthlink.net (bluejay.mail.pas.earthlink.net [207.217.120.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25A7743EB2; Sat, 4 Jan 2003 12:59:28 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0130.cvx40-bradley.dialup.earthlink.net ([216.244.42.130] helo=mindspring.com) by bluejay.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18UvO9-0005jp-00; Sat, 04 Jan 2003 12:59:26 -0800 Message-ID: <3E174ADE.C7D1B572@mindspring.com> Date: Sat, 04 Jan 2003 12:58:06 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Hiroki Sato Cc: phk@FreeBSD.ORG, wjw@withagen.nl, current@FreeBSD.ORG Subject: Re: panic with panic: kmem_malloc(4096): kmem_map too small... References: <03a701c2b38c$8e3ad990$471b3dd4@dual> <7651.1041670679@critter.freebsd.dk> <20030105.034940.18284223.hrs@eos.ocn.ne.jp> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a42a9a0f1a29bd1a476721dad32340e5ed3ca473d225a0f487350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hiroki Sato wrote: > I also had "kmem_malloc(4096): kmem_map too small: 275378176 total allocated" > several times on -current as of Jan 4th. My -current box has 3GB memory, > but when the memory size is explicitly specified as 2GB via MAXMEM option, > the panic disappears (but I don't know why...). Because the kmem map is a fixed segment of virtual space for which page mappings are established, and adding more memory increases the amount of page mappings required, without increasing the space available for the mappings. It is not something which can be easily tuned automatically. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message