The officially official Devuan Forum!

You are not logged in.

#1 Re: Hardware & System Configuration » [SOLVED] /sys/kernel/debug/zswap/: No such file or directory » 2023-01-25 01:17:20

Solved! You need to do mount -t debugfs none /sys/kernel/debug for it to be populated.

#2 Hardware & System Configuration » [SOLVED] /sys/kernel/debug/zswap/: No such file or directory » 2023-01-24 23:10:01

Fierelier
Replies: 1

Hello everyone!

I've been trying to observe zswap's statistics. grep -R . /sys/kernel/debug/zswap/ is frequently recommended, but /sys/kernel/debug/zswap does not exist. I've made /etc/boot.d/user-zswap, it looks like this:

#!/bin/sh
zswap=/sys/module/zswap/parameters
echo 75 > $zswap/max_pool_percent
echo 95 > $zswap/accept_threshold_percent
echo zstd > $zswap/compressor
echo zsmalloc > $zswap/zpool
echo 1 > $zswap/enabled

I checked if zswap was compiled into my kernel based on some older post when zswap was new: cat /boot/config-$(uname -r) | grep CONFIG_ZSWAP= gives me CONFIG_ZSWAP=y.

I also checked if zswap itself is enabled: cat /sys/module/zswap/parameters/enabled is Y.

My kernel version is 5.10.0-20-amd64.

What am I missing?

Board footer

Forum Software