Swap: Difference between revisions
Phanirithvij (talk | contribs) recommend swapspace |
Phanirithvij (talk | contribs) swapspace additional info |
||
| Line 70: | Line 70: | ||
Can use zramSwap along with this service. | Can use zramSwap along with this service. | ||
See your active swap partitions/files with `swapon`. | See your active swap partitions/files with `swapon`. For eg. | ||
<syntaxhighlight lang="console"> | |||
$ nix shell nixpkgs#stress.out -c stress --vm 2 --vm-bytes 20G # a way to rapidly eat up ram | |||
$ swapon | |||
NAME TYPE SIZE USED PRIO | |||
/dev/zram0 partition 13.8G 2.6G 5 | |||
/var/lib/swapspace/1 file 5.2G 59.2M -2 | |||
/var/lib/swapspace/2 file 6.1G 56.4M -3 | |||
</syntaxhighlight> | |||