Néha azt tapasztalom, hogy bezáródik egy csomó processz, illetve ezek után el se tudom indítani némelyik alkalmazást, mert bő memória mellett is bezáródik OOM üzenettel. A dmesg ezzel kapcsolatos első pár sora az alábbi:
[1321433.457470] Xorg invoked oom-killer: gfp_mask=0x106d0, order=1, oom_adj=0
[1321433.457481] Pid: 1738, comm: Xorg Not tainted 2.6.34.8-0.2-desktop #1
Illetve az el nem induló alkalmazás az alábbit okozza a dmesg-be:
[1321696.806758] java invoked oom-killer: gfp_mask=0xd0, order=1, oom_adj=0
[1321696.806762] Pid: 4617, comm: java Not tainted 2.6.34.8-0.2-desktop #1
[1321696.806764] Call Trace:
[1321696.806778] [<c02065c3>] try_stack_unwind+0x173/0x190
[1321696.806783] [<c02051cf>] dump_trace+0x3f/0xe0
[1321696.806788] [<c020662b>] show_trace_log_lvl+0x4b/0x60
[1321696.806791] [<c0206658>] show_trace+0x18/0x20
[1321696.806797] [<c064f189>] dump_stack+0x6d/0x72
[1321696.806802] [<c02bf3f1>] dump_header.clone.1+0x61/0x180
[1321696.806807] [<c02bf563>] oom_kill_process.clone.0+0x53/0x120
[1321696.806811] [<c02bf913>] __out_of_memory+0xd3/0x140
[1321696.806815] [<c02bfba7>] out_of_memory+0x77/0x170
[1321696.806820] [<c02c3474>] __alloc_pages_nodemask+0x5d4/0x5f0
[1321696.806825] [<c02ee47f>] alloc_pages_current+0x5f/0xd0
[1321696.806829] [<c02c0585>] __get_free_pages+0x5/0x20
[1321696.806834] [<c0242721>] dup_task_struct+0x41/0x100
[1321696.806839] [<c0242bc3>] copy_process+0x93/0xba0
[1321696.806843] [<c0243758>] do_fork+0x68/0x390
[1321696.806847] [<c020aa10>] sys_clone+0x30/0x40
[1321696.806851] [<c020336d>] ptregs_clone+0x15/0x28
[1321696.807766] DWARF2 unwinder stuck at ptregs_clone+0x15/0x28
[1321696.807768]
[1321696.807770] Leftover inexact backtrace:
[1321696.807771]
[1321696.807775] [<c0651f99>] ? syscall_call+0x7/0xb
[1321696.807778] [<c065007b>] ? schedule_timeout+0x1ab/0x260
[1321696.807780] Mem-Info:
[1321696.807782] Node 0 DMA per-cpu:
[1321696.807785] CPU 0: hi: 0, btch: 1 usd: 0
[1321696.807787] CPU 1: hi: 0, btch: 1 usd: 0
[1321696.807788] Node 0 Normal per-cpu:
[1321696.807791] CPU 0: hi: 186, btch: 31 usd: 142
[1321696.807793] CPU 1: hi: 186, btch: 31 usd: 178
[1321696.807794] Node 0 HighMem per-cpu:
[1321696.807796] CPU 0: hi: 186, btch: 31 usd: 90
[1321696.807798] CPU 1: hi: 186, btch: 31 usd: 84
[1321696.807802] active_anon:194507 inactive_anon:72022 isolated_anon:0
[1321696.807803] active_file:33494 inactive_file:474785 isolated_file:0
[1321696.807804] unevictable:1 dirty:4 writeback:0 unstable:0
[1321696.807805] free:31728 slab_reclaimable:4642 slab_unreclaimable:202366
[1321696.807806] mapped:32750 shmem:52005 pagetables:2985 bounce:0
[1321696.807808] Node 0 DMA free:3504kB min:64kB low:80kB high:96kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:15808kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:4kB slab_unreclaimable:3260kB kernel_stack:312kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes
[1321696.807816] lowmem_reserve[]: 0 859 3990 3990
[1321696.807820] Node 0 Normal free:6440kB min:3716kB low:4644kB high:5572kB active_anon:0kB inactive_anon:0kB active_file:28kB inactive_file:140kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:879848kB mlocked:0kB dirty:0kB writeback:0kB mapped:264kB shmem:0kB slab_reclaimable:18564kB slab_unreclaimable:806204kB kernel_stack:2320kB pagetables:64kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:123 all_unreclaimable? no
[1321696.807829] lowmem_reserve[]: 0 0 25047 25047
[1321696.807833] Node 0 HighMem free:116968kB min:512kB low:3896kB high:7284kB active_anon:778028kB inactive_anon:288088kB active_file:133948kB inactive_file:1899000kB unevictable:4kB isolated(anon):0kB isolated(file):0kB present:3206052kB mlocked:4kB dirty:16kB writeback:0kB mapped:130736kB shmem:208020kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:11876kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
[1321696.807841] lowmem_reserve[]: 0 0 0 0
[1321696.807845] Node 0 DMA: 26*4kB 1*8kB 0*16kB 0*32kB 1*64kB 0*128kB 1*256kB 0*512kB 1*1024kB 1*2048kB 0*4096kB = 3504kB
[1321696.807855] Node 0 Normal: 1148*4kB 3*8kB 0*16kB 1*32kB 0*64kB 0*128kB 1*256kB 1*512kB 1*1024kB 0*2048kB 0*4096kB = 6440kB
[1321696.807864] Node 0 HighMem: 2*4kB 74*8kB 75*16kB 413*32kB 1197*64kB 196*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 116968kB
[1321696.807873] 562471 total pagecache pages
[1321696.807875] 2140 pages in swap cache
[1321696.807877] Swap cache stats: add 29700, delete 27560, find 10200/10683
[1321696.807878] Free swap = 4105980kB
[1321696.807880] Total swap = 4200960kB
[1321696.827915] 1299967 pages RAM
[1321696.827918] 1074178 pages HighMem
[1321696.827919] 277588 pages reserved
[1321696.827921] 160262 pages shared
[1321696.827923] 932048 pages non-shared
[1321696.827927] Out of memory: kill process 4616 (java) score 330680 or a child
[1321696.827931] Killed process 4616 (java) vsz:1322720kB, anon-rss:55420kB, file-rss:9236kB
Mindezek mellett bőven akad(na) használható memória:
total used free shared buffers cached
Mem: 4089524 3862640 226884 0 968 2222136
-/+ buffers/cache: 1639536 2449988
Swap: 4200960 95616 4105344
Mi okozhatja ezt a jelenséget? :)