• 请不要在回答技术问题时复制粘贴 AI 生成的内容
c742435
V2EX  ›  程序员

Linux 的换页程序 kswapd0 有点不科学啊

  •  
  •   c742435 · Jul 29, 2015 · 3705 views
    This topic created in 3974 days ago, the information mentioned may be changed or developed.

    阿里云,默认不带swap分区
    然后内存快占满的时候kswapd0进程就几乎把CPU占满了。明明没有swap你忙活啥呢
    然后所有服务几乎都不可用了。

    5 replies    2015-07-29 21:14:01 +08:00
    9hills
        1
    9hills  
       Jul 29, 2015   ❤️ 1
    swap确定关闭了么
    swapoff -a
    并写到启动脚本中
    echo1937
        2
    echo1937  
       Jul 29, 2015   ❤️ 1
    请建立一个swap分区呀。
    zealot0630
        3
    zealot0630  
       Jul 29, 2015   ❤️ 1
    kswapd在找映射到文件并且没有被修改的页,踢出去
    c742435
        4
    c742435  
    OP
       Jul 29, 2015
    @9hills 在没有挂载swap分区的情况下swap竟然不会自动禁用,这个设计也挺难理解的
    c742435
        5
    c742435  
    OP
       Jul 29, 2015
    @echo1937 这是解决办法,不过我抱怨的是设计问题

    @zealot0630 没明白,可否详述或者给个关键字
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2869 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 15:31 · PVG 23:31 · LAX 08:31 · JFK 11:31
    ♥ Do have faith in what you're doing.