Swap: Difference between revisions
m →Swap file: clarify that it creates the swap file |
m →Zswap swap cache: add note of needing to enable systemd for using lz4 |
||
Line 85: | Line 85: | ||
</nowiki> | </nowiki> | ||
}} | }} | ||
{{note|If you use the <code>lz4</code> algorithm, you will also need to set {{nixos:option|boot.initrd.systemd.enable}} to true}} | |||
You can verify zswap's runtime status via <code>cat /sys/module/zswap/parameters/enabled</code> and inspect usage statistics with <code># grep -r . /sys/kernel/debug/zswap/</code> | You can verify zswap's runtime status via <code>cat /sys/module/zswap/parameters/enabled</code> and inspect usage statistics with <code># grep -r . /sys/kernel/debug/zswap/</code> |