strange OOM receiving a wireless network packet on a SLUB system
This is a known issue in the .31 kernels. Google for it. I'm on a plane right now {gotta love GoGo Wireless :-) and will give more details later and a workaround.
Quoted 159 lines · Nix
On 4 Nov 2009, Dominik Stadler stated:
Quoted 6 lines
I just saw a very similar thing happening to me here, ThinkPad T500, Ubuntu 9.10, latest 3.0.1+TOI-Kernel from Karmic-PPA, I have some other weirdness as well which I am not sure if TOI-related or Karmic, will do some Divide-And-Conquer analysis next to find out the root cause of these and report back.
Quoted 8 lines
$ uname -a Linux XXXXXX 2.6.31-15-generic #49+tuxonice2-Ubuntu SMP Sat Oct 31 01:46:15 UTC 2009 x86_64 GNU/LinuxThis is what I got just now:
Nov 4 22:40:22 dstathink kernel: [39835.951178] swapper: page allocationfailure. order:2, mode:0x4020
That doesn't really look similar to me (not a decompressor -22 error). To me it looks more like you ran out of memory, or at least ran very close to out: an order-2 allocation is not enormous (16Kb on x86) and should definitely work after everything's been chucked out. (mode
0x4020implies a compound-pageGFP_ATOMICallocation, so it couldn't swap, but it could certainly discard clean pages.)Did this happen at suspension time, resumption time,or what? It looks like the kernel hadn't been up for long, so I guess we can rule out really really bad arena fragmentation... but it was long enough that I guess this was at suspension time?
Quoted 8 lines
Nov 4 22:40:22 dstathink kernel: [39835.951178] Pid: 0, comm: swapper Tainted: G C 2.6.31-15-generic #49+tuxonice2-Ubuntu Nov 4 22:40:22 dstathink kernel: [39835.951178] Call Trace: Nov 4 22:40:22 dstathink kernel: [39835.951178] <IRQ>[<
ffffffff810f1abc>]__alloc_pages_slowpath+0x4cc/0x4e0Quoted 8 lines
Nov 4 22:40:22 dstathink kernel: [39835.951178] [<ffffffff810f1c1e>]
__alloc_pages_nodemask+0x14e/0x150Nov 4 22:40:22 dstathink kernel: [39835.951178] [<ffffffff811230ca>]
kmalloc_large_node+0x5a/0xb0Nov 4 22:40:22 dstathink kernel: [39835.951178] [<ffffffff81127275>]
__kmalloc_node_track_caller+0x135/0x180This is SLUB stuff. Is SLUB production-ready yet? (I haven't been following it.)
(Networking, wireless, SLUB, no idea where to Cc this. I'll just Cc LKML and see if anyone notices :) )
Quoted 10 lines
Nov 4 22:40:22 dstathink kernel: [39835.951178] [<ffffffffa0245899>] ?
iwl_rx_allocate+0x1a9/0x230
[iwlcore]Nov 4 22:40:22 dstathink kernel: [39835.951178] [<ffffffff8144088b>]
__alloc_skb+0x7b/0x180Nov 4 22:40:22 dstathink kernel: [39835.951178] [<ffffffffa0245899>]
iwl_rx_allocate+0x1a9/0x230
[iwlcore]Wireless network packet reception leading to OOM. Not TuxOnIce, I'd say. Certainly not the same problem as me: I don't even *have* any wireless hardware (with my RSI, laptops might as well have razor blades on their keys).
(Why does it need a 16Kb contiguous region anyway?
Quoted 2 lines
Nov 4 22:40:22 dstathink kernel: [39835.951178] [<ffffffff81010e12>] ?
cpu_idle+0xb2/0x100Idle, not suspending...
Quoted 2 lines
Nov 4 22:40:22 dstathink kernel: [39835.951178] Active_anon:365111active_file:88612 inactive_anon:162361
Lots of inactive pages. Why were none chucked out?
Quoted 2 lines
Nov 4 22:40:22 dstathink kernel: [39835.951178] inactive_file:243222unevictable:4 dirty:214598 writeback:320 unstable:0
214000+ dirty pages seems awfully high.
Quoted 2 lines
Nov 4 22:40:22 dstathink kernel: [39835.951178] free:6876 slab:51582mapped:40147 pagetables:8440 bounce:0
6876 free pages, a reasonable-enough figure, yet it couldn't find four in a row to receive a network packet? Seems unlikely.
Quoted 14 lines
Nov 4 22:40:22 dstathink kernel: [39835.951178] Node 0 DMA free:15644kBmin:28kB low:32kB high:40kB active_anon:12kB inactive_anon:32kB active_file:4kB inactive_file:208kB unevictable:0kB present:15336kB pages_scanned:0
all_unreclaimable? noNov 4 22:40:22 dstathink kernel: [39835.951178] lowmem_reserve[]: 0 29583905 3905
Nov 4 22:40:22 dstathink kernel: [39835.951178] Node 0 DMA32 free:10124kBmin:6044kB low:7552kB high:9064kB active_anon:1223088kB inactive_anon:367500kB active_file:218036kB inactive_file:833596kB unevictable:16kB present:3029636kB pages_scanned:0
all_unreclaimable? noQuoted 8 lines
Nov 4 22:40:22 dstathink kernel: [39835.951178] lowmem_reserve[]: 0 0 946946
Nov 4 22:40:22 dstathink kernel: [39835.951178] Node 0 Normal free:1736kBmin:1932kB low:2412kB high:2896kB active_anon:237344kB inactive_anon:281912kB active_file:136408kB inactive_file:139084kB unevictable:0kB present:969600kB pages_scanned:0
all_unreclaimable? noAgain, heaps of inactive.
Quoted 28 lines
Nov 4 22:40:22 dstathink kernel: [39835.951178] lowmem_reserve[]: 0 0 00
Nov 4 22:40:22 dstathink kernel: [39835.951178] Node 0 DMA: 7*4kB 4*8kB 2*16kB 2*32kB 2*64kB 2*128kB 3*256kB 2*512kB 3*1024kB 3*2048kB 1*4096kB 15644kB Nov 4 22:40:22 dstathink kernel: [39835.951178] Node 0 DMA32: 2249*4kB 35*8kB 1*16kB 0*32kB 1*64kB 0*128kB 1*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB = 10124kB Nov 4 22:40:22 dstathink kernel: [39835.951178] Node 0 Normal: 132*4kB 127*8kB 2*16kB 1*32kB 0*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1736kB Nov 4 22:40:22 dstathink kernel: [39835.951178] 390803 total pagecachepages
Nov 4 22:40:22 dstathink kernel: [39835.951178] 12039 pages in swapcache
Nov 4 22:40:22 dstathink kernel: [39835.951178] Swap cache stats: add41296, delete 29257, find
4825/7516Nov 4 22:40:22 dstathink kernel: [39835.951178] Free swap 8330844kBNov 4 22:40:22 dstathink kernel: [39835.951178] Total swap 8393952kBNov 4 22:40:22 dstathink kernel: [39835.951178] 1032192 pagesRAM
Quoted 7 lines
Nov 4 22:40:22 dstathink kernel: [39835.951178] 76928 pagesreserved
Nov 4 22:40:22 dstathink kernel: [39835.951178] 488347 pagesshared
Nov 4 22:40:22 dstathink kernel: [39835.951178] 596692 pages non-sharedOK, I don't know why this failed, but I'm an mm neophyte running on pure grep. Any ideas from anyone with an actual clue in this area? (I know OOM is all the rage right now, so maybe this will garner some attention :) )
_______________________________________________
TuxOnIce-users mailing list
[email protected]
http://lists.tuxonice.net/listinfo/tuxonice-users