mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-27 20:29:04 +01:00
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>
18 lines
1.3 KiB
JSON
18 lines
1.3 KiB
JSON
{
|
|
"title": "zswap vs zram A/B test with one-command switching",
|
|
"objective": "Measure zswap against the 32 GiB zram setup with a seeded benchmark in vmbox and on the host, keep the winner as the boot default, and make each setup script the one-command switch to its setup.",
|
|
"acceptance_criteria": [
|
|
"setup_zswap.sh switches live (no zram0; zswap Y/zstd/35) and the cmdline carries the zswap tokens after a reboot",
|
|
"Hibernate/resume works in vmbox with zswap on",
|
|
"setup_zram.sh reverts in one command; a second run of either script changes nothing",
|
|
"setup_zswap.sh exits 3 'reboot to apply' when zram cannot drain, and the next boot is on zswap",
|
|
"swap_bench.sh run is under 60 s, appends one row, and the same seed gives the same workload; summary names the winner by the agreed rule",
|
|
"DOCS-zswap-vs-zram.md holds VM and host tables (3 runs x 2 setups) and the raw rows; the host boots the winner"
|
|
],
|
|
"out_of_scope": [
|
|
"Hibernation config and swapfile priorities",
|
|
"fix_ubuntu_performance.sh"
|
|
],
|
|
"verifier": "test_swap_switch.sh 45/45, test_swap_bench.sh 27/27, pytest python_pkg/swap_bench 28 passed at 100% branch, vmbox_swap.sh phases all OK, vm wake hibernate resumed with zswap on, host and VM summaries both pick zram, host verified on zram with zswap.enabled=0."
|
|
}
|