Skip to content

boot: density, what one idle workspace costs its host - #278

Merged
aledbf merged 1 commit into
mainfrom
density
Nov 19, 2026
Merged

aledbf merged 1 commit into
mainfrom
density

Conversation

@aledbf

@aledbf aledbf commented Nov 19, 2026

Copy link
Copy Markdown
Member

boot:density reads the host's /proc/meminfo and /proc/slabinfo before and after N machines boot, each logged into once and then left idle. It gives one workspace's share of each, each QEMU's Pss, and the slab caches that grew most. #259 counted only QEMU's own resident set.

8 machines (2 vCPUs, 2 GiB), idle 30 s, MiB per workspace:

nested c8id.4xlarge (44546329726) metal c8i.metal-48xl (44546336558)
host memory used 127.6 120.5
anonymous 171.0 171.3
of it, huge pages 164.5 164.8
page tables 0.53 0.53
SecPageTables (KVM) 0.05 0.08
kernel stacks 0.18 0.14
slab 0.64 1.46
QEMU Pss (anon / file) 176 (171 / 5.2) 176 (171 / 5.2)

🤖 Generated with Claude Code

allocates per VM: KVM's page tables (SecPageTables read 0), vhost's
threads, the slab. boot:density reads the host's meminfo and slabinfo
before and after N machines booted, logged into and left idle, and
gives one workspace's share of each, each QEMU's Pss, and the slab
caches that grew most.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aledbf
aledbf merged commit 89a3c30 into main Nov 19, 2026
1 check passed
@aledbf
aledbf deleted the density branch November 19, 2026 14:57
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