A few days ago I received an email alert from Grafana on one of my servers informing me of a drastic increase in RAM and CPU of my server which caused the server to be very slow and even not working. After I search by running the top command, I found the kswapd0 process running and consuming CPU usage up to 100%. After I searched for the cause, I found an article on bugzilla that this is a bug in the Linux kernel. After I find out how to overcome the 100% linux CPU increase due to the kswapd0 process, there are 2 ways how to fix kswapd0 high cpu consume :
- First, Clear pageCache Linux
For this first method, we can clear the pageCache of our linux server. Run this command:
sync; echo 1 > /proc/sys/vm/drop_caches
- Second, Reboot Server Linux
You can do this second method if the first method doesn’t work. By reboot
the server, it will refresh all existing resource usage.
Alright, that’s the short story how to fix kswapd0 high cpu consume. Hopefully this information can be useful for all readers, Thank you š
Read AlsoĀ :
0 Comments