Swap swap area is the virtual memory technology of Linux, in order to effectively improve the utilization of physical memory, will open a space in the hard disk
Use to stack infrequently used memory data. Sometimes virtual memory is full and some programs die (although not the system crashes). )
# # How to modify the Swap area # #
Enter a file that modifies the size of the swap space
> The
swap area on the sudo vi/etc/dphys-swapfile raspberry pie default size:
> conf_swapsize=100
change him to "twice times the physical memory "If the physical memory is 512M, then he is 1024M:
> conf_swapsize=1024 Restart the
Swap Zone Management Service process:
> Sudo/etc/init.d/dphys-swapfile Stop
> Sudo/etc/init.d/dphys-swapfile start
View Linux memory:
> Free-m
expected display results: the
output Should look like:
total used free shared buffers cached
Mem: 435 56 379 0 3
-/+ buffers/cache: 399
Swap: 1023 0 1023