You are not logged in.
Hello there,
there are currently processes running on my dGPU (NVIDA RTX 3060 Ti). These processes prevent me from passing the GPU to my VM in an orderly fashion.
I'm running KDE Plasma on Wayland. I do not need nor want the dGPU to run any processes while not engaged with the VM, the only reason I got the nvidia-open driver installed is power-consumption (the vfio-driver would have the card consume ~25 Watts at idle!)
Here's the output of
nvidia-smi
Simply killing these processes does not work, since they get restarted immediately.
Is there any way to prevent any processes from running on the dGPU?
Thanks in advance!
Last edited by Per-Astra-Ad-Deum (2024-10-30 22:24:22)
Offline
The Egyptian God of deserts told me to grind topics, so here I am with an update.
1. I've continued my search on this issue and found this Github issue here: https://github.com/Bensikrac/VFIO-Nvidia-dynamic-unbind
From what I understand the author suggests enabling KMS for both Intel and NVIDIA and adding a variable to the /etc/environment config file. With this it should be possible to force KWIN to only use the first GPU (a.k.a. boot GPU) for launching processes.
That's what I tried. First the contents of /etc/mkinitcpio.conf:
Contents of /env/environment
Sadly, this didn't work out. The author suggests using `ls -la /dev/dri/by-path` to check the enumeration of the available GPUs. Sadly, enabling KMS for both GPUs did not result in Intel driver getting loaded first:
Quite the contrary actually. `nvidia-smi` is now showing even more processes (in fact, the whole DE) running on the dGPU:
While this seems like a setback I still believe it is the right way to go. Maybe someone with more experience with drivers/KMS can chime in and tell me the correct way of arranging the drivers?
Thanks in advance.
Offline
just set some env variables to use only intel
https://wiki.archlinux.org/title/PRIME# … er_Wayland
https://bbs.archlinux.org/viewtopic.php … 2#p2152232
Offline
In addition to the ones mentioned above there's https://invent.kde.org/plasma/kwin/-/wi … rm_devices to tell KWin to explicitly only start on a specific GPU
Online
Offline
Try /etc/X11/xorg.conf.d/10-server.conf
Section "ServerLayout"
Identifier "Layout 1"
Option "IsolateDevice" "PCI:0:2:0"
EndSection
Also for the future please don't embed "huge" images (the board has a 250x250px rule) and in general don't post pictures of text, post the text.
Offline
Try /etc/X11/xorg.conf.d/10-server.conf
Section "ServerLayout" Identifier "Layout 1" Option "IsolateDevice" "PCI:0:2:0" EndSection
Also for the future please don't embed "huge" images (the board has a 250x250px rule) and in general don't post pictures of text, post the text.
Thank you for the tip. I've managed to get rid of the last remaining process by changing the following in /etc/X11/xorg.conf:
Section "Device"
Identifier "Card1"
Driver "intel"
BusID "PCI:0:2:0"
EndSection
That did the trick. I was about to report back, but I got caught up in the next issue. :-D
Well, I've surely learned a lot in these last few days.
Thank you all for your help!
Offline