linux - 用htop命令查看,swp交换空间的使用率高达100%表示什么,如何解决呢?
黄舟
黄舟 2017-04-17 16:37:47
0
1
996

如图所示,Swp满格的,这表示什么意思?需要如何处理呢?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
巴扎黑

swap is memory swap space, which is used to swap some infrequently used pages to disk to free up physical memory when memory is insufficient;

What else can you do? The physical memory of your machine is too small. What can 512M do these days?
Suggestions:
1, increase the physical memory;
2, look at the mem, which is only 232M, and the utilization rate is not high, right? Then adjust the value of the /proc/sys/vm/swappiness parameter to 10 , so that the physical memory utilization can reach 90% before using swap; by default under Linux, swap will be used when the physical memory usage reaches 60%;
The adjustment method is echo '10' > /proc/sys/vm/swappiness;
3. Expand the swap space; that is, add another swap file or partition in swap format;

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!