Skip to content

Instantly share code, notes, and snippets.

@ShawonAshraf
Created August 8, 2022 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShawonAshraf/5db632df8aacb054779838b26abbbbd4 to your computer and use it in GitHub Desktop.
Save ShawonAshraf/5db632df8aacb054779838b26abbbbd4 to your computer and use it in GitHub Desktop.
Nvidia GPU power limit Linux
# /lib/systemd/system/gpupowerlimiter.service
[Unit]
Description="Limit Nvidia GPU power at each reboot using nvidia-smi"
[Service]
User=root
Group=root
ExecStartPre=/usr/bin/nvidia-smi -i 0 -pm ENABLED
ExecStart=/usr/bin/nvidia-smi -pl 280
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment