ON More Space at The swap the configure System
the From:
http://zctya.blog.163.com/blog/static/120917820092444224337/
in the use of free -m command to view the system swap as much
free -m
Total Used as Free Shared buffers cached
Mem: 2011 76 0 544 802 1935
- / + buffers / Cache: 589 1422
swap: 953 0 953
we know, swap for the 953M.
If you want to increase the space 100M, as follows:
Create a folder swap, to create directly Case / home / fzj / lower,
the sudo mkdir swap
CD swap
the sudo dd IF = / dev / ZERO of the swapfile = 1024 BS = COUNT = 100 000
in the above command count which represents the swap file size (100,000 block, each block is 1024B).
Converting the generated files into the swap file
sudo mkswap swapfile
Tip follows:
Setting up swapspace Version 1, size = 102 395 kB
NO label, UUID = 09fde987-5567-498a-a60b-477e302a988b
us to activate the swap file is now
sudo swapon swapfile
see the results of free -m again.
Shared buffers cached Used Free Total
Mem: 2011 73 is 0 1938 544 803
- / + buffers / Cache: 590 is 1421
Swap: 1051 0 1051
extended successful swap space.
If you need to uninstall the swap file, you can enter the swap file directory created. Execute the following commands.
sudo swapoff swapfile
If you need to swap files automatically loaded each time the boot time, it can be written to / etc / fstab file.
/ home / fzj / swap / swapfile swap swap defaults 0 0
Configure more swap space on the system
Guess you like
Origin blog.csdn.net/f_zongjian/article/details/5748408
Recommended
Ranking