roadmap NOT-STARTED

778. Capability tables sized per process

Raised 2026-10-04 (UTC) by milestone 753 (trace the progenitor's login block peak), alongside calef's choice of a 64-slot table. A proposal, not a ruling. Title and slug are drafts, and so is every name below; needs_person is yes because the answer touches the system call surface.

The question

Every thread's capability table is the same fixed size, set by one constant. The progenitor needs 31 slots on a busy boot and most processes need a handful. Should a process's table instead be sized for that process, and grow when it needs to?

What this tree does today

A flat array of CAPABILITY_TABLE_SLOTS entries inside the thread's TCB page, 32 bytes a slot, indexed directly by the slot number a system call names. crates/capability_table's own doc calls it "an fd table with a type tag on each entry" and refuses seL4's tree "because it costs a great deal of explanation". Each raise so far (16, 17, 24, 32, and 64 in milestone 754 (the capability table grows to 64 slots)) was one number, paid in every thread's TCB.

What seL4 does

Read from the seL4 Reference Manual, version 16.0.0, section 3 (fetched 2026-10-04 UTC).

What it would cost here (§10)

§10 (process model: capability-based, microkernel) keeps the system call surface narrow and explicit. A per-process table adds to it, at minimum:

Revocation's sweeps visit every thread's table today; with nested tables they would walk graphs. A single resizable table per thread, with no nesting, would avoid the path and the walk. It would still need the object type and the thread method.

How 64 slots buys time

The progenitor's measured peak went from 21 (2026-09-02) to 31 (2026-10-03): about ten slots in a month. Milestone 754 leaves 33 slots of headroom. At that rate, extrapolated rather than measured, that is around three months before the question returns. That is enough to measure what a growable table costs on the fastpath before choosing one, instead of choosing at the wall.

What it would do

Measure first: what the fastpath and a lookup cost for a single resizable table and for a two-level table, on all three ISAs. Then put the options, with those numbers, to an architect.

What it is not

Not a change to how many slots any table has today. That is milestone 754 (the capability table grows to 64 slots).

Index row

Every thread's capability table is one fixed size, paid in each TCB, and the size has been raised by one constant five times. The block asks whether a table should be sized per process and grow on demand, compares the tree's flat array with seL4's design, and leaves the answer open because it touches the system call surface.