Swap Space
Update » Ubuntu » 24.04
echo 'swapon --show'|sudo bash
:'
NAME TYPE SIZE USED PRIO
/swap.img file 8G 0B -2
'
cat <<'EXE' | sudo bash
swapoff /swap.img
fallocate -l 12G /swap.img
ls -lh /swap.img && mkswap /swap.img
swapon /swap.img && swapon --show && free -th
EXE
Update » Raspberry Pi 4
cat <<'EXE' | sudo bash
printf '\nbefore:\n';free -th
sed -i 's|CONF_SWAPSIZE=100|CONF_SWAPSIZE=2048|' /etc/dphys-swapfile
service dphys-swapfile restart
printf '\nupdate:\n';free -th
EXE
Playground
echo 'sync;echo 3 >/proc/sys/vm/drop_caches && swapoff -a && swapon -a'|sudo bash
free -th
|
sudo swapon --show
cat /etc/fstab
| |
| ||
docker network prune -f
docker volume prune -f
docker system prune -f
docker image ls
|
cat <<'EXE' | bash
for d in system network volume
do docker ${d} prune -f;done
EXE
|
cat <<'EXE' | ssh [email protected]
for d in system network volume
do docker ${d} prune -f;done
EXE
|
| ||
References
| ||