Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Dec 2008 15:38:13 +0200
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Mike Tancsa <mike@sentex.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: repeatable crash on RELENG7
Message-ID:  <20081202133812.GY3045@deviant.kiev.zoral.com.ua>
In-Reply-To: <200812021319.mB2DJGJx003807@lava.sentex.ca>
References:  <200812021319.mB2DJGJx003807@lava.sentex.ca>

next in thread | previous in thread | raw e-mail | index | archive | help

--8bLSEqNM5P+Jqlqx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Dec 02, 2008 at 08:19:17AM -0500, Mike Tancsa wrote:
> While trying to speed up nanobsd builds, I mounted /usr/obj on a=20
> ramdisk and found my box crashing.  Thinking it might be hardware, I=20
> tried a separate machine, but with the same results.  I have 4G of=20
> ram (i386).  Am I just running out of some kernel memory ?  If so, is=20
> there anything I can adjust to prevent this, yet still use mfs in this wa=
y ?
>=20
> mdconfig -a -t malloc -s 1800M
You cannot have ~ 2Gb of kernel memory allocated for md, at least not on
i386.

> newfs /dev/md0
> mount /dev/md0 /usr/obj/
> time make -j4 buildworld > /var/log/build.out
>=20
>=20
> in the middle of the buildworld on the serial console (after adding=20
> witness etc)
>=20
> g_vfs_done():md0[WRITE(offset=3D1752924160, length=3D6144)]error =3D 28
> g_vfs_done():md0[WRITE(offset=3D1752952832, length=3D4096)]error =3D 28
> g_vfs_done():md0[WRITE(offset=3D1753006080, length=3D14336)]error =3D 28
> g_vfs_done():md0[WRITE(offset=3D1753020416, length=3D2048)]error =3D 28
> g_vfs_done():md0[WRITE(offset=3D1753202688, length=3D81920)]error =3D 28
> g_vfs_done():md0[WRITE(offset=3D1191755776, length=3D131072)]error =3D 28
> g_vfs_done():md0[WRITE(offset=3D1191886848, length=3D131072)]error =3D 28
> g_vfs_done():md0[WRITE(offset=3D1192017920, length=3D131072)]error =3D 28
> panic: kmem_malloc(4096): kmem_map too small: 335544320 total allocated
> cpuid =3D 1
> KDB: enter: panic
> [thread pid 15139 tid 100160 ]
> Stopped at      kdb_enter_why+0x3a:     movl    $0,kdb_why
> db>
> db> bt
> Tracing pid 15139 tid 100160 td 0xc7a85af0
> kdb_enter_why(3231417278,3231417278,3231555983,3911968708,1,...) at=20
> kdb_enter_why+58
> panic(3231555983,4096,335544320,3231555977,2000,...) at panic+310
> kmem_malloc(3242659980,4096,258,3911968860,3230390816,...) at=20
> kmem_malloc+640
> page_alloc(3242544416,4096,3911968847,258,3242544416,...) at page_alloc+39
> slab_zalloc(3228209884,3242551688,8,3231552877,1878,...) at slab_zalloc+1=
92
> uma_zone_slab(3242551688,0,3231552877,1878,4,...) at uma_zone_slab+324
> uma_zalloc_arg(3242544416,0,258,3349699312,3911969228,...) at=20
> uma_zalloc_arg+1395
> ffs_vget(3333761124,922776,2,3911969228,3911969240,...) at ffs_vget+168
> ufs_lookup(3911969308,3343471972,3911969744,3343471972,3911969340,...)=20
> at ufs_lookup+2555
> VOP_CACHEDLOOKUP_APV(3232100544,3911969308,3911969744,3911969724,33350259=
20,...)=20
> at VOP_CACHEDLOOKUP_APV+165
> vfs_cache_lookup(3911969440,3911969440,3911969704,3343471972,2,...)=20
> at vfs_cache_lookup+208
> VOP_LOOKUP_APV(3232100544,3911969440,3349699312,3231462256,681,...)=20
> at VOP_LOOKUP_APV+165
> lookup(3911969704,3231462256,198,191,3343637548,...) at lookup+1422
> namei(3911969704,3911969608,96,0,3349699312,...) at namei+843
> kern_stat(3349699312,672272928,0,3911969816,93,...) at kern_stat+61
> stat(3349699312,3911970044,8,3231440732,3231973120,...) at stat+47
> syscall(3911970104) at syscall+691
> Xint0x80_syscall() at Xint0x80_syscall+32
> --- syscall (188, FreeBSD ELF32, stat), eip =3D 134726611, esp =3D=20
> 3217021740, ebp =3D 3217021864 ---
> db>
>=20
>=20
> --------------------------------------------------------------------
> Mike Tancsa,                                      tel +1 519 651 3400
> Sentex Communications,                            mike@sentex.net
> Providing Internet since 1994                    www.sentex.net
> Cambridge, Ontario Canada                         www.sentex.net/mike
>=20
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"

--8bLSEqNM5P+Jqlqx
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEARECAAYFAkk1OkQACgkQC3+MBN1Mb4ihJQCgt3cTuPKUIud/cbrcc8vqGczn
SaUAoNRMr+MdpeNfeqXIzd198eg7IpaU
=dUfW
-----END PGP SIGNATURE-----

--8bLSEqNM5P+Jqlqx--



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