[GH-ISSUE #4066] [GUI] Windows desktop stutter with 3-second NVIDIA telemetry polling, even with no model loaded #1764

Closed
opened 2026-11-04 01:53:50 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @fawninmyheart on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4066

Area

[GUI] (the desktop app)

Desktop app, Terminal or source?

Official Windows CUDA 13 desktop app, installed in a separate directory. Local diagnostic modifications are disclosed below.

What happened

With the desktop app open and no model loaded / no inference requests, typing, Backspace, and switching tabs in other applications (Codex and Microsoft Edge) intermittently felt delayed, sometimes roughly half a second. This is a user-perceived estimate, not an instrumented input-latency measurement.

Keeping the Strata desktop and host running, but bypassing only the periodic readGpuTelemetry() call, noticeably improved typing and browser-tab switching on this machine. CPU/RAM sampling continued. Unloading the model alone had not noticeably helped.

Expected: leaving an unloaded desktop app open should not noticeably interfere with input and other applications.

This report concerns GPU polling and interaction responsiveness. The separate disk/WMI polling problem is already reported in #3939; we isolated that problem before the GPU comparison below.

Smallest steps or command that reproduce it

Observed locally on the hardware below:

  1. Open the official desktop app and leave it on the Models page with all models unloaded; wait for startup to finish.
  2. Type ordinary English characters/digits, use Backspace, and switch browser tabs in other applications. Notice intermittent delay while the desktop host continues its periodic sensor sampling.
  3. Restart the same desktop with the local diagnostic change below, setting the newly added STRATA_DISABLE_GPU_MONITOR=1 in its launch environment. Leave models unloaded and repeat those interactions.
  4. With only the periodic GPU sampling bypassed, typing and tab switching noticeably improve. The desktop remains open; CPU/RAM readings are still available, while live GPU readings are intentionally unavailable.

The environment variable is a local diagnostic addition, not an existing Strata option:

--- a/apps/host/server/monitor.mjs
+++ b/apps/host/server/monitor.mjs
@@
-    void Promise.all([readGpuTelemetry(hardware?.gpus??[]),sampleSystem(hardware?.processors??[])])
+    const gpuReadings = process.env.STRATA_DISABLE_GPU_MONITOR === '1'
+      ? [] : readGpuTelemetry(hardware?.gpus??[]);
+    void Promise.all([gpuReadings,sampleSystem(hardware?.processors??[])])

This is an isolation workaround, not a proposed complete production fix.

Reproduction status

Reproduced locally on one machine; one before/after restart comparison for the GPU-specific workaround. The perceived improvement was confirmed by the person using the local keyboard/display. This is not a controlled benchmark or a claim about all NVIDIA systems.

Strata version

  • Desktop / bundled host: 0.2.3, Windows CUDA 13 package.
  • Terminal product version: 0.2.4.2; Control bundle: 0.1.49.2.
  • Installed engine: 0.1.48, Windows x86_64 CUDA 13; no engine model instance during the comparison.
  • Bundled Node.js: 24.12.0.

The shipped polling code was inspected. The same relevant code is also present in upstream commit 7dd5cf18e68c639a8773e096c5c79f971ea2a9f5:

  • monitor.mjs lines 110–117 samples sensors every >=3 seconds (without overlapping a pending sample), before checking whether the engine is running.
  • device-probes.mjs lines 75–82 normally runs an nvidia-smi --query-gpu=... command plus nvidia-smi dmon -s t -c 1 per sample; a failed full query adds a basic-query fallback.

Graphics card, memory and system

  • Windows 10 Pro, build 19045.
  • Intel Core i7-8700, 6 cores / 12 logical processors; 128 GB RAM.
  • 2 x RTX 4090, modified 48 GB VRAM cards; NVIDIA driver 581.57. GPU 0 drives the local 3840x2160, 60 Hz display.
  • Physical local keyboard/mouse and display; no remote-control session.

Model, size and settings

The issue was first noticed after loading a Qwen3.8-Flash-Next-derived UD-IQ4_XS model across both GPUs. It persisted after unloading that model. Both GPU-polling comparison arms had zero loaded model instances, so no inference benchmark or model-throughput claim is being made.

Logs and measured evidence

Two 25-second samples on 2026-10-25, same computer. Process cumulative CPU times were sampled through native Windows system-information calls approximately once per second; per-logical-CPU times every 100 ms. The diagnostic samplers did not invoke WMI, performance-counter queries, or any GPU/nvidia-smi command.

Metric Periodic GPU polling enabled Only periodic GPU polling bypassed
Sample window (UTC) 06:59:23–06:59:48 07:02:35–07:03:00
Distinct nvidia-smi.exe PIDs observed 14 0 observed
Captured mean nvidia-smi CPU, single-logical-core equivalent 23.13% none captured
Captured ~1-second peak nvidia-smi CPU, single-logical-core equivalent 100.00% none captured
Total machine mean CPU 17.98% 19.15%
User-observed typing / browser-tab response noticeably delayed noticeably improved

The captured nvidia-smi CPU time was kernel time. Short-lived processes can fall between snapshots: PID counts are observations, not complete launch counts, and captured CPU is a lower bound. In particular, 23.13% is relative to one logical core, not the whole 12-thread CPU. Other application load varied, and total machine CPU did not decrease.

The monitor API after the workaround still reported CPU/RAM values, gpus: [], and idle state; native status / startup logs confirmed no model loaded.

Controls and limitations

  • This Windows installation also has unavailable/corrupt PerfLib counters. Before both GPU comparison arms, the local host was patched to stop retrying failed Windows disk queries for the rest of the host process, and probe() used windowsHide: true. Those two changes were held constant. They removed the repeated WMI disk errors, but typing/tab-switch stutter persisted until the GPU-polling workaround.
  • No input-to-display timing trace, ETW/driver stack, or exact user-stall timestamp was captured. This identifies a useful trigger/workaround on this machine, not a proven NVIDIA driver defect.
  • Query-only versus dmon-only was not tested; the report does not assign the delay to one specific command or prove the parent of every observed PID.
  • Startup detection and slower native-status refreshes may still invoke GPU queries. Zero observed PIDs in a 25-second window does not mean every GPU query was permanently disabled.
  • Other Windows UI delays that persisted with Strata closed are excluded from this report. This is not a claim that all system latency was fixed.
  • Raw machine-wide logs are not attached because they contain unrelated process and local-path information; the relevant sanitized measurements and exact diagnostic change are included above.

Requested investigation

Could the desktop offer a way to disable or reduce periodic GPU telemetry, and avoid repeatedly paying the cost of short-lived NVIDIA probes while idle? A lower-overhead sampling approach or adjustable cadence may help, but neither has been benchmarked here. The diagnostic bypass is the only GPU-specific workaround tested.

Report prepared with AI assistance from local measurements and user-operated comparisons.

Originally created by @fawninmyheart on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4066 ### Area [GUI] (the desktop app) ### Desktop app, Terminal or source? Official Windows CUDA 13 desktop app, installed in a separate directory. Local diagnostic modifications are disclosed below. ### What happened With the desktop app open and **no model loaded / no inference requests**, typing, Backspace, and switching tabs in other applications (Codex and Microsoft Edge) intermittently felt delayed, sometimes roughly half a second. This is a user-perceived estimate, not an instrumented input-latency measurement. **Keeping the Strata desktop and host running, but bypassing only the periodic `readGpuTelemetry()` call, noticeably improved typing and browser-tab switching on this machine.** CPU/RAM sampling continued. Unloading the model alone had not noticeably helped. Expected: leaving an unloaded desktop app open should not noticeably interfere with input and other applications. This report concerns GPU polling and interaction responsiveness. The separate disk/WMI polling problem is already reported in #3939; we isolated that problem before the GPU comparison below. ### Smallest steps or command that reproduce it Observed locally on the hardware below: 1. Open the official desktop app and leave it on the Models page with all models unloaded; wait for startup to finish. 2. Type ordinary English characters/digits, use Backspace, and switch browser tabs in other applications. Notice intermittent delay while the desktop host continues its periodic sensor sampling. 3. Restart the same desktop with the local diagnostic change below, setting the newly added `STRATA_DISABLE_GPU_MONITOR=1` in its launch environment. Leave models unloaded and repeat those interactions. 4. With only the periodic GPU sampling bypassed, typing and tab switching noticeably improve. The desktop remains open; CPU/RAM readings are still available, while live GPU readings are intentionally unavailable. The environment variable is **a local diagnostic addition, not an existing Strata option**: ```diff --- a/apps/host/server/monitor.mjs +++ b/apps/host/server/monitor.mjs @@ - void Promise.all([readGpuTelemetry(hardware?.gpus??[]),sampleSystem(hardware?.processors??[])]) + const gpuReadings = process.env.STRATA_DISABLE_GPU_MONITOR === '1' + ? [] : readGpuTelemetry(hardware?.gpus??[]); + void Promise.all([gpuReadings,sampleSystem(hardware?.processors??[])]) ``` This is an isolation workaround, not a proposed complete production fix. ### Reproduction status Reproduced locally on one machine; one before/after restart comparison for the GPU-specific workaround. The perceived improvement was confirmed by the person using the local keyboard/display. This is not a controlled benchmark or a claim about all NVIDIA systems. ### Strata version - Desktop / bundled host: **0.2.3**, Windows CUDA 13 package. - Terminal product version: **0.2.4.2**; Control bundle: **0.1.49.2**. - Installed engine: **0.1.48**, Windows x86_64 CUDA 13; no engine model instance during the comparison. - Bundled Node.js: **24.12.0**. The shipped polling code was inspected. The same relevant code is also present in upstream commit `7dd5cf18e68c639a8773e096c5c79f971ea2a9f5`: - [`monitor.mjs` lines 110–117](https://github.com/Niko1221/Strata/blob/7dd5cf18e68c639a8773e096c5c79f971ea2a9f5/apps/host/server/monitor.mjs#L110-L117) samples sensors every >=3 seconds (without overlapping a pending sample), before checking whether the engine is running. - [`device-probes.mjs` lines 75–82](https://github.com/Niko1221/Strata/blob/7dd5cf18e68c639a8773e096c5c79f971ea2a9f5/apps/host/server/device-probes.mjs#L75-L82) normally runs an `nvidia-smi --query-gpu=...` command plus `nvidia-smi dmon -s t -c 1` per sample; a failed full query adds a basic-query fallback. ### Graphics card, memory and system - Windows 10 Pro, build **19045**. - Intel Core **i7-8700**, 6 cores / 12 logical processors; **128 GB RAM**. - **2 x RTX 4090, modified 48 GB VRAM cards**; NVIDIA driver **581.57**. GPU 0 drives the local 3840x2160, 60 Hz display. - Physical local keyboard/mouse and display; no remote-control session. ### Model, size and settings The issue was first noticed after loading a Qwen3.8-Flash-Next-derived UD-IQ4_XS model across both GPUs. It persisted after unloading that model. **Both GPU-polling comparison arms had zero loaded model instances**, so no inference benchmark or model-throughput claim is being made. ### Logs and measured evidence Two 25-second samples on 2026-10-25, same computer. Process cumulative CPU times were sampled through native Windows system-information calls approximately once per second; per-logical-CPU times every 100 ms. The diagnostic samplers did not invoke WMI, performance-counter queries, or any GPU/`nvidia-smi` command. | Metric | Periodic GPU polling enabled | Only periodic GPU polling bypassed | | --- | ---: | ---: | | Sample window (UTC) | 06:59:23–06:59:48 | 07:02:35–07:03:00 | | Distinct `nvidia-smi.exe` PIDs observed | 14 | 0 observed | | Captured mean `nvidia-smi` CPU, single-logical-core equivalent | 23.13% | none captured | | Captured ~1-second peak `nvidia-smi` CPU, single-logical-core equivalent | 100.00% | none captured | | Total machine mean CPU | 17.98% | 19.15% | | User-observed typing / browser-tab response | noticeably delayed | noticeably improved | The captured `nvidia-smi` CPU time was kernel time. Short-lived processes can fall between snapshots: PID counts are observations, not complete launch counts, and captured CPU is a lower bound. In particular, **23.13% is relative to one logical core, not the whole 12-thread CPU**. Other application load varied, and total machine CPU did not decrease. The monitor API after the workaround still reported CPU/RAM values, `gpus: []`, and idle state; native status / startup logs confirmed no model loaded. #### Controls and limitations - This Windows installation also has unavailable/corrupt PerfLib counters. Before both GPU comparison arms, the local host was patched to stop retrying failed Windows disk queries for the rest of the host process, and `probe()` used `windowsHide: true`. Those two changes were held constant. They removed the repeated WMI disk errors, **but typing/tab-switch stutter persisted until the GPU-polling workaround**. - No input-to-display timing trace, ETW/driver stack, or exact user-stall timestamp was captured. This identifies a useful trigger/workaround on this machine, not a proven NVIDIA driver defect. - Query-only versus `dmon`-only was not tested; the report does not assign the delay to one specific command or prove the parent of every observed PID. - Startup detection and slower native-status refreshes may still invoke GPU queries. Zero observed PIDs in a 25-second window does not mean every GPU query was permanently disabled. - Other Windows UI delays that persisted with Strata closed are excluded from this report. This is not a claim that all system latency was fixed. - Raw machine-wide logs are not attached because they contain unrelated process and local-path information; the relevant sanitized measurements and exact diagnostic change are included above. ### Requested investigation Could the desktop offer a way to disable or reduce periodic GPU telemetry, and avoid repeatedly paying the cost of short-lived NVIDIA probes while idle? A lower-overhead sampling approach or adjustable cadence may help, but neither has been benchmarked here. The diagnostic bypass is the only GPU-specific workaround tested. Report prepared with AI assistance from local measurements and user-operated comparisons.
Author
Owner

@fawninmyheart commented on GitHub (Oct 25, 2026):

Follow-up: original disk polling restored, periodic GPU polling still disabled

We tested the missing control on the same machine and software described above. Restoring the original disk polling did not bring back the typing, Backspace or browser-tab stutter. The person using the local keyboard/display reported that these interactions remained smooth.

Both arms had no loaded model instances and no running load jobs. The local STRATA_DISABLE_GPU_MONITOR=1 bypass remained enabled. Only system-telemetry.mjs was restored byte-for-byte from its pre-fix backup; monitor.mjs, the launch environment and util.mjs were unchanged by hash. In particular, windowsHide: true remained enabled in both arms.

Two approximately 25-second native Windows samples on 2026-10-25:

Metric Disk failure circuit breaker enabled Original disk polling restored
Sample window (UTC) 07:39:06.937–07:39:31.969 07:41:13.746–07:41:38.770
Relevant WMI process (PID 10732), mean CPU relative to one logical core 0.187% 88.06%
WMI event 5858 entries for the disk query during the sample 0 16
User-observed typing / browser-tab response smooth still smooth

The 16 events came from 8 query-client PIDs, in pairs approximately every 3 seconds, with 0x80041017 and 0x800706BA. The query was for Win32_PerfRawData_PerfDisk_PhysicalDisk, Name='_Total'. Thus the disk-query failure / WMI overhead related to #3939 returned, without reproducing the interaction stutter in this comparison.

Interpretation: this strengthens the evidence for the periodic host GPU-polling path as a trigger of the interaction stutter on this machine. It does not establish a driver-level root cause or prove that disk polling can never cause latency.

Limitations:

  • One machine and one before/after restart comparison; perceived latency was reported by the user, not measured with input-to-display instrumentation. Task Manager tab-switch delays remain outside this report.
  • Process percentages above use one logical core as 100%, not the whole 12-thread CPU. Other load varied; whole-machine CPU was 21.08% versus 21.67%.
  • The bypass disables the host's 3-second GPU polling, not startup or slower status queries. One nvidia-smi PID was observed in a single snapshot in the disk-restored sample; this was not a completely GPU-query-free run. Short-lived processes can be missed.
  • Sampling itself used native Windows APIs and issued no GPU, WMI or performance-counter queries. WMI event logs were read after sampling.

After recording the user's feedback, we restored the disk failure circuit breaker. Periodic host GPU polling remains disabled and the model remains unloaded.

<!-- gh-comment-id:6395029785 --> @fawninmyheart commented on GitHub (Oct 25, 2026): ### Follow-up: original disk polling restored, periodic GPU polling still disabled We tested the missing control on the same machine and software described above. **Restoring the original disk polling did not bring back the typing, Backspace or browser-tab stutter.** The person using the local keyboard/display reported that these interactions remained smooth. Both arms had **no loaded model instances and no running load jobs**. The local `STRATA_DISABLE_GPU_MONITOR=1` bypass remained enabled. Only `system-telemetry.mjs` was restored byte-for-byte from its pre-fix backup; `monitor.mjs`, the launch environment and `util.mjs` were unchanged by hash. In particular, `windowsHide: true` remained enabled in both arms. Two approximately 25-second native Windows samples on 2026-10-25: | Metric | Disk failure circuit breaker enabled | Original disk polling restored | | --- | ---: | ---: | | Sample window (UTC) | 07:39:06.937–07:39:31.969 | 07:41:13.746–07:41:38.770 | | Relevant WMI process (PID 10732), mean CPU relative to one logical core | 0.187% | 88.06% | | WMI event 5858 entries for the disk query during the sample | 0 | 16 | | User-observed typing / browser-tab response | smooth | still smooth | The 16 events came from 8 query-client PIDs, in pairs approximately every 3 seconds, with `0x80041017` and `0x800706BA`. The query was for `Win32_PerfRawData_PerfDisk_PhysicalDisk`, `Name='_Total'`. Thus the disk-query failure / WMI overhead related to #3939 returned, without reproducing the interaction stutter in this comparison. **Interpretation:** this strengthens the evidence for the periodic host GPU-polling path as a trigger of the interaction stutter on this machine. It does not establish a driver-level root cause or prove that disk polling can never cause latency. Limitations: - One machine and one before/after restart comparison; perceived latency was reported by the user, not measured with input-to-display instrumentation. Task Manager tab-switch delays remain outside this report. - Process percentages above use one logical core as 100%, not the whole 12-thread CPU. Other load varied; whole-machine CPU was 21.08% versus 21.67%. - The bypass disables the host's 3-second GPU polling, not startup or slower status queries. One `nvidia-smi` PID was observed in a single snapshot in the disk-restored sample; this was not a completely GPU-query-free run. Short-lived processes can be missed. - Sampling itself used native Windows APIs and issued no GPU, WMI or performance-counter queries. WMI event logs were read after sampling. After recording the user's feedback, we restored the disk failure circuit breaker. Periodic host GPU polling remains disabled and the model remains unloaded.
Author
Owner

@Niko1221 commented on GitHub (Oct 27, 2026):

Thank you for the measurements. The host asks the NVIDIA tool twice every 3 seconds even with nothing loaded. For 0.2.7 it asks only while the Monitor is open or a model is running, and less often otherwise.

Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.7

<!-- gh-comment-id:6445859267 --> @Niko1221 commented on GitHub (Oct 27, 2026): Thank you for the measurements. The host asks the NVIDIA tool twice every 3 seconds even with nothing loaded. For 0.2.7 it asks only while the Monitor is open or a model is running, and less often otherwise. Release: https://github.com/Niko1221/Strata/releases/tag/v0.2.7
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1764
No description provided.