8,560
edits
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 81: | Line 81: | ||
read -n 1 -s -r -p "Press any key to continue" | read -n 1 -s -r -p "Press any key to continue" | ||
else | else | ||
echo "[warning] | echo "[warning] zswap not active. Continuing" | ||
fi | fi | ||
else | else | ||
Line 89: | Line 89: | ||
awk '/VmSwap|Name/{printf $2 "\t" $3}END{ print "" }' "$szFile" | awk '/VmSwap|Name/{printf $2 "\t" $3}END{ print "" }' "$szFile" | ||
done | sort --key 2 --numeric --reverse | more | done | sort --key 2 --numeric --reverse | more | ||
=Using a Swap Partition= | =Using a Swap Partition= | ||
Line 108: | Line 109: | ||
{{note|Be sure to replace /dev/sda3 in the above commands with your actual swap partition.}} | {{note|Be sure to replace /dev/sda3 in the above commands with your actual swap partition.}} | ||
{{tip|''If you're using a HDD'' (spinning rust) put the swap partition *at the beginning of the disk* as the speed of the disk is higher on the | {{tip|''If you're using a HDD'' (spinning rust) put the swap partition *at the beginning of the disk* as the speed of the disk is higher on the outside tracks. On an SSD this doesn't matter.}} | ||
=Using a Swapfile= | =Using a Swapfile= |