Public bug reported: I get OOM-killer whenever compiling the kernel.
[ 96.079516] gcc invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0 [ 96.079524] gcc cpuset=/ mems_allowed=0 [ 96.079531] Pid: 4095, comm: gcc Not tainted 2.6.32-22-generic #36-Ubuntu [ 96.079535] Call Trace: [ 96.079550] [<c01cc814>] oom_kill_process+0xa4/0x2b0 [ 96.079558] [<c01cce89>] ? select_bad_process+0xa9/0xe0 [ 96.079565] [<c01ccf11>] __out_of_memory+0x51/0xa0 [ 96.079572] [<c01ccfb8>] out_of_memory+0x58/0xb0 [ 96.079579] [<c01cf7c7>] __alloc_pages_slowpath+0x407/0x4a0 [ 96.079588] [<c01cf99a>] __alloc_pages_nodemask+0x13a/0x170 [ 96.079597] [<c01d1fda>] __do_page_cache_readahead+0xea/0x200 [ 96.079604] [<c01d2116>] ra_submit+0x26/0x30 [ 96.079611] [<c01cc10c>] filemap_fault+0x3dc/0x410 [ 96.079619] [<c01e4650>] __do_fault+0x40/0x490 [ 96.079627] [<c01e6259>] handle_mm_fault+0x139/0x390 [ 96.079636] [<c058dadd>] do_page_fault+0x10d/0x3a0 [ 96.079643] [<c058bd20>] ? do_device_not_available+0x0/0x60 [ 96.079651] [<c058d9d0>] ? do_page_fault+0x0/0x3a0 [ 96.079657] [<c058b9d3>] error_code+0x73/0x80 [ 96.079662] Mem-Info: [ 96.079666] DMA per-cpu: [ 96.079671] CPU 0: hi: 0, btch: 1 usd: 0 [ 96.079676] CPU 1: hi: 0, btch: 1 usd: 0 [ 96.079679] Normal per-cpu: [ 96.079684] CPU 0: hi: 186, btch: 31 usd: 171 [ 96.079689] CPU 1: hi: 186, btch: 31 usd: 170 [ 96.079692] HighMem per-cpu: [ 96.079697] CPU 0: hi: 186, btch: 31 usd: 45 [ 96.079701] CPU 1: hi: 186, btch: 31 usd: 91 [ 96.079710] active_anon:463424 inactive_anon:4128 isolated_anon:0 [ 96.079713] active_file:267 inactive_file:311 isolated_file:96 [ 96.079715] unevictable:0 dirty:0 writeback:150 unstable:0 [ 96.079717] free:12103 slab_reclaimable:1405 slab_unreclaimable:8327 [ 96.079719] mapped:205 shmem:922 pagetables:9887 bounce:0 [ 96.079731] DMA free:8084kB min:64kB low:80kB high:96kB active_anon:288kB inactive_anon:128kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15852kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:16kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:32 all_unreclaimable? yes [ 96.079741] lowmem_reserve[]: 0 865 2007 2007 [ 96.079759] Normal free:39832kB min:3728kB low:4660kB high:5592kB active_anon:724532kB inactive_anon:256kB active_file:560kB inactive_file:600kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:885944kB mlocked:0kB dirty:0kB writeback:584kB mapped:4kB shmem:0kB slab_reclaimable:5620kB slab_unreclaimable:33308kB kernel_stack:19024kB pagetables:14600kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:3475 all_unreclaimable? yes [ 96.079769] lowmem_reserve[]: 0 0 9134 9134 [ 96.079787] HighMem free:496kB min:512kB low:1740kB high:2972kB active_anon:1128876kB inactive_anon:16128kB active_file:508kB inactive_file:644kB unevictable:0kB isolated(anon):0kB isolated(file):384kB present:1169232kB mlocked:0kB dirty:0kB writeback:16kB mapped:816kB shmem:3688kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:24932kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:17248 all_unreclaimable? yes [ 96.079797] lowmem_reserve[]: 0 0 0 0 [ 96.079807] DMA: 1*4kB 0*8kB 1*16kB 0*32kB 2*64kB 2*128kB 4*256kB 1*512kB 2*1024kB 2*2048kB 0*4096kB = 8084kB [ 96.079830] Normal: 438*4kB 247*8kB 301*16kB 163*32kB 112*64kB 71*128kB 20*256kB 1*512kB 0*1024kB 0*2048kB 1*4096kB = 39744kB [ 96.079853] HighMem: 78*4kB 21*8kB 1*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 496kB [ 96.079876] 1606 total pagecache pages [ 96.079879] 0 pages in swap cache [ 96.079883] Swap cache stats: add 0, delete 0, find 0/0 [ 96.079887] Free swap = 0kB [ 96.079890] Total swap = 0kB [ 96.087784] 521936 pages RAM [ 96.087789] 294610 pages HighMem [ 96.087792] 8828 pages reserved [ 96.087795] 190094 pages shared [ 96.087798] 496110 pages non-shared [ 96.087805] Out of memory: kill process 1575 (make) score 1748 or a child [ 96.088954] Killed process 1718 (make) [ 96.129119] make: page allocation failure. order:0, mode:0x201da [ 96.129128] Pid: 1718, comm: make Not tainted 2.6.32-22-generic #36-Ubuntu [ 96.129133] Call Trace: [ 96.129147] [<c0588f92>] ? printk+0x1d/0x23 [ 96.129158] [<c01cf82e>] __alloc_pages_slowpath+0x46e/0x4a0 [ 96.129166] [<c01cf99a>] __alloc_pages_nodemask+0x13a/0x170 [ 96.129174] [<c01d1fda>] __do_page_cache_readahead+0xea/0x200 [ 96.129182] [<c01d2116>] ra_submit+0x26/0x30 [ 96.129190] [<c01d2283>] ondemand_readahead+0x83/0x1d0 [ 96.129197] [<c058b6fd>] ? _spin_lock+0xd/0x10 [ 96.129205] [<c01d24bb>] page_cache_sync_readahead+0x3b/0x60 [ 96.129212] [<c01cafc2>] T.904+0x2e2/0x480 [ 96.129220] [<c02115be>] ? path_to_nameidata+0x1e/0x50 [ 96.129228] [<c01cb20a>] generic_file_aio_read+0xaa/0x230 [ 96.129236] [<c02f551d>] ? security_inode_permission+0x1d/0x30 [ 96.129244] [<c0210d7e>] ? inode_permission+0x9e/0xb0 [ 96.129253] [<c0207a34>] do_sync_read+0xc4/0x100 [ 96.129261] [<c01ea4fb>] ? mmap_region+0x1fb/0x480 [ 96.129270] [<c0167740>] ? autoremove_wake_function+0x0/0x50 [ 96.129279] [<c02f4414>] ? security_file_permission+0x14/0x20 [ 96.129286] [<c0207ad4>] ? rw_verify_area+0x64/0xe0 [ 96.129294] [<c02083cf>] vfs_read+0x9f/0x1a0 [ 96.129301] [<c0207970>] ? do_sync_read+0x0/0x100 [ 96.129308] [<c0208582>] sys_read+0x42/0x70 [ 96.129316] [<c01033ec>] syscall_call+0x7/0xb [ 96.129320] Mem-Info: [ 96.129324] DMA per-cpu: [ 96.129329] CPU 0: hi: 0, btch: 1 usd: 0 [ 96.129334] CPU 1: hi: 0, btch: 1 usd: 0 [ 96.129338] Normal per-cpu: [ 96.129342] CPU 0: hi: 186, btch: 31 usd: 166 [ 96.129347] CPU 1: hi: 186, btch: 31 usd: 170 [ 96.129351] HighMem per-cpu: [ 96.129355] CPU 0: hi: 186, btch: 31 usd: 55 [ 96.129360] CPU 1: hi: 186, btch: 31 usd: 107 [ 96.129369] active_anon:463424 inactive_anon:4128 isolated_anon:0 [ 96.129371] active_file:300 inactive_file:296 isolated_file:64 [ 96.129373] unevictable:0 dirty:0 writeback:150 unstable:0 [ 96.129376] free:12103 slab_reclaimable:1405 slab_unreclaimable:8327 [ 96.129378] mapped:205 shmem:922 pagetables:9887 bounce:0 [ 96.129390] DMA free:8084kB min:64kB low:80kB high:96kB active_anon:288kB inactive_anon:128kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15852kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:16kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:32 all_unreclaimable? yes [ 96.129400] lowmem_reserve[]: 0 865 2007 2007 [ 96.129418] Normal free:39832kB min:3728kB low:4660kB high:5592kB active_anon:724532kB inactive_anon:256kB active_file:560kB inactive_file:600kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:885944kB mlocked:0kB dirty:0kB writeback:584kB mapped:4kB shmem:0kB slab_reclaimable:5620kB slab_unreclaimable:33308kB kernel_stack:19024kB pagetables:14600kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:3475 all_unreclaimable? yes [ 96.129428] lowmem_reserve[]: 0 0 9134 9134 [ 96.129445] HighMem free:496kB min:512kB low:1740kB high:2972kB active_anon:1128876kB inactive_anon:16128kB active_file:640kB inactive_file:584kB unevictable:0kB isolated(anon):0kB isolated(file):256kB present:1169232kB mlocked:0kB dirty:0kB writeback:16kB mapped:816kB shmem:3688kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:24932kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:34319 all_unreclaimable? yes [ 96.129456] lowmem_reserve[]: 0 0 0 0 [ 96.129465] DMA: 1*4kB 0*8kB 1*16kB 0*32kB 2*64kB 2*128kB 4*256kB 1*512kB 2*1024kB 2*2048kB 0*4096kB = 8084kB [ 96.129488] Normal: 438*4kB 247*8kB 301*16kB 163*32kB 112*64kB 71*128kB 20*256kB 1*512kB 0*1024kB 0*2048kB 1*4096kB = 39744kB [ 96.129511] HighMem: 78*4kB 21*8kB 1*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 496kB [ 96.129533] 1606 total pagecache pages [ 96.129537] 0 pages in swap cache [ 96.129541] Swap cache stats: add 0, delete 0, find 0/0 [ 96.129545] Free swap = 0kB [ 96.129548] Total swap = 0kB [ 96.137344] 521936 pages RAM [ 96.137349] 294610 pages HighMem [ 96.137352] 8828 pages reserved [ 96.137355] 184633 pages shared [ 96.137358] 496084 pages non-shared Full log is at http://I-love.SAKURA.ne.jp/tmp/dmesg-2.6.32-22-generic.txt Environment is Ubuntu 10.04 (upgraded from Ubuntu 8.04) on ThinkPad X60 (Core2Duo / 2048MB RAM / No Swap). According to "while :; do cat /proc/meminfo; sleep 1; done" when running "make -s", the system has enough free memory. No need to run OOM killer. Another environment (Ubuntu 10.04 upgraded from Ubuntu 9.10) on Desktop PC (Core2Duo / 2048MB RAM / No Swap) triggers the same OOM killer. Thus, I don't think it is a hardware problem. Regards. ** Affects: linux (Ubuntu) Importance: Undecided Status: New -- [Lucid] OOM-killer https://bugs.launchpad.net/bugs/590605 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs