Why every running CUDA programs force the GPU to P2 state. It’s really annoying:
There is no way to disable that behavior. (no NVreg_* options in nvidia kernel module).
It prevents power saving when decoding with NVDEC (GPU clock doesn’t decrease bellow base clock).
It reduces GPU performance of CUDA programs and games during encoding sessions.
There are topics from 2017/2018 complaining about that:
A least add an option such as kernel parameters to disable “P2 forced” state when running CUDA.
It is 2024 - and this issue make Nvidia GPU video acceleration pointless in Linux.
opened 11:28AM - 03 Mar 24 UTC
When I watch youtube/twitch/other videos in "default CPU-decoding" by webbrowser… s, my GPU is:
`GPU 210MHz MEM 405MHz TEMP 36°C`
And CPU usage around 20% on 65Watt CPU for 480p-720p videos.
When I use this `nvidia-vaapi-driver` in Firefox - even watching single 480p video, when it on screen:
<pre> <font color="#2AA1B3">GPU</font> 2460MHz <font color="#2AA1B3">MEM</font> 8250MHz <font color="#2AA1B3">TEMP</font><font color="#26A269"> 42</font>°C <font color="#2AA1B3">FAN</font> 0% <font color="#2AA1B3">POW</font> N/A / 115 W
<font color="#2AA1B3">GPU</font>[<font color="#26A269">|</font> 3%] <font color="#2AA1B3">MEM</font>[<font color="#26A269">|||</font> 0.906Gi/7.996Gi] <font color="#2AA1B3">DEC</font>[ 1%]</pre>
I mean - boost from 210MHz to 2460MHz is not free in power consumption, and same for memory.
*I can not see power-consumption it always N/A by Nvidia driver.*
It worth it for 4k videos that for sure, but for 480p-720p... is it?
P.S. Just updated to 550.54.14 Nvidia driver - this nvidia-vaapi-driver gpu-acceleration works in Wayland, Wayland works must better now on Nvidia, there still lots of bugs especially with chrome, but Wayland on Nvidia works now 100x better than on 545 drivers.
P.S.S. Thanks for making something that actually works for GPU video acceleration in webbrowser.
faz
August 13, 2024, 5:33pm
3
lets get nvidia to notice this post and make some changes. I agree it’s really weird seeing this forced and it shouldn’t behave like this.
faz
August 31, 2024, 10:52am
4
this issue is especially annoying on my system because it causes the fans on my founders edition 3070 card to spin up for no reason when watching videos at 1440p / 4k. The card is only at 42c and the fans are still spinning. They’re easily the loudest and whiniest fans in my system too.
Hi guys, any progress?
Also, why Nvidia developers not replying to similar question? What are they doing all day? Tracking stock price?
I found that setting disable_vrr_memclk_switch to 1 in the nvidia-modeset module forces the GPU to P0 even if you are running CUDA programs and that also happens with certain combination of screen refresh rate .
faz
November 17, 2024, 12:37pm
8
Still occuring on 565 drivers. Nvidia, what is going on?
faz
August 30, 2025, 5:05pm
10
I found this gist by @rafael.ristovski boost_bypass.c · GitHub
seems to have helped with the issue a bit on librewolf
works for me for chrome, kodi and mpv, thanks
faz
August 30, 2025, 9:52pm
12
great. now if only nvidia could provide us a nicer way to achieve this, maybe with an env var or something (no shade to your gist rafael :P)
wpierce
November 6, 2025, 3:44am
13
This is fixed on the latest R580 and all future branches:
This is fixed on the latest R580 and all future branches with the use of the CUDA_DISABLE_PERF_BOOST environment variable.
Added a new environment variable, CUDA_DISABLE_PERF_BOOST, to allow for disabling the default behavior of boosting the GPU to a higher power state when running CUDA applications. Setting this environment variable to ‘1’ will disable the boost.