linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* OOM-killer kills too early
@ 2005-04-12 10:42 Heiko Carstens
  0 siblings, 0 replies; only message in thread
From: Heiko Carstens @ 2005-04-12 10:42 UTC (permalink / raw)
  To: linux-mm

Hi all,

I think we ran into a situation where the OOM killer starts
killing processes while there is still plenty of swap space
left.
Scenario is the following:
Plain 2.6.12-rc2 on a 64 bit s390 z/VM guest with 4 cpus and
2 GB memory. In addition the system has 700 MB swap space on
disk.
The kernel has a module which allocated 1790MB of memory, thus
reducing the available memory for user space processes
significantly.
When I now run a process which is doing nothing but allocating
512 MB and writing something to each page so that the pages
actually really get allocated the OOM killer kills my process,
even if there is plenty of swap space left (see output below).

Shouldn't this process survive?

Thanks,
Heiko

oom-killer: gfp_mask=0x80d2
DMA per-cpu:
cpu 0 hot: low 32, high 96, batch 16
cpu 0 cold: low 0, high 32, batch 16
cpu 1 hot: low 32, high 96, batch 16
cpu 1 cold: low 0, high 32, batch 16
cpu 2 hot: low 32, high 96, batch 16
cpu 2 cold: low 0, high 32, batch 16
cpu 3 hot: low 32, high 96, batch 16
cpu 3 cold: low 0, high 32, batch 16
cpu 4 hot: low 32, high 96, batch 16
cpu 4 cold: low 0, high 32, batch 16
cpu 5 hot: low 32, high 96, batch 16
cpu 5 cold: low 0, high 32, batch 16
cpu 6 hot: low 32, high 96, batch 16
cpu 6 cold: low 0, high 32, batch 16
cpu 7 hot: low 32, high 96, batch 16
cpu 7 cold: low 0, high 32, batch 16
cpu 8 hot: low 32, high 96, batch 16
cpu 8 cold: low 0, high 32, batch 16
cpu 9 hot: low 32, high 96, batch 16
cpu 9 cold: low 0, high 32, batch 16
cpu 10 hot: low 32, high 96, batch 16
cpu 10 cold: low 0, high 32, batch 16
cpu 11 hot: low 32, high 96, batch 16
cpu 11 cold: low 0, high 32, batch 16
cpu 12 hot: low 32, high 96, batch 16
cpu 12 cold: low 0, high 32, batch 16
cpu 13 hot: low 32, high 96, batch 16
cpu 13 cold: low 0, high 32, batch 16
cpu 14 hot: low 32, high 96, batch 16
cpu 14 cold: low 0, high 32, batch 16
cpu 15 hot: low 32, high 96, batch 16
cpu 15 cold: low 0, high 32, batch 16
cpu 16 hot: low 32, high 96, batch 16
cpu 16 cold: low 0, high 32, batch 16
cpu 17 hot: low 32, high 96, batch 16
cpu 17 cold: low 0, high 32, batch 16
cpu 18 hot: low 32, high 96, batch 16
cpu 18 cold: low 0, high 32, batch 16
cpu 19 hot: low 32, high 96, batch 16
cpu 19 cold: low 0, high 32, batch 16
cpu 20 hot: low 32, high 96, batch 16
cpu 20 cold: low 0, high 32, batch 16
cpu 21 hot: low 32, high 96, batch 16
cpu 21 cold: low 0, high 32, batch 16
cpu 22 hot: low 32, high 96, batch 16
cpu 22 cold: low 0, high 32, batch 16
cpu 23 hot: low 32, high 96, batch 16
cpu 23 cold: low 0, high 32, batch 16
cpu 24 hot: low 32, high 96, batch 16
cpu 24 cold: low 0, high 32, batch 16
cpu 25 hot: low 32, high 96, batch 16
cpu 25 cold: low 0, high 32, batch 16
cpu 26 hot: low 32, high 96, batch 16
cpu 26 cold: low 0, high 32, batch 16
cpu 27 hot: low 32, high 96, batch 16
cpu 27 cold: low 0, high 32, batch 16
cpu 28 hot: low 32, high 96, batch 16
cpu 28 cold: low 0, high 32, batch 16
cpu 29 hot: low 32, high 96, batch 16
cpu 29 cold: low 0, high 32, batch 16
cpu 30 hot: low 32, high 96, batch 16
cpu 30 cold: low 0, high 32, batch 16
cpu 31 hot: low 32, high 96, batch 16
cpu 31 cold: low 0, high 32, batch 16
Normal per-cpu: empty
HighMem per-cpu: empty

Free pages:        5544kB (0kB HighMem)
Active:16038 inactive:30542 dirty:0 writeback:2809 unstable:0 free:1386 slab:2099 mapped:43531 pagetables:192
DMA free:5544kB min:5792kB low:7240kB high:8688kB active:64152kB inactive:122168kB present:2097152kB pages_scanned:49210 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
HighMem free:0kB min:128kB low:160kB high:192kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
DMA: 0*4kB 1*8kB 0*16kB 1*32kB 0*64kB 1*128kB 3*256kB 1*512kB 0*1024kB 0*2048kB 1*4096kB = 5544kB
Normal: empty
HighMem: empty
Swap cache: add 32685, delete 29628, find 11/12, race 0+0
Free swap  = 586036kB
Total swap = 716776kB
Out of Memory: Killed process 904 (a.out).
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-12 10:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-12 10:42 OOM-killer kills too early Heiko Carstens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox