Resolving GPU Allocation Issues for Xorg in Multi-GPU Systems

Resolving GPU Allocation Issues for Xorg in Multi-GPU Systems

Environment

RAID Model: SR1000 or SR1010 etc

Host Hardware: AMD/Intel/Supermicro model etc

Operating System: Linux


Issue

Xorg is defaulting to SupremeRAID card instead of user's GPU for display output.
Example:

Users may find that the Xorg server prioritizes the A2000 GPU for display instead of the desired A5000 GPU.



Resolution

1. Environment Preparation:
 - 
Verify system resources using tools like nvidia-smi.

2.Update Xorg Configuration:
 -Create or edit the file:
  1.    $sudo vim /usr/share/X11/xorg.conf.d/20-gpu.conf
- Edit 
  1. Section "ServerLayout"
  2.     Identifier "layout"
  3.     Screen 0 "nvidia_1"
  4. EndSection

  5. Section "Device"
  6.     Identifier "nvidia_0"
  7.     Driver "nvidia"
  8.     BusID "PCI:65:0:0"  
  9.     Option "Ignore" "true"
  10. EndSection

  11. Section "Device"
  12.     Identifier "nvidia_1"
  13.     Driver "nvidia"
  14.     BusID "PCI:129:0:0"  
  15. EndSection

  16. Section "Screen"
  17.     Identifier "nvidia_1"
  18.     Device "nvidia_1"
  19. EndSection
# The BusID correctly identifies the A2000 using the format PCI:<Domain>:<Bus>:<Device>. In this example, A2000's BusID is PCI:65:0:0, which matches the example value of 00000000:41:00.0.

3. Verify Configuration

  • Use nvidia-smi to check if  Xorg is using primary display.
  • Check logs if further debugging is  required:
    1. cat /var/log/Xorg.0.log | grep NVIDIA