Bug 204315 - Crash with zswap + zstd
Summary: Crash with zswap + zstd
Status: NEW
Alias: None
Product: Memory Management
Classification: Unclassified
Component: Page Allocator (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Andrew Morton
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-25 20:07 UTC by alpha_one_x86
Modified: 2019-07-25 20:09 UTC (History)
0 users

See Also:
Kernel Version: 4.19.60
Tree: Mainline
Regression: No


Attachments

Description alpha_one_x86 2019-07-25 20:07:58 UTC
Hi, here my backtrace because I don't known how reproduce that's

I'm on Aarch64 (odroid C2)
[87314.094581] kswapd0: page allocation failure: order:0, mode:0x480020(GFP_ATOMIC), nodemask=(null)
[87314.094590] kswapd0 cpuset=/ mems_allowed=0
[87314.094605] CPU: 0 PID: 512 Comm: kswapd0 Not tainted 4.19.60 #1
[87314.094607] Hardware name: Hardkernel ODROID-C2 (DT)
[87314.094609] Call trace:
[87314.094620]  dump_backtrace+0x0/0x198
[87314.094625]  show_stack+0x14/0x20
[87314.094631]  dump_stack+0x9c/0xbc
[87314.094639]  warn_alloc+0xf4/0x178
[87314.094643]  __alloc_pages_nodemask+0xa88/0xb08
[87314.094647]  page_frag_alloc+0x13c/0x160
[87314.094653]  __netdev_alloc_skb+0xac/0x128
[87314.094662]  stmmac_napi_poll+0xc70/0xf08
[87314.094672]  net_rx_action+0x104/0x2c0
[87314.094676]  __do_softirq+0x104/0x1f8
[87314.094683]  irq_exit+0x9c/0xb8
[87314.094690]  __handle_domain_irq+0x64/0xb8
[87314.094692]  gic_handle_irq+0x50/0xa0
[87314.094695]  el1_irq+0xb0/0x140
[87314.094702]  ZSTD_compressBlock_doubleFast+0x3b0/0x1e20
[87314.094706]  ZSTD_compressBlock_internal+0xd0/0x11d0
[87314.094709]  ZSTD_compressContinue_internal+0x1d0/0x4a8
[87314.094711]  ZSTD_compressEnd+0x2c/0x160
[87314.094714]  ZSTD_compressCCtx+0x218/0x378
[87314.094721]  __zstd_compress+0x84/0xc8
[87314.094724]  zstd_compress+0x24/0x30
[87314.094730]  crypto_compress+0x14/0x20
[87314.094739]  zswap_frontswap_store+0x1b8/0x548
[87314.094742]  __frontswap_store+0x94/0x198
[87314.094745]  swap_writepage+0x58/0xa0
[87314.094751]  shmem_writepage+0x1fc/0x388
[87314.094754]  pageout.isra.13+0xf0/0x318
[87314.094758]  shrink_page_list+0x640/0xba0
[87314.094761]  shrink_inactive_list+0x208/0x568
[87314.094764]  shrink_node_memcg+0x1c0/0x650
[87314.094766]  shrink_node+0xb8/0x4b8
[87314.094769]  kswapd+0x32c/0x5f0
[87314.094775]  kthread+0x124/0x128
[87314.094779]  ret_from_fork+0x10/0x1c
[87314.094782] Mem-Info:
[87314.094792] active_anon:229459 inactive_anon:79500 isolated_anon:258
                active_file:955 inactive_file:3400 isolated_file:41
                unevictable:1476 dirty:148 writeback:0 unstable:0
                slab_reclaimable:12303 slab_unreclaimable:36995
                mapped:2626 shmem:3835 pagetables:10329 bounce:0
                free:8169 free_pcp:707 free_cma:7718
[87314.094798] Node 0 active_anon:917836kB inactive_anon:318000kB active_file:3820kB inactive_file:13600kB unevictable:5904kB isolated(anon):1032kB isolated(file):164kB mapped:10504kB dirty:592kB writeback:0kB shmem:15340kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
[87314.094807] DMA32 free:32676kB min:5204kB low:6896kB high:8588kB active_anon:918504kB inactive_anon:318144kB active_file:3968kB inactive_file:13784kB unevictable:5904kB writepending:592kB present:1944576kB managed:1896148kB mlocked:5904kB kernel_stack:9312kB pagetables:41316kB bounce:0kB free_pcp:2824kB local_pcp:784kB free_cma:30872kB
[87314.094808] lowmem_reserve[]: 0 0 0
[87314.094813] DMA32: 1002*4kB (MHC) 737*8kB (HC) 313*16kB (HC) 192*32kB (HC) 77*64kB (HC) 35*128kB (C) 7*256kB (C) 1*512kB (C) 0*1024kB 0*2048kB 0*4096kB = 32768kB
[87314.094841] Node 0 hugepages_total=2 hugepages_free=2 hugepages_surp=0 hugepages_size=2048kB
[87314.094842] 10828 total pagecache pages
[87314.094851] 1515 pages in swap cache
[87314.094854] Swap cache stats: add 394645, delete 393125, find 3406620/3430312
[87314.094856] Free swap  = 4267768kB
[87314.094857] Total swap = 5321720kB
[87314.094858] 486144 pages RAM
[87314.094860] 0 pages HighMem/MovableOnly
[87314.094861] 12107 pages reserved
[87314.094862] 48128 pages cma reserved
[87314.094872] meson8b-dwmac c9410000.ethernet: packet dropped
[87314.094881] kswapd0: page allocation failure: order:0, mode:0x480020(GFP_ATOMIC), nodemask=(null)
[87314.094883] kswapd0 cpuset=/ mems_allowed=0
[87314.094892] CPU: 0 PID: 512 Comm: kswapd0 Not tainted 4.19.60 #1
[87314.094894] Hardware name: Hardkernel ODROID-C2 (DT)
[87314.094895] Call trace:
[87314.094901]  dump_backtrace+0x0/0x198
[87314.094904]  show_stack+0x14/0x20
[87314.094909]  dump_stack+0x9c/0xbc
[87314.094912]  warn_alloc+0xf4/0x178
[87314.094915]  __alloc_pages_nodemask+0xa88/0xb08
[87314.094918]  page_frag_alloc+0x13c/0x160
[87314.094923]  __netdev_alloc_skb+0xac/0x128
[87314.094930]  stmmac_napi_poll+0xc70/0xf08
[87314.094936]  net_rx_action+0x104/0x2c0
[87314.094938]  __do_softirq+0x104/0x1f8
[87314.094942]  irq_exit+0x9c/0xb8
[87314.094946]  __handle_domain_irq+0x64/0xb8
[87314.094949]  gic_handle_irq+0x50/0xa0
[87314.094951]  el1_irq+0xb0/0x140
[87314.094955]  ZSTD_compressBlock_doubleFast+0x3b0/0x1e20
[87314.094958]  ZSTD_compressBlock_internal+0xd0/0x11d0
[87314.094961]  ZSTD_compressContinue_internal+0x1d0/0x4a8
[87314.094964]  ZSTD_compressEnd+0x2c/0x160
[87314.094966]  ZSTD_compressCCtx+0x218/0x378
[87314.094970]  __zstd_compress+0x84/0xc8
[87314.094973]  zstd_compress+0x24/0x30
[87314.094977]  crypto_compress+0x14/0x20
[87314.094982]  zswap_frontswap_store+0x1b8/0x548
[87314.094985]  __frontswap_store+0x94/0x198
[87314.094987]  swap_writepage+0x58/0xa0
[87314.094991]  shmem_writepage+0x1fc/0x388
[87314.094993]  pageout.isra.13+0xf0/0x318
[87314.094997]  shrink_page_list+0x640/0xba0
[87314.094999]  shrink_inactive_list+0x208/0x568
[87314.095002]  shrink_node_memcg+0x1c0/0x650
[87314.095004]  shrink_node+0xb8/0x4b8
[87314.095007]  kswapd+0x32c/0x5f0
[87314.095010]  kthread+0x124/0x128
[87314.095012]  ret_from_fork+0x10/0x1c
[87314.095017] meson8b-dwmac c9410000.ethernet: packet dropped
Comment 1 alpha_one_x86 2019-07-25 20:09:31 UTC
I use this:
zswap.enabled=1 zswap.compressor=zstd zswap.max_pool_percent=80 zswap.zpool=z3fold

Note You need to log in before you can comment on or make changes to this bug.