8.5 KiB
Strata resource tuning · 20 October 2026
Decision and final live state
Deck now has a 59 GiB memory and memory+swap cap, persisted in the host
installation manifest. Production remains 8 CPU-equivalent quota, 1024 MiB
reserve per GPU, and the previous flash-next-strata-iq3 single-slot profile.
Loop guard remains stop. Deck is healthy, TTS/STT are loaded. No Deck/container
restart occurred; isolated test containers were removed. The final endpoint
snapshot includes one active request; it is not a claim that production stayed idle.
512 MiB per card cannot load this configuration: the MTP draft head needs 178 MiB but only70 MiB remains. 768/768 loads, but the RTX5080 reaches only 26 MiB free during a long case. Neither this risk nor extra CPU quota is justified by the small measured fresh-prompt differences. RAM59 is the highest budget tested here with host headroom, not a proven mathematical maximum or throughput improvement.
Conditions and method
- Strata0.1.45, source commit
477ac13cbe8e582c20484871ce459d20d82df09d, existing IQ3_XXS weights, RTX3060/RTX5080 split16. Same existing Deck imageathena-deck-standalone:22f6b89a6d119cb3; no new image or model downloads. - Two slots, context262144 each, int8 KV, resident KV32768, serial batch-MTP, batch-groups1, full draft vocabulary. No smaller context/vocabulary workaround.
- Same saved synthetic64K fixtures, temperature0, seed42, top_p1, top_k0, reasoning none. Short solo/pair and cached pair output512 tokens per request; fresh64K pair outputs256 each. All successful cases reached their output counts.
- Each arm is a fresh isolated container with automatic expert allocation. Production CPU TTS/STT remain warm outside the test cgroup. This differs from the earlier production dual test with24.46 GiB resident experts; do not attribute cross-test speed differences solely to RAM or GPU reserve.
- One ordered run per arm, no forced physical-cache flush, no output-quality or output-identity scoring. Adaptive MTP/cache/order effects limit causal conclusions. Fresh means uncached prompt KV, not cold SSD/file cache. Only64K prompts tested, not128K or full262K workloads.
- Docker --cpus changes CPU quota. Ryzen5600 has6 physical cores/12 SMT threads; native pool-workers defaults to physical cores. No worker-pool/affinity changes tested. A12 quota is not a test of12 physical cores.
Results
Times are wall seconds for the whole request or concurrent pair.
| Arm | CPU quota | RAM GiB | Reserve3060/5080 MiB | Experts GiB | Solo | Short pair | Fresh64K pair | Cached pair |
|---|---|---|---|---|---|---|---|---|
| cpu6 | 6 | 58 | 1024/1024 | 30.45 | 8.155 | 12.824 | — | — |
| cpu8 | 8 | 58 | 1024/1024 | 30.45 | 8.018 | 12.636 | — | — |
| cpu12 | 12 | 58 | 1024/1024 | 30.45 | 8.023 | 13.050 | — | — |
| reference | 8 | 58 | 1024/1024 | 30.45 | 8.035 | 12.932 | 94.311 | 16.727 |
| reserve512 | 8 | 58 | 512/512 | — | Load failure | — | — | — |
| reserve768 | 8 | 58 | 768/768 | 30.04 | 8.024 | 12.748 | 92.551 | 15.743 |
| ram59 | 8 | 59 | 768/768 | 30.04 | 8.017 | 12.630 | 93.264 | 14.845 |
| cpu12-long | 12 | 58 | 1024/1024 | 30.45 | 8.127 | 12.860 | 94.204 | 14.911 |
| asym768-1024 | 8 | 58 | 768/1024 | 30.28 | 8.398 | 12.477 | 93.068 | 15.088 |
Asymmetric reserve leaves minimum370/282 MiB free on3060/5080, versus370/26 for768/768. The1.3% fresh-prompt improvement of the asymmetric arm is not a replicated gain; leave production GPU settings unchanged. GPU-free instrumentation was added after the initial CPU/reference runs and is absent from those records. Fresh reference physical engine reads0.19 GiB vs0.09 for768/asymmetric; storage is no longer the dominant bottleneck under these warm-cache test conditions.
RAM59 vs58 at equal768/768 reserves did not improve fresh-prompt time or expert allocation. It leaves about3.7 GiB outside Deck's maximum on62.7 GiB usable RAM; this is headroom, not a guaranteed reservation. TTS/STT are already inside the production Deck budget, so do not subtract them twice. Host MemAvailable stayed at least9.00 GiB during ram59; successful long arms reached about8.64 GiB minimum. There were no OOM kills or safety aborts. Host swap had a small background use (roughly0.5–1 MiB); test containers had no extra swap allowance.
Safety and restoration
The host launcher checks authenticated normal status twice for zero active requests, then gracefully SIGTERMs only the uniquely identified Deck Strata HTTP worker process group (exact server.py and worker.json arguments). No generic pkill, force kill or container restart. The owning app reaps its child via normal status. This mechanism is specific to today's deployment, not an administrator API bypass or a portable official unload command. Recheck these assumptions before reuse.
Each test container is --rm, network none, read-only root, UID65534, all capabilities dropped, no-new-privileges. Model/state binds are read-only; only its experiment output is writable. The test server uses a synthetic local token; the real API key is passed to the host launcher through stdin and must never be stored in Git/logs. Host monitoring stops only the owned test container if MemAvailable is below1.5 GiB three consecutive samples, swap grows128 MiB, a new production request starts, or the1000-second deadline expires. Finally removes owned test containers and restores the previous profile through the normal one-token API request when idle. Restoration returned HTTP200. Container StartedAt was unchanged.
Reproduce, maintain and restore
Archived Python scripts use only the standard library, Linux proc/cgroup v2, Docker and nvidia-smi. The benchmark additionally needs the existing pinned Strata runtime and weights; it does not install them. Launch scripts are host-specific operational recipes, not generic copy-and-run tooling. Review paths, image, process ownership, request status and budgets first; never run during active work.
On today's host the stage is /opt/athena-deck-dev/strata-tune-20261020 and outputs
are /data/experiments/strata-tune-20261020 and
/data/experiments/strata-tune-cpu12long-20261020. Stage contains benchmark.py,
sanitized base-template.json (real api_key removed) and fixture-65536-0/1.json.
Recover fixtures by decompressing the two .json.gz files from the sibling
strata-dual-ram experiment.
Their SHA256 values are:
- fixture0:
1fad19b62481ed46c30fcd68fc8e8d3ac8a91c5aa982d9a9267b1bff5f55b09c - fixture1:
5220d85c7e12926323e603bf08269155e808d61ca59c239652c282a93bcc07fa
Use the earlier pinned runtime/model restore recipe; do not copy private configs
into this repository. launch.py does the CPU scan/reference/reserve/RAM arms;
launch-cpu12long.py verifies CPU12 and the asymmetric reserve. Both read a JSON
object containing key from stdin; obtain it through the configured secret store,
not a shell argument, source file or terminal echo. Do not rerun into existing
output directories: deliberately create a reviewed fresh stage/output/name set.
Persistent production manifest is
/opt/athena-deck-dev/runtime/installation.json:
memory_limit: "59g", memory_swap_limit: "59g", cpu_limit: 8.
Applied live via Docker update and the existing installer manifest writer; the
installer already consumes these fields at recreation. Rollback to58g requires
checking current usage fits the lower cap, updating both live limits and both
manifest fields. CPU/GPU/profile rollback is unnecessary: they were restored.
For a future native Debian deployment: install the documented compiler/CUDA/runtime and pinned weights, Python3, NVIDIA driver/nvidia-smi, and a cgroup-v2-capable systemd. Preserve encrypted Deck state, profiles, voices and API identities. Translate budgets to MemoryMax59GiB, MemorySwapMax0 and CPUQuota800%, with an explicit service user and state/runtime paths. The archived benchmark assumes container cgroup namespace paths; adapt them to the actual native service cgroup before measurement. Docker host launchers are optional current-deployment tooling, not native restore prerequisites. No new application dependency or feature is introduced. Fresh-host native end-to-end restoration remains unqualified; this experiment does not establish it.
Evidence
phase1.json / phase2.json contain sanitized cases and allocation metadata. final-production.json records live limits, profile and GPU reserves; final-endpoint.json records health-related endpoint state and loaded modalities. No user chats, generated answer text, private audio or real credentials are archived.