i386/179112: 9.1 installer panics with a kmem_malloc() failure on i386 embedded systems

Majdi S. Abbas msa at latt.net
Thu Aug 1 20:20:31 UTC 2013


On Thu, Aug 01, 2013 at 09:22:22PM +0200, Marius Strobl wrote:
> That's a very vague description of a test case. At least extracting
> the six release tarballs is no longer a problem, though.

	If it helps any, it'd usually panic when expanding base.tgz
during the install.  Failing that, src.

	You can't predict which large file would do it, but without both
parameters set, it would fail 100% of the time.

	However, it's possible that removing CTL from GENERIC frees
up enough RAM for it to squeak by with no other changes.  64M would
be an interesting test case.

	Here's what one of the panics looked like:

FreeBSD Installer
 ÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒ


                ÏÒÒÒÒÒÒÒÒÒÒÒÒArchive ExtractionÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÎ
                ¯                                             ¯
                ¯ base.txz                     [    57%     ] ¯
                ¯ kernel.txz                   [  Pending   ]panic:
kmem_malloc(
4096): kmem_map too small: 38060032 total allocated           ¯
cpuid = 0       ¯ Extracting distribution files...            ¯
KDB: stack backtrace:                                         ¯
#0 0xc0af3aff at kdb_backtrace+0x4fssÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÎ  ¯
#1 0xc0ac052f at panic+0x16f          53%                  ¯  ¯
#2 0xc0d2caea at kmem_malloc+0x28aÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÍ  ¯
#3 0xc0d202b7 at page_alloc+0x27ÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÒÍ
#4 0xc0d22bca at keg_alloc_slab+0x10a
#5 0xc0d23164 at keg_fetch_slab+0xd4
#6 0xc0d234ec at zone_fetch_slab+0x4c
#7 0xc0d24ade at uma_zalloc_arg+0x4ae
#8 0xc0aab29a at malloc+0x5a
#9 0xc0ce922a at newjsegdep+0x2a
#10 0xc0cf5a89 at newjaddref+0x69
#11 0xc0cf5b16 at softdep_setup_inomapdep+0x56
#12 0xc0cd9398 at ffs_nodealloccg+0x728
#13 0xc0cd3d91 at ffs_hashalloc+0x41
#14 0xc0cd8913 at ffs_valloc+0x4a3
#15 0xc0d15c14 at ufs_makeinode+0xa4
#16 0xc0d164a0 at ufs_create+0x30
#17 0xc0e48412 at VOP_CREATE_APV+0x42
Uptime: 8m5s
Automatic reboot in 15 seconds - press a key on the console to abort
--> Press a key on the console to reboot,
--> or switch off the system now.

	--msa


More information about the freebsd-stable mailing list