Home  >  Q&A  >  body text

linux - 用htop命令查看,swp交换空间的使用率高达100%表示什么,如何解决呢?

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

黄舟黄舟2743 days ago994

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-04-17 16:39:47

    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;

    reply
    0
  • Cancelreply