Raspberry Pi exchanger 41 modify the size of the partition SWAP

http://blog.lxx1.com/3289

 

SWAP is the virtual memory partition under LINUX, its role is after the physical memory is used up, the disk space (that is, SWAP partition) into the virtual memory to use it and swap files action Windows system is similar, but it was a continuous disk space, and is not visible to the user. If you feel that Raspberry Pi is not enough memory, you can modify the size of the swap partition. Here's how

First, modify the configuration file dphys-swapfile

sudo nano /etc/dphys-swapfile 

Second, set the size of the swap

The value CONF_SWAPSIZE changes to the size you want, such as 1024, additional information do not change.

Third, restart dphys-swapfile file and restart the service Raspberry Pi:

sudo/etc/init.d/dphys-swapfile restart
sudo reboot

The use of free -h View Size:

free-h

Guess you like

Origin www.cnblogs.com/kekeoutlook/p/11856057.html