Swap

## Preparing additional swap memory of 16GB
sudo dd if=/dev/zero of=/var/swap bs=1M count=16384
#sudo mkswap /var/swap
sudo mkswap --label swap /var/swap
sudo chmod 600 /var/swap
sudo swapon /var/swap
#sudo swapoff /var/swap
#swapon -s
cat /proc/swaps
## Filename      Type      Size      Used      Priority
## /var/swap     file      16777212  755516    -2
free -m
##            total      used      free     shared   buff/cache   available
## Mem:        7430      3938      3335          1          156        3282
## Swap:      16383       737     15646
sudo vi /etc/fstab
================================
#LABEL=swap none swap defaults 0 0
/var/swap swap swap defaults 0 0
================================
sudo systemctl daemon-reload
sudo swapon /var/swap

Daiphys is a professional-service company for research and development of leading-edge technologies in science and engineering.
Get started accelerating your business through our deep expertise in R&D with AI, quantum computing, and space development; please get in touch with Daiphys today!

Name*


Email*


Message*




* Indicates required field

Daiphys Technologies LLC - https://www.daiphys.com/

  • Last modified: 2024/02/27 16:06
  • by Daiphys