mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-22 18:52:28 +01:00
Some checks are pending
md-naming / markdown naming convention (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (mypy, mypy) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (pylint, pylint) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (rest, ) (push) Waiting to run
Pre-commit checks / pre-commit (${{ matrix.group }}) (shellcheck, shellcheck) (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
Shell tests / shell-tests (push) Waiting to run
Shell tests / lib-tests (push) Waiting to run
Shell tests / arch-tests (push) Waiting to run
The optimizer pinned swappiness at 10, which keeps the kernel from using the 32 GiB zstd zram device. Raise it to 100. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WzxdWUvCN36e1dx3Ejii1p
42 lines
1.6 KiB
JSON
42 lines
1.6 KiB
JSON
{
|
|
"intent": "Raise vm.swappiness from 10 to 100 permanently so the kernel uses the 32 GiB zram swap.",
|
|
"scope": [
|
|
"linux_configuration/fixes/lib/arch_sysctl.sh (owns /etc/sysctl.d/90-desktop-performance.conf)",
|
|
"its test arch_sysctl_quarantined_cases.sh and the optimizer header comment",
|
|
"non-goal: other sysctl values, zram sizing, arch_perf_probes advice text"
|
|
],
|
|
"changes": [
|
|
"tweak_vm_sysctl: vm.swappiness 10 -> 100 in params map and drop-in",
|
|
"Test expectations updated to 100"
|
|
],
|
|
"verification": [
|
|
{
|
|
"command": "bash fixes/lib/tests/arch_sysctl_quarantined_cases.sh",
|
|
"result": "pass",
|
|
"evidence": "RED 18 passed 5 failed with tests at 100 and code at 10; GREEN 23 passed 0 failed after the code change"
|
|
},
|
|
{
|
|
"command": "vm run swp: sysctl -n vm.swappiness before, tweak_vm_sysctl, after guest reboot",
|
|
"result": "pass",
|
|
"evidence": "60 -> 100 -> 100 after reboot (uptime 39s); guest deleted"
|
|
},
|
|
{
|
|
"command": "sudo -n tweak_vm_sysctl on host; sysctl -n vm.swappiness",
|
|
"result": "pass",
|
|
"evidence": "100; drop-in has vm.swappiness = 100"
|
|
},
|
|
{
|
|
"command": "fixes/lib/tests/test_*.sh in 4 shards; pre-commit run on touched files",
|
|
"result": "pass",
|
|
"evidence": "34 test files passed, 0 failed; pre-commit green"
|
|
}
|
|
],
|
|
"risks": [
|
|
"More anonymous pages move to zram earlier; a full zram holds about 11 GiB of RAM",
|
|
"arch_perf_probes.sh still suggests sysctl vm.swappiness=10 under memory pressure"
|
|
],
|
|
"rollback": [
|
|
"Set vm.swappiness = 10 in /etc/sysctl.d/90-desktop-performance.conf and run sysctl --system"
|
|
]
|
|
}
|