Repository navigation
Closed
1 / 11 of 1 issue completedLabels
feature:plannedSplit into tasks. Never picked up itself.
Description
Request: none
Problem
The RAM budget counts one fixed size per device per platform. Once a request can choose slim or full (#172), one worker holds both kinds side by side. One number is then wrong for one of them. Sized for slim, the budget overcommits the host when full devices are leased. Sized for full, slim devices free real memory but no extra slots.
Today the operator lowers the number by hand when slim is on. That only works when every device on the worker is slim.
Depends on #172.
Who it is for
An operator sizing a host that serves both slim and full devices.
Outcome
- With the
resourcecapacity strategy, the operator can set a separate per-device size for slim devices, per platform. Both keys ship now; the Android one has no effect until Android slim lands (Opt-in slim mode for Android emulators #159). - The budget keeps counting every device Simlock manages, running or shut down, as it does today.
- Once a device has booted, it counts by the mode it actually has. A
slimrequest that was granted a full device counts as full. - Until a device has booted, it counts at its platform's full size, whatever mode it was asked for. A slim device uses full RAM until its slim pass runs. This covers a new device and a shut-down device being booted again: neither starts unless the full size fits.
- With no slim size set, a slim device counts the same as a full one. Nothing changes for an existing config.
- When a device planned as slim ends up full because the slim pass failed, it counts as full from then on. The lease stays granted and no device is stopped.
- If use ends up above the limit (for example after the operator raises a size, or after a recovery reboot brings a slim device back full), nothing is stopped. Status shows the budget as over its limit until a device is deleted. While it is, no new device is created and no shut-down slim device is booted. Releasing a lease does not lower it.
- Status reports the RAM budget: its limit, what is in use, and whether it is over.
- The device and running limits still apply. A slim size yields more devices only where RAM, not a slot limit, is what stops full ones; the docs say to raise the limits together with it.
Non-goals
- The
fixedstrategy. It keeps counting one slot per device, whatever the mode. - Counting only running devices against the budget.
- Deleting idle devices to make room when the RAM budget refuses. Today only the device limit evicts; that stays.
- Checking a recovery reboot of a leased device against the budget. Recovery always runs.
- A slim size that Simlock ships or works out by itself.
- Measuring the memory a device really uses.
- How a gateway ranks workers. It uses the capacity each worker reports.
Completion conditions
- With a slim size set, slot limits that allow it, and a budget that fits at least two full devices, a worker grants more slim devices than full ones within the same budget, and refuses the device that would cross it in either mode.
- With slim and full devices leased together, the amount counted against the budget is the sum of each device's own size.
- Every new device is counted at the full size until it has booted, whatever its mode. A
--mode slimrequest on a runtime that cannot be slimmed stays at the full size after it boots. - Booting a shut-down slim device waits when the full size does not fit. Booting a shut-down full device is not affected.
- A device planned as slim whose slim pass fails is counted at the full size afterwards, and its lease stays granted.
- When use is above the limit,
simlock statusshows the budget over its limit, and no device is created. After a device is deleted and use is back under the limit, the budget is no longer over. - With no slim size set, capacity decisions are the same as on
main. - With the
fixedstrategy, capacity decisions are the same as onmainwhatever the modes. simlock statusshows the RAM budget's limit and use, and the use equals the sizes of the devices listed, each by its reported mode. Underfixedit shows no RAM budget.- Through a gateway,
simlock statusshows the sum over workers that report a RAM budget. docs/CONFIGURATION.mddocuments both keys, the fallback to the full size, and how to size them together with the limits. The overcommit entry leavesdocs/internal/KNOWN-PITFALLS.md.
Open questions
None.
Decisions
None. Every change is additive and stays inside the capacity module, its config block, and one optional status block.
Tasks
- Count each device against the RAM budget by its mode, and report the budget in status #188 — Count each device against the RAM budget by its mode, and report the budget in status. Depends on A lease request chooses slim or full; ios.defaultMode sets the default #178.
Written by an agent.
Sub-issues
Collapse Sub-issuesSub-issues
Loading 1 sub-issues
Metadata
Metadata
Assignees
Labels
feature:plannedSplit into tasks. Never picked up itself.
Activity
V3RON commentedon Oct 1, 2026
Spec updated: Outcome, Non-goals, and Completion conditions amended; Open questions now empty.
Written by an agent.
V3RON commentedon Oct 1, 2026
Spec updated: Outcome, Non-goals, and Completion conditions amended (the budget counts managed devices and clears on delete; status reports it); Decisions and Tasks added; one task, #188; label moved to
feature:planned.Written by an agent.
feat(contract,core,ios,cli,http,gateway): a lease request chooses sli…
V3RON commentedon Oct 2, 2026
Spec updated: Outcome, Non-goals and Completion conditions now count a device at the full size until it has booted, and check boots of shut-down devices.
Written by an agent.
feat(core,contract,daemon,gateway,cli): count each device against the…
github-actions commentedon Oct 2, 2026
All 1 sub-issues are closed. If the completion conditions hold on
main, close this feature and flip its ADRs to Accepted.V3RON commentedon Oct 2, 2026
All sub-issues are done: #188 (#223).