Date: Thu, 30 May 2013 16:08:33 GMT From: "Majdi S. Abbas" <msa@latt.net> To: freebsd-gnats-submit@FreeBSD.org Subject: i386/179112: 9.1 installer panics with a kmem_malloc() failure on i386 embedded systems Message-ID: <201305301608.r4UG8XKV089284@oldred.FreeBSD.org> Resent-Message-ID: <201305301610.r4UGA0bb096565@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 179112 >Category: i386 >Synopsis: 9.1 installer panics with a kmem_malloc() failure on i386 embedded systems >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 30 16:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Majdi S. Abbas >Release: 9.1-RELEASE >Organization: Lattice, L.L.C. >Environment: 9.1 GENERIC/i386 as bundled in the USB installer >Description: The 9.1 installer panics when kmem_malloc() fails on smaller embedded i386 architecture systems due to an autoscaling problem and CTL. This is 100% reproducible until certain parameters are set via the loader during install: 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. >How-To-Repeat: - Install FreeBSD 9.1/i386 from the USB installer image onto any i386 system with less than about 256 or 384M of DRAM. >Fix: Set these parameters via the loader before booting the install image, and the install succeeds: kern.cam.ctl.disable=1 vm.kmem_size_scale=1 Neither parameter, by itself, is enough for the install to complete, both are required. Autoscaling appears to fail on smaller platforms. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305301608.r4UG8XKV089284>