Bug 198585

Summary: zswap z3fold lockup
Product: Memory Management Reporter: Andrew (maaniv)
Component: OtherAssignee: Andrew Morton (akpm)
Status: NEW ---    
Severity: normal CC: imwellcushtymelike, oleksandr, vitalywool
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.14.15-1 Subsystem:
Regression: No Bisected commit-id:
Attachments: proposed patch

Description Andrew 2018-01-25 10:42:31 UTC
When i use zswap with /sys/module/zswap/parameters/zpool setted to z3fold system lockups when i open many tabs in chromium. With zbud all is OK.

zswap settings:
/sys/module/zswap/parameters/enabled:Y
/sys/module/zswap/parameters/max_pool_percent:25
/sys/module/zswap/parameters/zpool:z3fold
/sys/module/zswap/parameters/compressor:lzo

swapon:
NAME                             TYPE SIZE USED PRIO
/home/amachulin/my-data/swapfile file   8G   4G   50

System journal is clean, no error and warning messages.

Lockup happened in 90% cases. In other 10% lockup happens after exit from sleep.

Sorry for my English.
Comment 1 Vitaly 2018-02-10 11:39:02 UTC
Created attachment 274087 [details]
proposed patch

I can't be sure I've seen the same problem you'd reported since you hadn't provided that much of a detail. However, I believe this patch is worth a try.
Comment 2 Ken Sharp 2019-02-12 10:49:52 UTC
https://bugzilla.kernel.org/show_bug.cgi?id=201603 could be related or the cause may be the same.