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

lz4 not being used. #46

Closed
SSalekin opened this issue Nov 13, 2017 · 1 comment
Closed

lz4 not being used. #46

SSalekin opened this issue Nov 13, 2017 · 1 comment

Comments

@SSalekin
Copy link

If I run dmesg | grep -i zswap, it says lzo is being used for compression.

[    0.724002] zswap: loaded using pool lzo/zbud

However, sudo systemd-swap status says it's using lz4

Zswap:
.  compressor        lz4
.  enabled           Y
.  max_pool_percent  80
.  zpool             z3fold
.  .  duplicate_entry        0
.  .  pool_limit_hit         0
.  .  pool_total_size        0
.  .  reject_alloc_fail      0
.  .  reject_compress_poor   0
.  .  reject_kmemcache_fail  0
.  .  reject_reclaim_fail    0
.  .  stored_pages           0
.  .  written_back_pages     0
.  .  compress_ratio         0%
SwapFC:
.        NAME                            TYPE  SIZE  USED  PRIO
.        /var/lib/systemd-swap/swapfc/1  file  512M  0B    -1
SwapD:
.       NAME  TYPE  SIZE  USED  PRIO

Is lz4 being used actually?

PS: I have lz4,lz4_compression added in /etc/initramfs-tools/modules

cat /etc/initramfs-tools/modules

# List of modules that you want to include in your initramfs.
# They will be loaded at boot time in the order below.
#
# Syntax:  module_name [args ...]
#
# You must run update-initramfs(8) to effect this change.
#
# Examples:
#
# raid1
# sd_mod
lz4
lz4_compress
@nefelim4ag
Copy link
Owner

nefelim4ag commented Nov 13, 2017

i.e. yes, zswap use lz4, if systemd-swap show lz4 (values readed the same way, like below)

➜  ~ grep -R . /sys/module/zswap/parameters              
/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:lz4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants