Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

z_wr_int can be interrupted when CONFIG_PREEMPT_NONE=y is set #746

Closed
ryao opened this issue May 16, 2012 · 4 comments
Closed

z_wr_int can be interrupted when CONFIG_PREEMPT_NONE=y is set #746

ryao opened this issue May 16, 2012 · 4 comments
Labels
Component: Memory Management kernel memory management
Milestone

Comments

@ryao
Copy link
Contributor

ryao commented May 16, 2012

When stress testing the patches in #726, the following appeared in dmesg:

[ 1773.498133] z_wr_int/11: page allocation failure: order:0, mode:0x4020
[ 1773.498140] Pid: 3846, comm: z_wr_int/11 Tainted: P O 3.2.17 #1
[ 1773.498143] Call Trace:
[ 1773.498146] [] ? warn_alloc_failed+0xfc/0x150
[ 1773.498162] [] ? __alloc_pages_nodemask+0x580/0x7f0
[ 1773.498169] [] ? new_slab+0x209/0x220
[ 1773.498174] [] ? __slab_alloc.clone.64+0x204/0x290
[ 1773.498178] [] ? __netdev_alloc_skb+0x17/0x40
[ 1773.498184] [] ? __wake_up_common+0x50/0x80
[ 1773.498188] [] ? __kmalloc_track_caller+0x10b/0x160
[ 1773.498191] [] ? __alloc_skb+0x6e/0x170
[ 1773.498195] [] ? __netdev_alloc_skb+0x17/0x40
[ 1773.498208] [] ? e1000_alloc_rx_buffers+0x1fa/0x2e0 [e1000e]
[ 1773.498216] [] ? e1000_clean_rx_irq+0x28a/0x420 [e1000e]
[ 1773.498223] [] ? e1000_clean+0xb0/0x2a0 [e1000e]
[ 1773.498228] [] ? net_rx_action+0x79/0x110
[ 1773.498233] [] ? __do_softirq+0x90/0x110
[ 1773.498239] [] ? call_softirq+0x1c/0x30
[ 1773.498243] [] ? do_softirq+0x4d/0x80
[ 1773.498247] [] ? irq_exit+0x96/0xb0
[ 1773.498250] [] ? do_IRQ+0x5c/0xd0
[ 1773.498254] [] ? common_interrupt+0x6b/0x6b
[ 1773.498256] [] ? __mutex_lock_slowpath+0x1da/0x2a0
[ 1773.498282] [] ? dsl_dir_transfer_space+0x67/0x100 [zfs]
[ 1773.498286] [] ? mutex_lock+0x9/0x20
[ 1773.498297] [] ? arc_released+0x28/0x80 [zfs]
[ 1773.498309] [] ? dbuf_rele_and_unlock+0x46e/0x680 [zfs]
[ 1773.498319] [] ? arc_space_return+0x17c8/0x2de0 [zfs]
[ 1773.498331] [] ? zio_worst_error+0x290/0x1040 [zfs]
[ 1773.498338] [] ? kmem_free_debug+0x41/0x220 [spl]
[ 1773.498348] [] ? zio_worst_error+0x730/0x1040 [zfs]
[ 1773.498354] [] ? kmem_free_debug+0x41/0x220 [spl]
[ 1773.498369] [] ? vdev_queue_io_done+0x638/0x3760 [zfs]
[ 1773.498379] [] ? zio_worst_error+0x730/0x1040 [zfs]
[ 1773.498390] [] ? zio_execute+0x95/0x2a0 [zfs]
[ 1773.498404] [] ? vdev_queue_offset_compare+0x30b/0x5c0 [zfs]
[ 1773.498408] [] ? __mutex_lock_slowpath+0x1e2/0x2a0
[ 1773.498423] [] ? vdev_queue_io_done+0xa7/0x3760 [zfs]
[ 1773.498434] [] ? zio_buf_free+0x418/0xa90 [zfs]
[ 1773.498444] [] ? zio_execute+0x95/0x2a0 [zfs]
[ 1773.498450] [] ? __taskq_dispatch+0x7e0/0xb30 [spl]
[ 1773.498454] [] ? __schedule+0x29e/0x740
[ 1773.498460] [] ? try_to_wake_up+0x270/0x270
[ 1773.498465] [] ? __taskq_dispatch+0x580/0xb30 [spl]
[ 1773.498471] [] ? __taskq_dispatch+0x580/0xb30 [spl]
[ 1773.498477] [] ? kthread+0x96/0xa0
[ 1773.498481] [] ? kernel_thread_helper+0x4/0x10
[ 1773.498486] [] ? kthread_worker_fn+0x180/0x180
[ 1773.498490] [] ? gs_change+0xb/0xb
[ 1773.498492] Mem-Info:
[ 1773.498495] DMA per-cpu:
[ 1773.498498] CPU 0: hi: 0, btch: 1 usd: 0
[ 1773.498500] CPU 1: hi: 0, btch: 1 usd: 0
[ 1773.498503] CPU 2: hi: 0, btch: 1 usd: 0
[ 1773.498505] CPU 3: hi: 0, btch: 1 usd: 0
[ 1773.498508] CPU 4: hi: 0, btch: 1 usd: 0
[ 1773.498510] CPU 5: hi: 0, btch: 1 usd: 0
[ 1773.498512] DMA32 per-cpu:
[ 1773.498515] CPU 0: hi: 186, btch: 31 usd: 13
[ 1773.498517] CPU 1: hi: 186, btch: 31 usd: 24
[ 1773.498520] CPU 2: hi: 186, btch: 31 usd: 19
[ 1773.498522] CPU 3: hi: 186, btch: 31 usd: 14
[ 1773.498525] CPU 4: hi: 186, btch: 31 usd: 18
[ 1773.498527] CPU 5: hi: 186, btch: 31 usd: 0
[ 1773.498529] Normal per-cpu:
[ 1773.498531] CPU 0: hi: 186, btch: 31 usd: 0
[ 1773.498533] CPU 1: hi: 186, btch: 31 usd: 0
[ 1773.498535] CPU 2: hi: 186, btch: 31 usd: 0
[ 1773.498538] CPU 3: hi: 186, btch: 31 usd: 4
[ 1773.498540] CPU 4: hi: 186, btch: 31 usd: 2
[ 1773.498542] CPU 5: hi: 186, btch: 31 usd: 3
[ 1773.498548] active_anon:1831687 inactive_anon:213435 isolated_anon:0
[ 1773.498549] active_file:113 inactive_file:914 isolated_file:0
[ 1773.498551] unevictable:547 dirty:0 writeback:0 unstable:0
[ 1773.498552] free:14153 slab_reclaimable:17162 slab_unreclaimable:59568
[ 1773.498553] mapped:910 shmem:2 pagetables:5903 bounce:0
[ 1773.498560] DMA free:15896kB 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:15640kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes
[ 1773.498567] lowmem_reserve[]: 0 3118 15214 15214
[ 1773.498576] DMA32 free:40564kB min:13836kB low:17292kB high:20752kB active_anon:557436kB inactive_anon:156204kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:3193664kB mlocked:0kB dirty:0kB writeback:0kB mapped:4kB shmem:0kB slab_reclaimable:28556kB slab_unreclaimable:93192kB kernel_stack:144kB pagetables:3212kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:2 all_unreclaimable? no
[ 1773.498583] lowmem_reserve[]: 0 0 12096 12096
[ 1773.498592] Normal free:152kB min:53676kB low:67092kB high:80512kB active_anon:6769312kB inactive_anon:697536kB active_file:452kB inactive_file:3656kB unevictable:2188kB isolated(anon):0kB isolated(file):0kB present:12386304kB mlocked:2188kB dirty:0kB writeback:0kB mapped:3636kB shmem:8kB slab_reclaimable:40092kB slab_unreclaimable:145080kB kernel_stack:2712kB pagetables:20400kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:42 all_unreclaimable? no
[ 1773.498599] lowmem_reserve[]: 0 0 0 0
[ 1773.498602] DMA: 0_4kB 1_8kB 1_16kB 0_32kB 2_64kB 1_128kB 1_256kB 0_512kB 1_1024kB 1_2048kB 3_4096kB = 15896kB
[ 1773.498611] DMA32: 413_4kB 267_8kB 151_16kB 73_32kB 32_64kB 8_128kB 13_256kB 18_512kB 11_1024kB 0_2048kB 1_4096kB = 39516kB
[ 1773.498620] Normal: 0_4kB 0_8kB 0_16kB 0_32kB 0_64kB 0_128kB 0_256kB 0_512kB 0_1024kB 0_2048kB 0*4096kB = 0kB
[ 1773.498629] 23224 total pagecache pages
[ 1773.498631] 21711 pages in swap cache
[ 1773.498633] Swap cache stats: add 406690, delete 384979, find 25632/30547
[ 1773.498635] Free swap = 15335732kB
[ 1773.498637] Total swap = 16777212kB
[ 1773.562577] 3964912 pages RAM
[ 1773.562577] 102929 pages reserved
[ 1773.562577] 29333 pages shared
[ 1773.562577] 3318044 pages non-shared
[ 1773.562577] SLUB: Unable to allocate memory on node -1 (gfp=0x20)
[ 1773.562577] cache: kmalloc-2048, object size: 2048, buffer size: 2048, default order: 3, min order: 0
[ 1773.562577] node 0: slabs: 131, objs: 2096, free: 0

This is Linux 3.2.17 with CONFIG_PREEMPT_NONE=y set. I checked /proc/config.gz to be certain that preemption should be disabled. This should not be able to occur. There also appears to be a bug in e1000, as there is no reason why its page allocation should fail, but at least it gave us a backtrace so we can investigate why interrupts are on.

@ryao
Copy link
Contributor Author

ryao commented May 16, 2012

Here is another failure that occurred:

[ 5103.739075] z_wr_int/11: page allocation failure: order:0, mode:0x4020
[ 5103.739087] Pid: 3846, comm: z_wr_int/11 Tainted: P O 3.2.17 #1
[ 5103.739092] Call Trace:
[ 5103.739097] [] ? warn_alloc_failed+0xfc/0x150
[ 5103.739122] [] ? __alloc_pages_nodemask+0x580/0x7f0
[ 5103.739134] [] ? new_slab+0x209/0x220
[ 5103.739143] [] ? __slab_alloc.clone.64+0x204/0x290
[ 5103.739151] [] ? __netdev_alloc_skb+0x17/0x40
[ 5103.739161] [] ? __wake_up_common+0x50/0x80
[ 5103.739168] [] ? __kmalloc_track_caller+0x10b/0x160
[ 5103.739174] [] ? __alloc_skb+0x6e/0x170
[ 5103.739181] [] ? __netdev_alloc_skb+0x17/0x40
[ 5103.739200] [] ? e1000_alloc_rx_buffers+0x1fa/0x2e0 [e1000e]
[ 5103.739215] [] ? e1000_clean_rx_irq+0x28a/0x420 [e1000e]
[ 5103.739229] [] ? e1000_clean+0xb0/0x2a0 [e1000e]
[ 5103.739239] [] ? net_rx_action+0x79/0x110
[ 5103.739247] [] ? __do_softirq+0x90/0x110
[ 5103.739260] [] ? call_softirq+0x1c/0x30
[ 5103.739267] [] ? do_softirq+0x4d/0x80
[ 5103.739274] [] ? irq_exit+0x96/0xb0
[ 5103.739280] [] ? do_IRQ+0x5c/0xd0
[ 5103.739287] [] ? common_interrupt+0x6b/0x6b
[ 5103.739292] [] ? spl_kmem_cache_free+0x72/0x1f0 [spl]
[ 5103.739343] [] ? bpobj_iterate+0x392/0x6d0 [zfs]
[ 5103.739367] [] ? dbuf_evict+0xac/0x530 [zfs]
[ 5103.739387] [] ? arc_buf_evict+0x137/0x320 [zfs]
[ 5103.739415] [] ? dbuf_clear+0xe5/0x1f0 [zfs]
[ 5103.739436] [] ? arc_space_return+0x17c8/0x2de0 [zfs]
[ 5103.739458] [] ? zio_worst_error+0x290/0x1040 [zfs]
[ 5103.739470] [] ? kmem_free_debug+0x41/0x220 [spl]
[ 5103.739490] [] ? zio_worst_error+0x730/0x1040 [zfs]
[ 5103.739500] [] ? kmem_free_debug+0x41/0x220 [spl]
[ 5103.739530] [] ? vdev_queue_io_done+0x638/0x3760 [zfs]
[ 5103.739550] [] ? zio_worst_error+0x730/0x1040 [zfs]
[ 5103.739569] [] ? zio_worst_error+0x730/0x1040 [zfs]
[ 5103.739591] [] ? zio_execute+0x95/0x2a0 [zfs]
[ 5103.739603] [] ? __taskq_dispatch+0x7e0/0xb30 [spl]
[ 5103.739610] [] ? __schedule+0x29e/0x740
[ 5103.739618] [] ? try_to_wake_up+0x270/0x270
[ 5103.739629] [] ? __taskq_dispatch+0x580/0xb30 [spl]
[ 5103.739640] [] ? __taskq_dispatch+0x580/0xb30 [spl]
[ 5103.739648] [] ? kthread+0x96/0xa0
[ 5103.739656] [] ? kernel_thread_helper+0x4/0x10
[ 5103.739664] [] ? kthread_worker_fn+0x180/0x180
[ 5103.739672] [] ? gs_change+0xb/0xb
[ 5103.739676] Mem-Info:
[ 5103.739679] DMA per-cpu:
[ 5103.739684] CPU 0: hi: 0, btch: 1 usd: 0
[ 5103.739690] CPU 1: hi: 0, btch: 1 usd: 0
[ 5103.739694] CPU 2: hi: 0, btch: 1 usd: 0
[ 5103.739699] CPU 3: hi: 0, btch: 1 usd: 0
[ 5103.739703] CPU 4: hi: 0, btch: 1 usd: 0
[ 5103.739708] CPU 5: hi: 0, btch: 1 usd: 0
[ 5103.739712] DMA32 per-cpu:
[ 5103.739716] CPU 0: hi: 186, btch: 31 usd: 4
[ 5103.739721] CPU 1: hi: 186, btch: 31 usd: 38
[ 5103.739726] CPU 2: hi: 186, btch: 31 usd: 21
[ 5103.739731] CPU 3: hi: 186, btch: 31 usd: 19
[ 5103.739735] CPU 4: hi: 186, btch: 31 usd: 63
[ 5103.739740] CPU 5: hi: 186, btch: 31 usd: 25
[ 5103.739744] Normal per-cpu:
[ 5103.739747] CPU 0: hi: 186, btch: 31 usd: 0
[ 5103.739752] CPU 1: hi: 186, btch: 31 usd: 36
[ 5103.739756] CPU 2: hi: 186, btch: 31 usd: 0
[ 5103.739761] CPU 3: hi: 186, btch: 31 usd: 0
[ 5103.739765] CPU 4: hi: 186, btch: 31 usd: 90
[ 5103.739770] CPU 5: hi: 186, btch: 31 usd: 156
[ 5103.739781] active_anon:1444144 inactive_anon:169465 isolated_anon:0
[ 5103.739784] active_file:155 inactive_file:677 isolated_file:0
[ 5103.739787] unevictable:547 dirty:0 writeback:0 unstable:0
[ 5103.739789] free:6591 slab_reclaimable:14330 slab_unreclaimable:70582
[ 5103.739792] mapped:1012 shmem:2 pagetables:6077 bounce:0
[ 5103.739806] DMA free:15896kB 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:15640kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes
[ 5103.739820] lowmem_reserve[]: 0 3118 15214 15214
[ 5103.739837] DMA32 free:10468kB min:13836kB low:17292kB high:20752kB active_anon:455804kB inactive_anon:136824kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:3193664kB mlocked:0kB dirty:0kB writeback:0kB mapped:4kB shmem:0kB slab_reclaimable:9440kB slab_unreclaimable:82656kB kernel_stack:136kB pagetables:3228kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
[ 5103.739851] lowmem_reserve[]: 0 0 12096 12096
[ 5103.739867] Normal free:0kB min:53676kB low:67092kB high:80512kB active_anon:5320772kB inactive_anon:541036kB active_file:620kB inactive_file:2708kB unevictable:2188kB isolated(anon):0kB isolated(file):0kB present:12386304kB mlocked:2188kB dirty:0kB writeback:0kB mapped:4044kB shmem:8kB slab_reclaimable:47880kB slab_unreclaimable:199672kB kernel_stack:2752kB pagetables:21080kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
[ 5103.739883] lowmem_reserve[]: 0 0 0 0
[ 5103.739889] DMA: 0_4kB 1_8kB 1_16kB 0_32kB 2_64kB 1_128kB 1_256kB 0_512kB 1_1024kB 1_2048kB 3_4096kB = 15896kB
[ 5103.739908] DMA32: 746_4kB 322_8kB 1_16kB 0_32kB 0_64kB 1_128kB 0_256kB 1_512kB 1_1024kB 1_2048kB 0_4096kB = 9288kB
[ 5103.739925] Normal: 0_4kB 0_8kB 0_16kB 0_32kB 0_64kB 0_128kB 0_256kB 0_512kB 0_1024kB 0_2048kB 0_4096kB = 0kB
[ 5103.739942] 25886 total pagecache pages
[ 5103.739945] 24594 pages in swap cache
[ 5103.739950] Swap cache stats: add 906137, delete 881543, find 47476/56588
[ 5103.739955] Free swap = 13522028kB
[ 5103.739958] Total swap = 16777212kB
[ 5103.843925] z_wr_iss/1: page allocation failure: order:0, mode:0x40d0
[ 5103.843937] Pid: 3825, comm: z_wr_iss/1 Tainted: P O 3.2.17 #1
[ 5103.843943] Call Trace:
[ 5103.843960] [] ? warn_alloc_failed+0xfc/0x150
[ 5103.843970] [] ? __alloc_pages_nodemask+0x580/0x7f0
[ 5103.843982] [] ? new_slab+0x209/0x220
[ 5103.843990] [] ? __slab_alloc.clone.64+0x204/0x290
[ 5103.844030] [] ? kmem_alloc_debug+0x283/0x360 [spl]
[ 5103.844041] [] ? __kmalloc+0x110/0x170
[ 5103.844053] [] ? kmem_alloc_debug+0x283/0x360 [spl]
[ 5103.844062] [] ? __mutex_lock_slowpath+0x1e2/0x2a0
[ 5103.844097] [] ? vdev_queue_io_done+0xf02/0x3760 [zfs]
[ 5103.844119] [] ? zio_nowait+0x9d/0xeb0 [zfs]
[ 5103.844149] [] ? vdev_config_sync+0x9fd/0xca0 [zfs]
[ 5103.844178] [] ? vdev_config_sync+0x190/0xca0 [zfs]
[ 5103.844200] [] ? zio_execute+0x95/0x2a0 [zfs]
[ 5103.844212] [] ? __taskq_dispatch+0x7e0/0xb30 [spl]
[ 5103.844219] [] ? __schedule+0x29e/0x740
[ 5103.844227] [] ? try_to_wake_up+0x270/0x270
[ 5103.844238] [] ? __taskq_dispatch+0x580/0xb30 [spl]
[ 5103.844249] [] ? __taskq_dispatch+0x580/0xb30 [spl]
[ 5103.844258] [] ? kthread+0x96/0xa0
[ 5103.844267] [] ? kernel_thread_helper+0x4/0x10
[ 5103.844274] [] ? kthread_worker_fn+0x180/0x180
[ 5103.844283] [] ? gs_change+0xb/0xb
[ 5103.844287] Mem-Info:
[ 5103.844290] DMA per-cpu:
[ 5103.844296] CPU 0: hi: 0, btch: 1 usd: 0
[ 5103.844301] CPU 1: hi: 0, btch: 1 usd: 0
[ 5103.844306] CPU 2: hi: 0, btch: 1 usd: 0
[ 5103.844310] CPU 3: hi: 0, btch: 1 usd: 0
[ 5103.844315] CPU 4: hi: 0, btch: 1 usd: 0
[ 5103.844319] CPU 5: hi: 0, btch: 1 usd: 0
[ 5103.844323] DMA32 per-cpu:
[ 5103.844328] CPU 0: hi: 186, btch: 31 usd: 4
[ 5103.844333] CPU 1: hi: 186, btch: 31 usd: 21
[ 5103.844338] CPU 2: hi: 186, btch: 31 usd: 21
[ 5103.844343] CPU 3: hi: 186, btch: 31 usd: 19
[ 5103.844347] CPU 4: hi: 186, btch: 31 usd: 63
[ 5103.844352] CPU 5: hi: 186, btch: 31 usd: 25
[ 5103.844355] Normal per-cpu:
[ 5103.844359] CPU 0: hi: 186, btch: 31 usd: 0
[ 5103.844363] CPU 1: hi: 186, btch: 31 usd: 36
[ 5103.844368] CPU 2: hi: 186, btch: 31 usd: 0
[ 5103.844372] CPU 3: hi: 186, btch: 31 usd: 0
[ 5103.844377] CPU 4: hi: 186, btch: 31 usd: 31
[ 5103.844381] CPU 5: hi: 186, btch: 31 usd: 156
[ 5103.844393] active_anon:1444144 inactive_anon:169465 isolated_anon:0
[ 5103.844396] active_file:155 inactive_file:726 isolated_file:0
[ 5103.844398] unevictable:547 dirty:0 writeback:0 unstable:0
[ 5103.844401] free:311 slab_reclaimable:14330 slab_unreclaimable:70666
[ 5103.844403] mapped:1012 shmem:2 pagetables:6077 bounce:0
[ 5103.844418] DMA free:0kB 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:15640kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:0kB slab_unreclaimable:336kB kernel_stack:0kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes
[ 5103.844432] lowmem_reserve[]: 0 3118 15214 15214
[ 5103.844450] DMA32 free:1244kB min:13836kB low:17292kB high:20752kB active_anon:455804kB inactive_anon:136824kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:3193664kB mlocked:0kB dirty:0kB writeback:0kB mapped:4kB shmem:0kB slab_reclaimable:9440kB slab_unreclaimable:82656kB kernel_stack:136kB pagetables:3228kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
[ 5103.844463] lowmem_reserve[]: 0 0 12096 12096
[ 5103.844480] Normal free:0kB min:53676kB low:67092kB high:80512kB active_anon:5320772kB inactive_anon:541036kB active_file:620kB inactive_file:2904kB unevictable:2188kB isolated(anon):0kB isolated(file):0kB present:12386304kB mlocked:2188kB dirty:0kB writeback:0kB mapped:4044kB shmem:8kB slab_reclaimable:47880kB slab_unreclaimable:199672kB kernel_stack:2752kB pagetables:21080kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
[ 5103.844494] lowmem_reserve[]: 0 0 0 0
[ 5103.844500] DMA: 0_4kB 0_8kB 0_16kB 0_32kB 0_64kB 0_128kB 0_256kB 0_512kB 0_1024kB 0_2048kB 0_4096kB = 0kB
[ 5103.844519] DMA32: 0_4kB 0_8kB 0_16kB 0_32kB 0_64kB 0_128kB 0_256kB 0_512kB 0_1024kB 0_2048kB 0_4096kB = 0kB
[ 5103.844536] Normal: 0_4kB 0_8kB 0_16kB 0_32kB 0_64kB 0_128kB 0_256kB 0_512kB 0_1024kB 0_2048kB 0_4096kB = 0kB
[ 5103.844553] 25959 total pagecache pages
[ 5103.844556] 24594 pages in swap cache
[ 5103.844561] Swap cache stats: add 906137, delete 881543, find 47476/56588
[ 5103.844566] Free swap = 13522028kB
[ 5103.844569] Total swap = 16777212kB
[ 5103.747481] 3964912 pages RAM
[ 5103.747481] 102929 pages reserved
[ 5103.747481] 31305 pages shared
[ 5103.747481] 3312872 pages non-shared
[ 5103.747481] SLUB: Unable to allocate memory on node -1 (gfp=0x20)
[ 5103.747481] cache: kmalloc-2048, object size: 2048, buffer size: 2048, default order: 3, min order: 0
[ 5103.747481] node 0: slabs: 135, objs: 2146, free: 0
[ 5103.986906] 3964912 pages RAM
[ 5103.986912] 102929 pages reserved
[ 5103.986916] 31318 pages shared
[ 5103.986919] 3311090 pages non-shared
[ 5103.986926] SLUB: Unable to allocate memory on node -1 (gfp=0xd0)
[ 5103.986933] cache: kmalloc-512, object size: 512, buffer size: 512, default order: 1, min order: 0
[ 5103.986955] node 0: slabs: 473, objs: 7568, free: 1075

@behlendorf
Copy link
Contributor

This is a failed atomic allocations in the network layer (__alloc_skb) likely because we've consumed to much of the reserve. It will result in a packet drop which is harmless since it will trigger a retransmit but does show we're still pushing the VM pretty hard.

@ryao
Copy link
Contributor Author

ryao commented May 16, 2012

I only observe these failed allocations in the context of a z_wr_int thread. I have yet to observe them in any other situation, which is strange. I suspect that the use of PF_MEMALLOC had an unforeseen side effect.

@ryao
Copy link
Contributor Author

ryao commented Aug 26, 2012

This issue is resolved by pull request #883.

@ryao ryao closed this as completed Aug 26, 2012
pcd1193182 pushed a commit to pcd1193182/zfs that referenced this issue Sep 26, 2023
)

Bumps [sysinfo](https://github.com/GuillaumeGomez/sysinfo) from 0.28.1 to 0.28.2.
- [Release notes](https://github.com/GuillaumeGomez/sysinfo/releases)
- [Changelog](https://github.com/GuillaumeGomez/sysinfo/blob/master/CHANGELOG.md)
- [Commits](https://github.com/GuillaumeGomez/sysinfo/commits)

---
updated-dependencies:
- dependency-name: sysinfo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Memory Management kernel memory management
Projects
None yet
Development

No branches or pull requests

2 participants