Jump to content

NVIDIA on Linux: Difference between revisions

From SameTeem
No edit summary
No edit summary
Line 1: Line 1:


== Extra free performance ==
== Extra Free Performance ==
  sudo nano /etc/modprobe.d/nvidia.conf  
  sudo nano /etc/modprobe.d/nvidia.conf  
Add
Add
Line 9: Line 9:
   NVreg_EnableResizableBar=1 </nowiki>
   NVreg_EnableResizableBar=1 </nowiki>


== Don't allow GPU to stay at maximum power while running tasks ==
== Don’t Allow GPU to Stay at Maximum Power While Running Tasks ==




Line 16: Line 16:
Add
Add
  CUDA_DISABLE_PERF_BOOST=1
  CUDA_DISABLE_PERF_BOOST=1
== X11 Tweaks ==
sudo nano  /etc/X11/xorg.conf.d/01-nvidia.conf
Add
<nowiki>
Section "ServerFlags"
      # Only applicable if you're using older Xlibre (<25.0.0.16), safe to remove otherwise
       Option "IgnoreABI" "true"
      # Increase the max clients allowed, this helps prevent your system being unable to launch apps
       Option "MaxClients" "2048"
      # Will improve performance when it's fully supported.
       Option "Debug" "dmabuf_capable"
EndSection
</nowiki>

Revision as of 02:17, 29 April 2026

Extra Free Performance

sudo nano /etc/modprobe.d/nvidia.conf 

Add

options nvidia NVreg_UsePageAttributeTable=1 \  
   NVreg_DynamicPowerManagement=0x02 \ 
   NVreg_InitializeSystemMemoryAllocations=1 \ 
   NVreg_RegistryDwords=RMIntrLockingMode=1 \ 
   NVreg_EnableResizableBar=1 

Don’t Allow GPU to Stay at Maximum Power While Running Tasks

This will allow the graphics card to run at lower speeds while doing things that use CUDA, such as video decoding

sudo nano /etc/environment

Add

CUDA_DISABLE_PERF_BOOST=1

X11 Tweaks

sudo nano  /etc/X11/xorg.conf.d/01-nvidia.conf

Add

Section "ServerFlags" 
       # Only applicable if you're using older Xlibre (<25.0.0.16), safe to remove otherwise 
       Option "IgnoreABI" "true" 
       # Increase the max clients allowed, this helps prevent your system being unable to launch apps
       Option "MaxClients" "2048" 
       # Will improve performance when it's fully supported.
       Option "Debug" "dmabuf_capable" 
EndSection