[BUG] ZSwap leaks memory upon being disabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When ZSWAP is disabled, the `Zswap` and `Zswapped` in meminfo are still non-zero.
IOW, ZSWAP doesn't free memory upon being disabled.

Stumbled upon this while trying to figure out where did ≈4G of my SWAP memory
disappear. Been seeing some unknown memory in SWAP for years, now I suspect ZSWAP
might be the culprit. But no way to know for sure because of this bug.

# Steps to reproduce

1. Enable ZSWAP
2. Wait for `grep Zswap /proc/meminfo` to become non-zero
3. Disable ZSWAP via `sudo sh -c "echo 0 > /sys/module/zswap/parameters/enabled"`
4. Look at `grep Zswap /proc/meminfo`

## Expected

The rows are zero because ZSWAP is disabled.

## Actual

The rows doesn't change.

# Additional information

Kernel: 6.11.3
OS: Archlinux





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux