mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3342] [Engine] run the Intel GPU sampler without root on a single-user host #1354
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1354
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @beyondcr on GitHub (Oct 20, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3342
Area
[Engine]
What do you want to do?
Let the Intel GPU sampler run without root on a machine that has one user.
sycl/tools/gpustat.pytakes VRAM and load from/proc/<pid>/fdinfo, and the install notes requirea root service writing
/run/gpustat.json. That is right for a shared host: another user's/proc/<pid>/fdinfoneedsCAP_SYS_PTRACE, so the sampler has to be privileged to account forprocesses it does not own.
On a single-user workstation every process that touches the card already belongs to that user, so
the sampler needs no privilege at all. Requiring root there means a second service running as root
on a desktop where nothing is shared, which is a permission and a dependency that buys nothing. It
also means the Monitor tab shows no load or VRAM at all until someone installs it.
What I would like, for the single-user case only: the sampler writes to the session runtime
directory when
/runis not writable, the reader looks in both places and still uses the entry thatnames its own card, and the install notes describe both. A shared host keeps the root service
exactly as it is today.
Notes:
only about which path the document is written to and read from, and it does not depend on that
pull request landing first.
direction you want. If it is not wanted, say so and it stays local. The change is small: the
sampler picks a writable path, the reader tries the system path and then the session path, and it
keeps using the entry that names its own card.
and an Arc A770. Every claim here was checked against the source or against command output.
What do you do today instead?
On this machine I run the sampler as a systemd user unit writing
$XDG_RUNTIME_DIR/gpustat.json,with a locally patched reader that also checks that path. It works and has run for hours without
trouble, but it is a local patch rather than something the notes describe, so anyone else has to
work it out again.
@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.