From owner-freebsd-current Sat Jan 4 11: 0:11 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 32B0137B401 for ; Sat, 4 Jan 2003 11:00:10 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5410A43EA9 for ; Sat, 4 Jan 2003 11:00:09 -0800 (PST) (envelope-from phk@freebsd.org) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h04IxxRu002304; Sat, 4 Jan 2003 19:59:59 +0100 (CET) (envelope-from phk@freebsd.org) To: Hiroki Sato Cc: wjw@withagen.nl, current@freebsd.org Subject: Re: panic with panic: kmem_malloc(4096): kmem_map too small... From: phk@freebsd.org In-Reply-To: Your message of "Sun, 05 Jan 2003 03:49:40 +0900." <20030105.034940.18284223.hrs@eos.ocn.ne.jp> Date: Sat, 04 Jan 2003 19:59:59 +0100 Message-ID: <2303.1041706799@critter.freebsd.dk> 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 In message <20030105.034940.18284223.hrs@eos.ocn.ne.jp>, Hiroki Sato writes: > 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...). Now that's different from the previous poster. The problem in this case is that some of the system constants are sized based on the amount of RAM and appearantly we do this wrong for large RAM configurations. I only have 2G ram and that's what I have tested (extensively). If we're still broken for >2G ram, somebody needs to revist this. One thing you can try is reduce the value of the sysctl kern.maxvnodes If you set it to the same value as used for 2G (appros 130000), I think your machine should survive with 3G RAM. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message