How do you increase swap?

How do you increase swap?
Answer
3 Answers
  • create either a new partition of type 82h or a new 8 GB file using dd if=/dev/zero of=/swapfile bs=1M count=8192.
  • initialize it using mkswap /swapfile or mkswap /dev/sdXX.
  • use swapon /swapfile or swapon /dev/sdXX respectively to enable your new swap space on-the-fly.
 

Tìm kiếm

Back
Top