Skip to content

Reduce idle CPU and memory use of the host on Linux - #1439

Merged
manuelmayer-dev merged 1 commit into
mainfrom
fix/linux-host-helper-process-polling-1417
Oct 20, 2026
Merged

manuelmayer-dev merged 1 commit into
mainfrom
fix/linux-host-helper-process-polling-1417

Conversation

@manuelmayer-dev

@manuelmayer-dev manuelmayer-dev commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Fixes #1417

Summary

The idle Linux host no longer runs pactl and nvidia-smi on every poll: volume reads reuse the pactl listing while pactl subscribe runs, and GPU usage comes from NVML in-process. The generated localization catalog is now filled through small methods, which removes a native memory peak of about 500 MB from JIT-compiling one huge method.

Testing

Full build passes with -warnaserror; new tests cover the pactl cache, the NVML fallback and the generated catalog. On a Release linux-x64 publish: pactl runs 64 to 4 per minute, nvidia-smi 20 to 0, RSS 677 to 358 MB, volume and GPU variables still update. The ADB device tests and two display tests also fail on main on this machine. Not covered: the unconfirmed 4.5 GB report in the comments.

Plugin SDK / API compatibility

  • No public, non-obsolete SDK or plugin protocol contract was removed or changed (the generator only adds private methods)
  • A plugin compiled against the previous SDK still loads and behaves identically (source and binary compatible)

Checklist

  • Tests were added or updated where needed
  • The change was verified manually where appropriate
  • I reviewed and understand every submitted change

@manuelmayer-dev manuelmayer-dev added bug Something isn't working area:host Host: Domain, Application, Infrastructure area:integrations Built-in integrations and their actions area:sdk Public plugin SDK, analyzers, hosting, testing platform:linux Linux-specific performance Speed, memory or resource usage labels Oct 20, 2026
@manuelmayer-dev
manuelmayer-dev merged commit 7623afb into main Oct 20, 2026
12 checks passed
@manuelmayer-dev
manuelmayer-dev deleted the fix/linux-host-helper-process-polling-1417 branch October 20, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:host Host: Domain, Application, Infrastructure area:integrations Built-in integrations and their actions area:sdk Public plugin SDK, analyzers, hosting, testing bug Something isn't working performance Speed, memory or resource usage platform:linux Linux-specific

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] High Linux host CPU usage with frequent pactl and nvidia-smi executions

1 participant