Skip to content

Commit d3b4edf

Browse files
NathanFlurryclaude
andcommitted
perf(sidecar): net.poll clamp 3ms->1ms — non-TCB mitigation for multi-guest X-latency
Shorter round-robin quanta so a polling guest holds the single per-VM sync-RPC service thread for less time, reducing starvation of sibling guests (X server + WM + app) under contention. The M8.0 note that 1ms regressed the xinitthreads-probe predates the libxcb timed-cond fix; the probe now passes cleanly at 1ms (verified). Partial non-TCB mitigation only — the clean fix (release the per-VM lock during net.poll's pure wait) alters the security-critical serialization lock and is reserved for the human TCB sign-off gate (WASM-THREADS-SPEC §10). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 6b87b68 commit d3b4edf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/sidecar/src/execution.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19438,7 +19438,7 @@ where
1943819438
// serviced, so a chatty client (e.g. an Xt app's main loop polling its X connection) would starve the
1943919439
// window manager and other clients sharing the VM. A few ms keeps each guest's poll responsive while
1944019440
// letting the service thread round-robin quickly across all guests. Shutdown latency stays bounded.
19441-
const JAVASCRIPT_NET_POLL_MAX_WAIT: Duration = Duration::from_millis(3);
19441+
const JAVASCRIPT_NET_POLL_MAX_WAIT: Duration = Duration::from_millis(1);
1944219442
const EXITED_PROCESS_SNAPSHOT_RETENTION: Duration = Duration::from_secs(2);
1944319443

1944419444
fn resolve_http2_file_response_guest_path(process: &ActiveProcess, path: &str) -> String {

0 commit comments

Comments
 (0)