I have a number of servers running OpenVZ kernel 3.10.0-1160.21.1.vz7.174.13
The performance can become very sporadic at times, and I wonder if kswapd is part of, if not, the whole reason for this, as from what I understand, people suggest that kswapd should generally only run if there is a shortage of physical memory, and that all this swapping is quite heavy on resources (I mean, the two kswapd processes shown below are using ~200% CPU collectively, without even considering I/O).
So my question is: would adding more physical RAM be beneficial? They currently have 128 GB but can scale up to 256 GB if needed.
This screenshot gives a better idea of what I'm talking about: Here is RAM usage:
The performance can become very sporadic at times, and I wonder if kswapd is part of, if not, the whole reason for this, as from what I understand, people suggest that kswapd should generally only run if there is a shortage of physical memory, and that all this swapping is quite heavy on resources (I mean, the two kswapd processes shown below are using ~200% CPU collectively, without even considering I/O).
So my question is: would adding more physical RAM be beneficial? They currently have 128 GB but can scale up to 256 GB if needed.
This screenshot gives a better idea of what I'm talking about: Here is RAM usage: