As far as I know, kswapd0
overuses cpu resources, which means that virtual memory replacement occurs frequently. There are two common solutions:
- Increase the memory capacity and set the following system parameters:
vm.swappiness=0
Setting this parameter will require the Linux system to use physical memory as much as possible, and at the same time cancel the swap partition to improve system performance
- In the case of severe system memory shortage, the linux virtual memory management mechanism has to use disk resources, which will cause frequent page replacement. If the memory has a certain capacity, you can consider increasing the
vm.swappiness
parameter to improve CPU resources as much as possible Utilization rate, while using more efficient processors.You can consider allocating swap resources for your system. Try to relieve memory strain.Increasing swap storage is also a general way to supplement physical memory
If you cannot solve this problem temporarily, please pay attention to whether the occupancy rate is high for a long time. If it only appears temporarily and the system load is within the normal range, you can consider optimization
You can also consider submitting a report at https://phabricator.vyos.net, providing detailed information so that relevant personnel in the vyos community can confirm whether it is in a normal situation. Usually, in this situation, your system resources can be given priority Already severely insufficient