Kswapd0 process is using an incredibly high amount of CPU usage
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This process manages swapping, and if it is active it means that you don't have enough memory. You have either buy more RAM or tune your processes to use less of it. Decreasing vm.swappiness (temporary - using sysctl, permanently - in /etc/sysctl.conf) may have some effect too, but it is not magic.
This process manages swapping, and if it is active it means that you don't have enough memory. You have either buy more RAM or tune your processes to use less of it. Decreasing vm.swappiness (temporary - using sysctl, permanently - in /etc/sysctl.conf) may have some effect too, but it is not magic.
Yes,i understand that i not have memory because of that process .But that is not due big traffic,that is i think malware which is injected in to my server for example crypto miners etc. So,the problem is how to find that malware and remove he.
Yes,i know that i not have memory but that is not the case because of big traffic. I think this is a malware which is injected maybe for crypto mining or something else.
So,now i need to find solution how to remove that malware.
Unexpected high CPU usage, yes, could be a sign of nefarious activity, high network traffic - also yes, high disk activity - maybe, but high memory usage - unlikely. It is, of course, easy and satisfying to blame all problems on unknown malware, but, even if it is the cause, first you'll have to make sure that all legitimate processes are properly configured and operate within configured parameters, and then you'll either spot a configuration issue or something unknown.
kswapd itself is not a malware. If your host is infected you need to run a scanner to check it.
From the other hand probably kswapd is busy because your host is low on memory. Stopping this process may kill your system completely.
Right you can not kill the process. However it seems that the mgkru function introduced in kernel 6.1 can solve the issue (I received an answer in this way oin kernel bugzilla thread : https://bugzilla.kernel.org/show_bug.cgi?id=110501#c39).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.