Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

NVIDIA GPU wont sleep (P8) after 6.9 upgrade

Featured Replies

I've upgraded to 6.9 und installed the NVIDIA driver. All transcoding and other GPU related tasks are all working fine. However since the update, my GPU refuses to sleep when it isn't being used. According to the GPU statistics plugin, it stays in the P0 power state, even when there is nothing using it.

 

I had previously set up the "nvidia-smi_persistence_mode" user script to force the GPU to sleep, and though it still runs every hour, it seems to make no difference:

#!/bin/bash
gpupstate=$(nvidia-smi --query-gpu="pstate" --format=csv,noheader);
gpupid=$(nvidia-smi --query-compute-apps="pid" --format=csv,noheader);
if [ "$gpupstate" == "P0" ] && [ -z "$gpupid" ]; then fuser -kv /dev/nvidia*; fi;

 

Has anyone else had any luck getting this to work?

  • 2 weeks later...

Did you ever get this to work? I cannot get it into the P8 state either.

1 hour ago, SimplePete said:

Did you ever get this to work? I cannot get it into the P8 state either.

 

I use the following script that loads via user scripts plugin at the start of the array:

#!/bin/bash
nvidia-smi -pm 1

 

makes my gt 710 go to P8 reliably when not used by plex.

On 3/23/2021 at 8:19 PM, 1812 said:

 

I use the following script that loads via user scripts plugin at the start of the array:


#!/bin/bash
nvidia-smi -pm 1

 

makes my gt 710 go to P8 reliably when not used by plex.

 

It works! My 1070 now goes from P0 at 33W to P8 at 13W at idle (no transcoding in Jellyfin). I and my electric bill thank you!

  • 9 months later...
On 3/25/2021 at 5:10 AM, SimplePete said:

 

It works! My 1070 now goes from P0 at 33W to P8 at 13W at idle (no transcoding in Jellyfin). I and my electric bill thank you!


Did a little search and found this post.  VERY helpful, thank you.  This also works on an NVIDIA Quadro p2200.

  • 3 months later...
On 3/23/2021 at 9:19 PM, 1812 said:

I use the following script that loads via user scripts plugin at the start of the array:

#!/bin/bash
nvidia-smi -pm 1

Thanks for the script. Works wonderfully for my Quadro T400

  • 8 months later...

Maybe someone is interested in my Code:

 

# Get the number of GPUs
num_gpus=$(nvidia-smi --query-gpu=count --format=csv,noheader | awk 'NR==1 {sum+=$1} END {print sum}')

echo "Found $num_gpus GPUs."

# Iterate over the GPUs
for ((i=0; i< $num_gpus; i++)); do
  # Check if there are any processes running on GPU $i
  if nvidia-smi -i $i --query-compute-apps=pid --format=csv,noheader | grep -q '^[0-9]'; then
    echo "There are processes running on GPU $i."
  else
    echo "There are no processes running on GPU $i. Setting GPU $i to power save mode."
    nvidia-smi -i $i -pm 1
  fi
done

 

It first checks how many GPUS are installed and then if there are running processes. If not, Power save mode will be activated.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.