Subject: Re: panic: malloc: out of space in kmem_map
To: Martin Husemann <martin@duskware.de>
From: R. Tyler Ballance <tyler@tamu.edu>
List: port-sparc
Date: 12/02/2004 03:08:30
--=-rVG9EE7zYlObm2jjcuHZ
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

You should probably cross-post this to tech-kern, I really think this is
a kernel problem.=20

I'm not good at reading kernel debugger output, but can you find out if
the kernel really doesn't have any more memory, or if kmem_map has just
run out of mapped memory? (shouldn't it swap for more..?)

On the topic of swap? Got any? :P

-R. Tyler Ballance

On Thu, 2004-12-02 at 02:31, Martin Husemann wrote:
> This happened to a SS2 with 64MB ram, running 2.0 for ~36 hours.
>=20
> I probably should bump up MAXUSERS (currently 48) or something - though t=
here
> realy is not much happening on this machine, it just routes some traffic,=
 no
> big daemons nor interactive users. NFS is client only, the machine is
> diskless.
>=20
> Hints?
>=20
> Martin
>=20
>=20
> panic: malloc: out of space in kmem_map
> Stopped in pid 4255.1 (mtree) at        netbsd:cpu_Debugger+0x4:        o=
r              %
> o7, %g0, %g1
> db>=20
> db> bt
> cpu_Debugger(0xf017d598, 0x0, 0x1000, 0x0, 0x0, 0xf01ab800) at netbsd:mal=
loc+0x2
> 0c
> malloc(0x0, 0xf01a9138, 0x0, 0x100, 0xf01f5ef4, 0x100) at netbsd:hashinit=
+0x5c
> hashinit(0x0, 0x0, 0xf01a9138, 0x0, 0xf01f1c9c, 0x0) at netbsd:nfs_initdi=
rcache+
> 0x20
> nfs_initdircache(0xf296ede8, 0xf01a9000, 0x516, 0x2000, 0x0, 0x0) at netb=
sd:nfs_
> enterdircache+0x310
> nfs_enterdircache(0xf296f4c8, 0x0, 0x0, 0xf047cc00, 0x200, 0x0) at netbsd=
:nfs_bi
> oread+0x83c
> nfs_bioread(0xf2c06200, 0xf2d65e18, 0xf296f4c8, 0xf2ba21d8, 0xf0558db8, 0=
xf296ed
> e8) at netbsd:nfs_readdir+0x64
> nfs_readdir(0x16, 0x20001, 0xdba, 0x0, 0xf006aa9c, 0xf0171ef4) at netbsd:=
vn_read
> dir+0xac
> vn_readdir(0x16, 0x45000, 0x0, 0x1000, 0xf2d65eb0, 0xf2ba21d8) at netbsd:=
sys_get
> dents+0x58
> sys_getdents(0x9, 0xf2d65f28, 0xf2d65f20, 0x0, 0xf2d65f28, 0x400) at netb=
sd:sysc
> all+0x104
> syscall(0x110, 0xf2d65fb0, 0x100f1488, 0x0, 0x0, 0x400) at 0xf0006528

--=-rVG9EE7zYlObm2jjcuHZ
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iQIUAwUAQa7bi+gkwzi+drJUAQKhNg/4nJB/vOOxeE2tezUu6pW3Ia5wq11xxycK
epKaTLLR3+3VGOdJZSz4CZFpuGy+mDpGSOo5rsEK1glueaLtP4puE05ix6byn7uR
Edm7p7X8ZZT7O1DawnW7O759rx7FyjqhwPbE/rYB2sXFL4CmHXyCuxs8gtJT2Fjq
ZtMy1vhwFvOux6RwqwH0IU0o3lWtZGqc10+mMLAvc8x6DfDZDKktFcRZKX/aYu5+
JVNdZ/mDjJCBmNXj3IjXmIe4ShqRjn+bB31bJr0qVhi0caFzdNhr5RmhTNlvEHuf
LONXOHk41MB9NTZi4PHeIZHneJuvebbOAnLX92Bi8kEbkHhbfSO5reMqyR38IYua
8isQOWUnsdzssdn3U+ijiS0RX4rvwYPZbK6xIW4kieTZJBURz4sGY/2AIOQa5Z8c
X8SCLa0Im99I7Mk+pf6t7pwF/m0MxoevxsXbJzknrW54F3auYd+uSSf8aLQF3njY
EVIkisFEXydGBvCxpv7dF5hjng6duZ+oPY+T7a56zSmuMZ85hVR9TdxS/pDaCkWD
lzsxBMT1za7Q4QEhwnAwOW7r55HBksk4DpxJpNy1t75y+ej/vDox6o22JXH0TKuL
uFQqk3QLyvsEgzZWfHuInS90GB5PwgDYofdeKaX0fCVdgDl7RV03+rJBN9nCseri
p+iimJG+vQ==
=5+kH
-----END PGP SIGNATURE-----

--=-rVG9EE7zYlObm2jjcuHZ--