testsAndMisc/python_pkg/swap_bench
Krzysztof kuhy Rudnicki 5e0d8727d6 A/B zswap vs zram: zram stays the default
Add setup_zswap.sh and make setup_zram.sh its one-command revert
(shared lib/swap_switch.sh: systemd-boot/GRUB cmdline, live switch or
exit 3 "reboot to apply"). Add swap_bench.sh + python_pkg/swap_bench, a
seeded memory-pressure benchmark. 3 runs x 2 setups in vmbox and on the
host: zram has lower median PSI full in both (VM 5996 vs 10360 ms, host
7427 vs 8973 ms), so the host keeps booting with zram. Results in
linux_configuration/fixes/DOCS-zswap-vs-zram.md.

Bug-class-check: none — new feature and measurement, not a bug fix

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 12:34:25 +01:00
..
tests A/B zswap vs zram: zram stays the default 2026-11-27 12:34:25 +01:00
__init__.py A/B zswap vs zram: zram stays the default 2026-11-27 12:34:25 +01:00
__main__.py A/B zswap vs zram: zram stays the default 2026-11-27 12:34:25 +01:00
cli.py A/B zswap vs zram: zram stays the default 2026-11-27 12:34:25 +01:00
seeded.py A/B zswap vs zram: zram stays the default 2026-11-27 12:34:25 +01:00
stats.py A/B zswap vs zram: zram stays the default 2026-11-27 12:34:25 +01:00
summary.py A/B zswap vs zram: zram stays the default 2026-11-27 12:34:25 +01:00
workload.py A/B zswap vs zram: zram stays the default 2026-11-27 12:34:25 +01:00