Skip to contentSkip to conversation

echo 0 > /proc/sys/vm/swappiness triggers OOM killer under 2.6.14.

DISCUSSION Robert Hancock 2 participants 2 messages Nov 2, 2005 – Nov 3, 2005 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 9 lines · Rob Landley
Quoted 7 lines
Quoted 4 lines

Under 2.6.14 (UML), I have a workload that runs with 64 megs ram and 256 megs swap space. It completes (albeit swapping like mad) with swappiness at the default 60, but if I set it to 0 the OOM killer kicks in and the script aborts.

You should get some debugging output in dmesg when the OOM killer kicks in, can you post this?

oom-killer: gfp_mask=0x400d2, order=0

OK, nothing really special about this..

Quoted 3 lines

Free pages: 1416kB (0kB HighMem)
Active:14014 inactive:718 dirty:1 writeback:0 unstable:0 free:354 slab:468 mapped:14722 pagetables:58
DMA free:1416kB min:1024kB low:1280kB high:1536kB active:56056kB inactive:2872kB present:65536kB pages_scanned:26577 all_unreclaimable? no

It looks like some memory is available here, but likely some UML person would have to say for sure..

Quoted 2 lines

Out of Memory: Killed process 30055 (cc1).
Badness in handle_page_fault at /home/landley/newbuild/firmware-build/tmpdir/linux-2.6.14/arch/um/kernel/trap_kern.c:98

You likely need a UML person for this part too :-)

Signature · 3 lines
Robert Hancock      Saskatoon, SK, Canada
To email, remove "nospam" from [email protected]
Home Page: http://www.roberthancock.com/
#4 lore raw
Quoted 8 lines · Robert Hancock
Quoted 5 lines

Free pages: 1416kB (0kB HighMem)
Active:14014 inactive:718 dirty:1 writeback:0 unstable:0 free:354 slab:468 mapped:14722 pagetables:58
DMA free:1416kB min:1024kB low:1280kB high:1536kB active:56056kB inactive:2872kB present:65536kB pages_scanned:26577 all_unreclaimable? no

It looks like some memory is available here, but likely some UML person would have to say for sure..

UML = User Mode Linux. I.E. configuring and building the normal linux kernel with "ARCH=um", which makes for much less rebooting when testing this sort of thing out. I can try making an equivalent bootable kernel and re-running the test under there to confirm I get the failure, if you'd like, but this part of the kernel (the virtual memory subsystem) really shouldn't be affected by this.

Quoted 7 lines
Quoted 5 lines

Out of Memory: Killed process 30055 (cc1).
Badness in handle_page_fault
at /home/landley/newbuild/firmware-build/tmpdir/linux-2.6.14/arch/um/kernel/ trap_kern.c:98

You likely need a UML person for this part too :-)

The fact that the User Mode Linux people wrote their own trap handler? Do you think that changes the trap being dumped, or is likely to alter the behavior of the VM subsystem?

Rob