msb doctor checks host capabilities. msb inspect shows the settings that a sandbox actually uses.
Quick guide
Storage layout: layered or flat
The default layered root shares OCI layers between sandboxes. A flat root turns the image into one ext4 disk and clones it for each sandbox. This can improve creation time and filesystem-heavy workloads on hosts with copy-on-write cloning.clone=auto uses a native copy-on-write clone when available and falls back to a sparse copy. Use the layered root when image layer sharing or maximum portability matters more.
See OCI images for image behavior and Bootstrap for flat root details.
CPU placement
By default, sandbox vCPU threads follow the host scheduler. On Linux and Windows, microsandbox can place those threads for you.Choose a policy
Start with
auto on a dedicated host. Use spread for CPU-heavy throughput work. Use compact when cache locality or packing more sandboxes onto a host matters most.
Keep CPU and memory on one NUMA node
Large hosts can have more than one NUMA node. A placement profile can keep a sandbox’s CPU and memory on the same node. First, define a named profile in the global config:prefer_single uses one node when enough CPU and memory are available. Otherwise, it falls back to normal placement. Use strict_single when the sandbox should fail instead of falling back.
What placement guarantees
- microsandbox coordinates only sandboxes that share the same
MSB_HOME. - Placement considers the sandbox’s maximum CPU count, not only the CPUs online at boot.
- When exclusive CPU capacity runs out, normal policies may share logical CPUs.
- Placement does not isolate unrelated host processes or reserve dedicated cores.
- On macOS, managed policies fall back to
inheritbecause hard CPU affinity is not available through a public API. - If placement cannot be applied, normal policies fall back to
inherit. Astrict_singleprofile fails instead.
msb inspect worker to see the resolved policy and placement result.
Transparent huge pages
Transparent huge pages, or THP, control how the guest handles large memory mappings.
THP changes take effect the next time the sandbox boots. Keep
madvise unless real workload tests show a clear improvement.
Buffered block writeback
On Linux, block writeback limits how much buffered disk data active sandboxes can hold in host memory.autochooses safe limits from the host. This is the recommended setting.fixeduses limits that you provide.offdisables the limits for new sandboxes.
Host interrupt acceleration
On Linux x86 hosts, AMD AVIC and Intel APICv can make virtual interrupt delivery faster. These are host KVM settings, not sandbox settings. Check their status withmsb doctor. Read Linux troubleshooting before changing a KVM module because the change affects every VM on the host.