Virtual monitor should only consume video ram on a single GPU
Affected version
Fedora 37 VM with below packages: mutter-43.2-2.fc37.x86_64 kmod-nvidia-6.1.9-200.fc37.x86_64-525.85.05-1.fc37.x86_64
Bug summary
Virtual monitor should only consume video ram on a single GPU
Steps to reproduce
- Boot fedora37 VM with 2x Nvidia A16 GPU and put the into multi-user mode
- From tty1, execute command: gnome-shell --wayland --mode=user --headless --virtual-monitor 1920x1080
- Now check video ram usage from nvidia-smi:
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 525.85.05 Driver Version: 525.85.05 CUDA Version: 12.0 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA A16 Off | 00000000:05:00.0 Off | 0 |
| 0% 35C P8 12W / 62W | 242MiB / 15356MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
| 1 NVIDIA A16 Off | 00000000:06:00.0 Off | 0 |
| 0% 32C P8 12W / 62W | 1MiB / 15356MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1268 G gnome-shell 238MiB |
| 0 N/A N/A 1308 G /usr/bin/Xwayland 3MiB |
| 1 N/A N/A 1268 G gnome-shell 1MiB |
+-----------------------------------------------------------------------------+
What happened
Nvidia-smi show 1MB video ram consumption on secondary nvidia A16 GPU
What did you expect to happen
No video ram consumption on secondary nvidia GPU
Relevant logs, screenshots, screencasts etc.
libmutter-Message: 18:25:19.190: Running GNOME Shell (using mutter 43.2) as a Wayland display server
(gnome-shell:2317): libmutter-WARNING **: 18:25:19.980: Failed to open gpu '/dev/dri/card0': Couldn't find render node device for '/dev/dri/card0'
libmutter-Message: 18:25:20.059: Added device '/dev/dri/card1' (nvidia-drm) using no mode setting.
libmutter-Message: 18:25:20.102: Added device '/dev/dri/card2' (nvidia-drm) using no mode setting.
libmutter-Message: 18:25:20.104: Created gbm renderer for '/dev/dri/card1'
libmutter-Message: 18:25:20.105: Created gbm renderer for '/dev/dri/card2'
libmutter-Message: 18:25:20.105: GPU /dev/dri/card1 selected as primary
libmutter-Message: 18:25:20.120: Disabling DMA buffer screen sharing (implicit modifiers not supported)
libmutter-Message: 18:25:20.120: Added virtual monitor Meta-0
libmutter-Message: 18:25:20.143: Using public X11 display :0, (using :1 for managed services)
libmutter-Message: 18:25:20.143: Using Wayland display name 'wayland-0'
Window manager warning: Failed to set environment variable GNOME_SETUP_DISPLAY for gnome-session: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Destination does not exist
Window manager warning: Failed to set environment variable DISPLAY for gnome-session: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Destination does not exist
Window manager warning: Failed to set environment variable XAUTHORITY for gnome-session: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Destination does not exist
Window manager warning: Failed to set environment variable WAYLAND_DISPLAY for gnome-session: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Destination does not exist
GNOME Shell-Message: 18:25:20.443: Telepathy is not available, chat integration will be disabled.
GNOME Shell-Message: 18:25:20.486: Failed to create file /run/user/1000/gnome-shell-disable-extensions: Error opening file “/run/user/1000/gnome-shell-disable-extensions”: File exists
GNOME Shell-Message: 18:25:20.543: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
portal is not running: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer: unit failed.
** (gnome-shell:2317): WARNING **: 18:25:20.841: ATK Bridge is disabled but a11y has already been enabled.
portal is not running: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Could not activate remote peer: unit failed.
GNOME Shell-Message: 18:25:21.838: GNOME Shell started at Wed Feb 15 2023 18:25:20 GMT+0800 (China Standard Time)
GNOME Shell-Message: 18:25:21.839: Registering session with GDM
GNOME Shell-Message: 18:25:21.876: Error registering session with GDM: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
Edited by Jeff Fortin