Skip to content

Disable KSM merging for build guests and isolate IO on dedicated threads - #66

Merged
cloudcell merged 1 commit into
masterfrom
sync-20261017-0554Z
Oct 17, 2026
Merged

cloudcell merged 1 commit into
masterfrom
sync-20261017-0554Z

Conversation

@cloudcell

Copy link
Copy Markdown
Owner

Host KSM merges the guest's identical pages (zeroed buffers, repeated
data) and write-protects them; the next guest write then stalls on an
unmerge fault serialized behind ksmd locks. Under install load this
produced repeated 20-50s soft lockups on every vcpu and stretched the
unattended install to ~90 minutes. Verified on the built template: with
nosharepages set, the churn test went from 4-5 stalls/60s and ~6MB/s
writes to zero stalls and >1GB/s.

Host KSM merges the guest's identical pages (zeroed buffers, repeated
data) and write-protects them; the next guest write then stalls on an
unmerge fault serialized behind ksmd locks. Under install load this
produced repeated 20-50s soft lockups on every vcpu and stretched the
unattended install to ~90 minutes. Verified on the built template: with
nosharepages set, the churn test went from 4-5 stalls/60s and ~6MB/s
writes to zero stalls and >1GB/s.
@cloudcell
cloudcell merged commit dec2697 into master Oct 17, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant