* Re: strange OOM receiving a wireless network packet on a SLUB system [not found] ` <87zl71lt7l.fsf_-_@spindle.srvr.nix> @ 2009-11-05 1:21 ` KOSAKI Motohiro 2009-11-05 12:28 ` Dominik Stadler 0 siblings, 1 reply; 3+ messages in thread From: KOSAKI Motohiro @ 2009-11-05 1:21 UTC (permalink / raw) To: Nix Cc: kosaki.motohiro, TuxOnIce users' list, Linux-Kernel-Mailing-List, dominik.stadler, linux-mm Hi (cc to linux-mm) > On 4 Nov 2009, Dominik Stadler stated: > > 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. > > > > $ uname -a > > Linux XXXXXX 2.6.31-15-generic #49+tuxonice2-Ubuntu SMP Sat Oct 31 01:46:15 > > UTC 2009 x86_64 GNU/Linux > > > > This is what I got just now: > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] swapper: page allocation > > failure. order:2, mode:0x4020 This is only page allocation failure. not OOM. We don't gurantee GFP_ATOMIC allocation success. > > 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 0x4020 implies > a compound-page GFP_ATOMIC allocation, so it couldn't swap, but it > could certainly discard clean pages.) No. GFP_ATOMIC can't discard clean pages, anyway. because irq-context don't tolerate from reclaim latency. > > 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? > > > 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/0x4e0 > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] [<ffffffff810f1c1e>] > > __alloc_pages_nodemask+0x14e/0x150 > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] [<ffffffff811230ca>] > > kmalloc_large_node+0x5a/0xb0 > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] [<ffffffff81127275>] > > __kmalloc_node_track_caller+0x135/0x180 > > This 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 :) ) SLUB is perfectly stable and usable for production. > > > 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/0x180 > > > > Nov 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? Dunno ;) > > Nov 4 22:40:22 dstathink kernel: [39835.951178] [<ffffffff81010e12>] ? > > cpu_idle+0xb2/0x100 > > Idle, not suspending... > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] Active_anon:365111 > > active_file:88612 inactive_anon:162361 > > Lots of inactive pages. Why were none chucked out? > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] inactive_file:243222 > > unevictable:4 dirty:214598 writeback:320 unstable:0 > > 214000+ dirty pages seems awfully high. > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] free:6876 slab:51582 > > mapped: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. > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] Node 0 DMA free:15644kB > > min: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? no > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] lowmem_reserve[]: 0 2958 > > 3905 3905 > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] Node 0 DMA32 free:10124kB > > min: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? > > no > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] lowmem_reserve[]: 0 0 946 > > 946 > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] Node 0 Normal free:1736kB > > min: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? > > no > > Again, heaps of inactive. On normal zone, free(1736kB) < min(1932kB). It mean we can't use normal zone. On DMA32 zone, free(10124kB) < min(6044kB) + lowmem_reserve(946*4kB). It mean we can't use DMA32 zone too. Of cource, DMA zone is protected by lowmem_reserve too. It's normal memory shortage. > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] lowmem_reserve[]: 0 0 0 > > 0 > > > > 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 All zones have order-2 contenious memory. The conclusion is, the system is not so fragmentaion. but It doesn't have enough memory. Maybe, the system is under temporal memory pressure. you don't need care it. It automatically restored soon. > > Nov 4 22:40:22 dstathink kernel: [39835.951178] 390803 total pagecache > > pages > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] 12039 pages in swap > > cache > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] Swap cache stats: add > > 41296, delete 29257, find > > 4825/7516 > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] Free swap 8330844kB > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] Total swap 8393952kB > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] 1032192 pages > > RAM > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] 76928 pages > > reserved > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] 488347 pages > > shared > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] 596692 pages non-shared > > OK, 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 :) ) > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ -- 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:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: strange OOM receiving a wireless network packet on a SLUB system 2009-11-05 1:21 ` strange OOM receiving a wireless network packet on a SLUB system KOSAKI Motohiro @ 2009-11-05 12:28 ` Dominik Stadler 2009-11-05 22:26 ` [TuxOnIce-users] " Kenneth Crudup 0 siblings, 1 reply; 3+ messages in thread From: Dominik Stadler @ 2009-11-05 12:28 UTC (permalink / raw) To: KOSAKI Motohiro Cc: linux-mm, Linux-Kernel-Mailing-List, TuxOnIce users' list [-- Attachment #1.1: Type: text/plain, Size: 8288 bytes --] Hi, Thanks for the detailed response, it was not killing my system, I was doing a few things in parallel at that moment, but don't think base memory would run out that easily. this is what went on: - formatting an 500G USB disk with mkfs.ext3 - ripping a CD from the internal DVD drive - looking for specific filename in the whole local disc with "find" As Kenneth indicated it is a known issue in .31 and does not hugely affect me, so no big deal for now. Thanks... Dominik. On Thu, Nov 5, 2009 at 2:21 AM, KOSAKI Motohiro < kosaki.motohiro@jp.fujitsu.com> wrote: > Hi > > (cc to linux-mm) > > > On 4 Nov 2009, Dominik Stadler stated: > > > 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. > > > > > > $ uname -a > > > Linux XXXXXX 2.6.31-15-generic #49+tuxonice2-Ubuntu SMP Sat Oct 31 > 01:46:15 > > > UTC 2009 x86_64 GNU/Linux > > > > > > This is what I got just now: > > > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] swapper: page > allocation > > > failure. order:2, mode:0x4020 > > This is only page allocation failure. not OOM. > We don't gurantee GFP_ATOMIC allocation success. > > > > > 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 0x4020 implies > > a compound-page GFP_ATOMIC allocation, so it couldn't swap, but it > > could certainly discard clean pages.) > > No. GFP_ATOMIC can't discard clean pages, anyway. because irq-context don't > tolerate from reclaim latency. > > > > > 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? > > > > > 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/0x4e0 > > > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] [<ffffffff810f1c1e>] > > > __alloc_pages_nodemask+0x14e/0x150 > > > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] [<ffffffff811230ca>] > > > kmalloc_large_node+0x5a/0xb0 > > > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] [<ffffffff81127275>] > > > __kmalloc_node_track_caller+0x135/0x180 > > > > This 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 :) ) > > SLUB is perfectly stable and usable for production. > > > > > > 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/0x180 > > > > > > Nov 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? > > Dunno ;) > > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] [<ffffffff81010e12>] > ? > > > cpu_idle+0xb2/0x100 > > > > Idle, not suspending... > > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] Active_anon:365111 > > > active_file:88612 inactive_anon:162361 > > > > Lots of inactive pages. Why were none chucked out? > > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] inactive_file:243222 > > > unevictable:4 dirty:214598 writeback:320 unstable:0 > > > > 214000+ dirty pages seems awfully high. > > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] free:6876 slab:51582 > > > mapped: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. > > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] Node 0 DMA > free:15644kB > > > min: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? no > > > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] lowmem_reserve[]: 0 > 2958 > > > 3905 3905 > > > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] Node 0 DMA32 > free:10124kB > > > min: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? > > > no > > > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] lowmem_reserve[]: 0 0 > 946 > > > 946 > > > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] Node 0 Normal > free:1736kB > > > min: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? > > > no > > > > Again, heaps of inactive. > > On normal zone, free(1736kB) < min(1932kB). It mean we can't use normal > zone. > On DMA32 zone, free(10124kB) < min(6044kB) + lowmem_reserve(946*4kB). > It mean we can't use DMA32 zone too. > Of cource, DMA zone is protected by lowmem_reserve too. > > It's normal memory shortage. > > > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] lowmem_reserve[]: 0 0 > 0 > > > 0 > > > > > > 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 > > All zones have order-2 contenious memory. > > > The conclusion is, the system is not so fragmentaion. but It doesn't have > enough memory. > Maybe, the system is under temporal memory pressure. you don't need care > it. > It automatically restored soon. > > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] 390803 total pagecache > > > pages > > > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] 12039 pages in swap > > > cache > > > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] Swap cache stats: add > > > 41296, delete 29257, find > > > 4825/7516 > > > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] Free swap 8330844kB > > > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] Total swap 8393952kB > > > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] 1032192 pages > > > RAM > > > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] 76928 pages > > > reserved > > > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] 488347 pages > > > shared > > > > > > Nov 4 22:40:22 dstathink kernel: [39835.951178] 596692 pages > non-shared > > > > OK, 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 :) ) > > -- > > To unsubscribe from this list: send the line "unsubscribe linux-kernel" > in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > > Please read the FAQ at http://www.tux.org/lkml/ > > > [-- Attachment #1.2: Type: text/html, Size: 10421 bytes --] [-- Attachment #2: Type: text/plain, Size: 159 bytes --] _______________________________________________ TuxOnIce-users mailing list TuxOnIce-users@lists.tuxonice.net http://lists.tuxonice.net/listinfo/tuxonice-users ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [TuxOnIce-users] strange OOM receiving a wireless network packet on a SLUB system 2009-11-05 12:28 ` Dominik Stadler @ 2009-11-05 22:26 ` Kenneth Crudup 0 siblings, 0 replies; 3+ messages in thread From: Kenneth Crudup @ 2009-11-05 22:26 UTC (permalink / raw) To: TuxOnIce users' list; +Cc: KOSAKI Motohiro, linux-mm On Thu, 5 Nov 2009, Dominik Stadler wrote: > As Kenneth indicated it is a known issue in .31 Oh, and the workaround (sorry, I'd forgotten to reply with it!) is to set the option amsdu_size_8K to "0" for module iwlagn (or on the boot parameter line). -Kenny -- Kenneth R. Crudup Sr. SW Engineer, Scott County Consulting, Los Angeles O: 3630 S. Sepulveda Blvd. #138, L.A., CA 90034-6809 (888) 454-8181 -- 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:"dont@kvack.org"> email@kvack.org </a> ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-11-05 22:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <c7a347a10911041421u35b102behe0ed2d94506680c1@mail.gmail.com>
[not found] ` <87zl71lt7l.fsf_-_@spindle.srvr.nix>
2009-11-05 1:21 ` strange OOM receiving a wireless network packet on a SLUB system KOSAKI Motohiro
2009-11-05 12:28 ` Dominik Stadler
2009-11-05 22:26 ` [TuxOnIce-users] " Kenneth Crudup
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox