Bug 195301 - zram fails on decompressing when using lz4hc -22
Summary: zram fails on decompressing when using lz4hc -22
Status: NEW
Alias: None
Product: Other
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: other_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-09 08:59 UTC by Bodo Thiesen
Modified: 2017-05-12 05:40 UTC (History)
2 users (show)

See Also:
Kernel Version: 4.9.13
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Bodo Thiesen 2017-04-09 08:59:02 UTC
Apr  9 10:14:46 hostname kernel: zram: Decompression failed! err=-22, page=337905
Apr  9 10:14:46 hostname kernel: zram: Decompression failed! err=-22, page=337905
Apr  9 10:14:46 hostname kernel: Read-error on swap-device (251:1:2703240)

Many more errors like this have been logged. I did use zram with the default lzo for a long time now without errors. Shortly before this error occured, I switches to lz4hc (and at 10:14 the system got under high memory stress causing one process after the other to SIGBUS away).

Don't know if it's important, some system infos:

processor       : 5
vendor_id       : AuthenticAMD
cpu family      : 21
model           : 2
model name      : AMD FX(tm)-6350 Six-Core Processor
stepping        : 0
microcode       : 0x600081c
cpu MHz         : 1400.000
cache size      : 2048 KB
physical id     : 0
siblings        : 6
core id         : 5
cpu cores       : 3
apicid          : 21
initial apicid  : 5
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf eagerfpu pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 popcnt aes xsave avx f16c lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm topoext perfctr_core perfctr_nb cpb hw_pstate vmmcall bmi1 arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold
bugs            : fxsave_leak sysret_ss_attrs null_seg
bogomips        : 7798.83
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 48 bits physical, 48 bits virtual
power management: ts ttp tm 100mhzsteps hwpstate cpb eff_freq_ro

gcc (Gentoo 5.3.0 p1.0, pie-0.6.5) 5.3.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Comment 1 Myungho Jung 2017-04-10 01:50:06 UTC
How did you change zram from lzo to lz4hc?
Comment 2 Bodo Thiesen 2017-04-11 07:12:40 UTC
echo "lz4hc" > /sys/block/zram0/comp_algorithm

BTW: Currently running on lz4 - no problems so far (but slightly worse compression ratio for my workload, so switching back to lzo).

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