Files

5.4 KiB
Raw Permalink Blame History

Two exclusive plus two shared TTS cores ·22 October2026

Michael explicitly requested two physical cores exclusively available to TTS relative to Strata, plus two physical cores shared by both workloads. Strata retains its four-core CPU range. Saved Linux logical CPUs on Ryzen5 5600:

Range Physical cores Logical CPUs
Strata only 0–1 0,1,6,7
Shared 2–3 2,3,8,9
TTS only 4–5 4,5,10,11

CPU quota12/RAM59GiB, Strata0.1.47 IQ3 dual-slot profile, GPU split/reserves, Qwen0.6B Q4/codec/Anna,2generation+2codec threads, CPU-Flash-Attention off, Nice10 and160ms codec blocks remain unchanged. No Hermes/VPN changes. This is process/thread affinity, not a host-wide exclusive CPU partition.

Persistent implementation

cpu_partition.py accepts the optional shared_cpus list only when it exactly matches the overlap of the Strata and TTS lists. Runtime topology validation still requires complete physical SMT pairs; sharing only opposite SMT siblings is rejected. Missing shared_cpus retains the previous strict-disjoint behavior. The existing validated encrypted settings backup carries the same file; actual shared-file settings restoration was tested.35focused tests passed.

Active image:athena-deck-standalone:8cf88a02e30444e8. Only the CPU policy module changed in the application; a code-only layer reused the existing runtime. No model/runtime rebuild or new package/service. Activation checked ordinary authenticated status twice for0active requests and preserved the exact prior CPU file/install manifest for automatic rollback. The original dual profile reloaded normally:HTTP200,46.282s including load. Both workload masks were observed under load. TTS ran on shared CPUs8/9(and occasionally2/3), while Strata stayed off4/5/10/11. Previous stopped maintenance container is removed after acceptance; previous image remains available.

Streaming results

The same synthetic German passage is sent to the normal PCM speech endpoint. The measurement client counts/discards PCM and inspects no conversational user content. Deck's normal synthetic-job output/history behavior is unchanged. Separate bounded synthetic Strata requests continue until TTS completes. llm_coverage measures overlap from each request's first content to its end; brief gaps remain between requests. No actual Conduit call or phone playback was triggered.

Condition Audio Total RTF First PCM Required additional startup buffer
Initial exclusive baseline,1024-token cap 17.76s 26.346s 1.483 0.563s 8.122s
Shared run1,1024-token cap 17.76s 21.975s 1.237 0.610s 3.765s
Shared run2,1024-token cap 17.76s 21.130s 1.190 0.569s 2.920s
Matched exclusive,512-token cap 17.76s 23.744s 1.337 0.767s 5.396s
Matched shared,512-token cap 17.76s 21.957s 1.236 0.537s 3.779s

The initial before/after has a restart between conditions and varying LLM output counts(566or1024); do not interpret its full difference as a causal speedup. The additional matched pair uses the same loaded Strata and Qwen processes, identical512-token limits(all five LLM requests reached512in each arm), and changes only the live affinity of the owned Qwen threads. It narrows TTS to its exclusive CPUs temporarily, then restores the requested shared CPU range in a finally block. The saved production policy is never narrowed. LLM coverage was91.0% versus90.0%; sampling is100ms and is not exact CPU-time attribution.

That matched pair reduces generation wall time by7.5% and calculated startup buffer by1.62s. Longest packet gap is0.444s exclusive versus0.505s shared, so not every jitter measure improves. Single ordered pair, no randomization or quality scoring; no universal throughput or phone-playback guarantee. The new allocation helps modestly but remains slower than realtime.

Reproduction, native restore and rollback

bench.py records only technical counts/timings/masks, consumes the existing API credential as stdin JSON, and stores results beside itself. Never pass/store the credential in arguments, Git or logs. It refuses to start while normal API requests are active. Current reproduction targets Athena's explicit profile IDs, loopback ports and existing voice; those are qualification conditions, not generic installation defaults. Synthetic output is bounded per request and the load loop stops once the speech request ends. The committed script uses the512-token matched limit; initial runs used1024.

For today's container it discovers the managed Deck PID with Docker. For a native Debian/systemd Deck, supply --deck-pid MAIN_PID from that service; worker discovery and affinity observation then require only Linux /proc. Restore the updated Deck source including the CPU policy module and the saved cpu-partition.json, validate the new host's topology, preserve file owner/ mode0600, and permit all configured CPUs in the parent service(1200%quota on this host). No worker requires Docker. Full host/native restore qualification remains the existing open installation task.

Rollback at idle:restore qwen_tts:[4,5,10,11], remove shared_cpus, preserve the other settings, and reload the workers. Restore that old file before an older image that rejects the shared field. No model, profile or voice deletion. Scoped maintenance directory:/opt/athena-deck-dev/tts-shared-cpu-20261022. Seeconfiguration and native installation.