AI Rig
Limit TDP on RTX 3090s
1. Check Current Power Limits:
- Use the command
nvidia-smi -q -d POWER
to see the current power limit settings. - This will show you the current power limit, maximum power limit, and other power-related information.
2. Set a New Power Limit:
- Use the command
sudo nvidia-smi -i <GPU_ID> -pl <POWER_LIMIT_IN_WATTS>
to set a new power limit. - Replace
<GPU_ID>
with the ID of the GPU you want to modify (e.g., 0 for the first GPU). - Replace
<POWER_LIMIT_IN_WATTS>
with the desired power limit in watts (e.g., 250 for 250W). - Example:
sudo nvidia-smi -i 0 -pl 250
Persistence: To make the power limit persistent across reboots, you'll need to create a custom systemd
service or script that runs this command on startup.
3. Verify the Settings:
- After setting the power limit, use the command
nvidia-smi -q -d POWER
again to verify that the new power limit has been applied. - Check the output to ensure that the "Current Power Limit" reflects the value you set.
4. Persist the Power Limit on Boot
Create a systemd
service:
sudo nano /etc/systemd/system/nvidia-power-limit.service
Paste this:
[Unit]
Description=Set NVIDIA GPU Power Limit
After=multi-user.target
[Service]
Type=oneshot
ExecStart=/usr/bin/nvidia-smi -i 0 -pl 300
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Enable it:
sudo systemctl enable nvidia-power-limit.service
sudo systemctl start nvidia-power-limit.service