Kswapd0 process is using an incredibly high amount of CPU usage

Discussion in 'Apache' started by lapidus, Feb 8, 2023.

  1. #1
    Because of kswapd0 command which appear in my Putty and eating CPU and RAM, my websites are going down for couple of minutes.

    Did somebody have an idea how to stop that process?
    Is there some script or command which i can execute in Putty to that finally can stop?

    Thanks
     
    lapidus, Feb 8, 2023 IP
  2. dascos

    dascos Member

    Messages:
    11
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    33
    #2
    kswapd is the daemon for managing the Swap area of your pc/server, so I suggest not to kill it nor to shutdown!
    You can use this to lower the impact of such daemon so it "swap" into the swap area only when 100% of ram is used
    
    echo vm.swappiness=0 | sudo tee -a /etc/sysctl.conf
    
    Code (markup):
     
    dascos, Mar 29, 2023 IP