Swap: Difference between revisions

swapspace additional info
warning for example
Line 71: Line 71:


See your active swap partitions/files with `swapon`. For eg.
See your active swap partitions/files with `swapon`. For eg.
{{warning|Do not run the following without swapspace active + 40GB free disk space OR if you have 40GB ram to spare.}}


<syntaxhighlight lang="console">
<syntaxhighlight lang="console">
$ nix shell nixpkgs#stress.out -c stress --vm 2 --vm-bytes 20G # a way to rapidly eat up ram
# Read the WARNING above
$ # nix shell nixpkgs#stress.out -c stress --vm 1 --vm-bytes 20G
$ swapon
$ swapon
NAME                TYPE      SIZE  USED PRIO
NAME                TYPE      SIZE  USED PRIO