← Back to team overview

kernel-packages team mailing list archive

[Bug 721896] Re: kswapd0 100% cpu usage

 

Solution checked in Ubuntu 14.04.1

Use vm.swappiness & vm.vfs_cache_pressure to the minimum possible
Run the below command in Terminal
sudo gedit /etc/sysctl.conf

Add the below line at the end of the file. Select File > Save. Select File > Quit. Restart computer
vm.swappiness=1
vm.vfs_cache_pressure=1

Note:
This can be a workaround, if top command shows kswapd0 taking 99% or 100% cpu, while heavy memory activity
Heavy memory activity may be playing Dota2, copying large files, browsing faulty websites, etc...
Suggested swap partition size in Ubuntu 14.04 64bit with heavy memory activity
Atleast double the size of RAM or 20GB whichever is bigger
Use bigger swap partition than the current, if the above issue still persists
Example swap entry in /etc/fstab to enable swap manually in /dev/sda7
/dev/sda7   none   swap   sw   0   0

https://sites.google.com/site/unityindiversity99/

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/721896

Title:
  kswapd0 100% cpu usage

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  After the running the latest ubuntu for at least 2 weeks, I've noticed that kswapd0 started using 100% CPU on one of my cores.
  However, I have enough of RAM and not using swap (Swap: 11876344k total,    62336k used).

  The only thing I can do to remove the problem is reboot the system.
  I'm using Ubuntu 10.04.1 LTS server version without any kernel modifications.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/721896/+subscriptions