High VM Memory Usage On Newer PVE Versions?

1. /etc/ksmtuned.conf is the same on both hosts -- everything is commented out. No changes from default.
2. KSM kicked in after RAM was 80% full and slowly started lowering the amount of used RAM. HOWEVER, it seems that once the RAM usage dropped to 80%, KSM completely stopped. Also, SWAP usage remains high. This is different behavior that with 7.4. After 2 hours, I see the below. KSM has stopped trying to lower the memory below 80%.
AFAIK, it's expected, but I haven't KSM experience with 7.x because I disabled KSM during my first PVE deployments.
Indeed, 80% is the default due to the KSM_THRES_COEF=20 in the original/etc/ksmtuned.conf. Since ballooning is not configurable (yet?), one might change this /etc/ksmtuned.conf to 25 or 30 to run KSM before ballooning.
 
  • Like
Reactions: Johannes S