Skip to content

feat(ksm): typed config — BoxConfig.ksm / InstanceSpec.ksm / pool start --ksm#25

Merged
ZhiXiao-Lin merged 1 commit into
mainfrom
feat/ksm-config
Jun 12, 2026
Merged

feat(ksm): typed config — BoxConfig.ksm / InstanceSpec.ksm / pool start --ksm#25
ZhiXiao-Lin merged 1 commit into
mainfrom
feat/ksm-config

Conversation

@ZhiXiao-Lin

Copy link
Copy Markdown
Contributor

KSM page-merging becomes a first-class config field instead of an inherited env: BoxConfig.ksmInstanceSpec.ksm → the controller sets A3S_BOX_KSM=1 on the shim (which does the prctl opt-in). pool start --ksm enables it for pooled same-image VMs — the highest-value case (3.2× dedup measured in #16). The env still works as an override.

KVM-verified: with pool start --ksm, the shim's env carries A3S_BOX_KSM=1 and its memory regions show the mg (mergeable) VmFlag.

…rt --ksm

KSM page-merging is now a first-class config field instead of an inherited env:
BoxConfig.ksm → InstanceSpec.ksm → the controller sets A3S_BOX_KSM=1 on the shim
(which does the prctl opt-in). `pool start --ksm` enables it for pooled
same-image VMs — the highest-value case (measured 3.2× dedup). The A3S_BOX_KSM
env still works as an override.
@ZhiXiao-Lin ZhiXiao-Lin merged commit eb30c30 into main Jun 12, 2026
7 checks passed
@ZhiXiao-Lin ZhiXiao-Lin deleted the feat/ksm-config branch June 12, 2026 06:44
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