Skip to content

k3s "Slow SQL" & 100% CPU spike in small cluster of Proxmox VMs #11656

Answered by Javex
Javex asked this question in Q&A
Discussion options

You must be logged in to vote

I figured it out after a long time of debugging: Turns out htop hides kernel threads so I didn't see kswapd0, which (apparently) takes over 100% CPU if you don't have swap (my understanding, this is the recommendation for Kubernetes). This seems to be because it frantically tries to compress and save memory rather than OOM killing things. Curiously, neither the qemu agent reports memory pressure (sitting at ~60%) nor htop which showed more like 80%. Nothing indicated that it was hitting its limit. By enabling htop to show kernel threads, I saw the process jump to the top and once I increased RAM from 2GB to 3GB for the control plane node, the issue went away.

I assume the additional compo…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Javex
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Javex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants