Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Jan 2003 19:59:59 +0100
From:      phk@freebsd.org
To:        Hiroki Sato <hrs@eos.ocn.ne.jp>
Cc:        wjw@withagen.nl, current@freebsd.org
Subject:   Re: panic with panic: kmem_malloc(4096): kmem_map too small... 
Message-ID:  <2303.1041706799@critter.freebsd.dk>
In-Reply-To: Your message of "Sun, 05 Jan 2003 03:49:40 %2B0900." <20030105.034940.18284223.hrs@eos.ocn.ne.jp> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2303.1041706799>