2 ms·
> if you're not already root Hmm, good point. I think we made opposite assumptions about that. If the daemon does run as a root, then no extra software is req
by adrianmonk 2y ago
> if you're not already root
Hmm, good point. I think we made opposite assumptions about that.
If the daemon does run as a root, then no extra software is required. For Unix domain sockets, you can trivially create your socket in /run, and for TCP, you can trivially use a port below 1024.
If it doesn't, then some extra software or configuration is required in either case.
I tried looking it up, and I think it does run as root[1]. But I also found that the daemon uses a Python library to get GPU stats, and root might or might not be required depending on how the GPU software is configured[2]. So it could have gone either way.
---
[1] That's how I read this: https://github.com/Atoptool/atop/blob/master/atopgpu.service https://github.com/Atoptool/atop/blob/master/atopgpu.service
[2] See https://github.com/gpuopenanalytics/pynvml/issues/19 https://github.com/gpuopenanalytics/pynvml/issues/19