Open XuehaiPan opened 1 year ago
I have the same problem, do you resolve it ?
I have the same problem, do you resolve it?
@pomeloyou Seems that you are using docker containers rather than WSLg. You need to pass --pid=host
when running the container.
docker run --pid=host ...
Required prerequisites
What version of nvitop are you using?
0.11.0
Operating system and version
Windows 10 build 10.0.19045.0
NVIDIA driver version
526.98
NVIDIA-SMI
Python environment
Problem description
The XWayland process in WSLg uses the NVIDIA GPU in the WSL instance. However, WSL does not expose the process in the
/proc
directory. So thepsutil
fails to gather process information by reading the files under/proc/23
.Steps to Reproduce
Command lines:
Traceback
No response
Logs
Screenshot:
Expected behavior
Show the process information rather than
N/A
andNo Such Process
.Additional context
I have raised an issue in microsoft/wslg#919.