Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roycewilliams/3e0a71d2f1fae83fba6b6b605ab3a5a4 to your computer and use it in GitHub Desktop.
Save roycewilliams/3e0a71d2f1fae83fba6b6b605ab3a5a4 to your computer and use it in GitHub Desktop.
hashcat-nvidia-power-performance-per-watt-adjustment.txt
------------------------------------------------------------------------------
You can drop the power on NVIDIA cards and improve performance per watt.
Credit for the idea to atom on the 1080s:
https://docs.google.com/spreadsheets/d/1B1S_t1Z0KsqByH3pNkYUM-RCFMu860nlfSsYEqOoqco/edit#gid=1307275979
On the GTX 970s, you can drop to 150 and still get 99.96% of the same
performance! This saves power (and heat?). And there is evidence that the
performance difference varies per hash and per attack (masks, rules, etc.)
Minimum power on 970 is 100. For sha1+mask, performance % compared to default power:
W MH/s MH/s/W diff
100 3155.3 31.553 86.52243062%
120 3447.2 28.7266666667 94.52670835%
150 3645.2 24.3013333333 99.95612592%
170 3646.8 21.4517647059 100%
187 3642.8 19.4802139037 99.8903148%
------------------------------------------------------------------------------
My system:
* Device #1: GeForce GTX 1080, 2036/8145 MB allocatable, 20MCU
* Device #2: GeForce GTX 1080, 2028/8114 MB allocatable, 20MCU
* Device #3: GeForce GTX 970, 1017/4068 MB allocatable, 13MCU
* Device #4: GeForce GTX 970, 1017/4068 MB allocatable, 13MCU
* Device #5: GeForce GTX 970, 1017/4068 MB allocatable, 13MCU
* Device #6: GeForce GTX 970, 1017/4068 MB allocatable, 13MCU
# Note that nvidia-smi starts numbering of GPUs at 0.
$ for device in 0 1 2 3 4 5; do sudo nvidia-smi -i $device -pl 150; done
Power limit for GPU 0000:01:00.0 was set to 150.00 W from 180.00 W.
All done.
Power limit for GPU 0000:02:00.0 was set to 150.00 W from 180.00 W.
All done.
Power limit for GPU 0000:05:00.0 was set to 150.00 W from 170.00 W.
All done.
Power limit for GPU 0000:06:00.0 was set to 150.00 W from 170.00 W.
All done.
Power limit for GPU 0000:09:00.0 was set to 150.00 W from 170.00 W.
All done.
Power limit for GPU 0000:0A:00.0 was set to 150.00 W from 170.00 W.
All done.
At full load:
$ nvidia-smi -a | egrep '^GPU| Power Limit|Default Power Limit|Power Draw'
GPU 0000:01:00.0
Power Draw : 150.30 W
Power Limit : 150.00 W
Default Power Limit : 180.00 W
GPU 0000:02:00.0
Power Draw : 148.24 W
Power Limit : 150.00 W
Default Power Limit : 180.00 W
GPU 0000:05:00.0
Power Draw : 137.72 W
Power Limit : 150.00 W
Default Power Limit : 170.00 W
GPU 0000:06:00.0
Power Draw : 144.92 W
Power Limit : 150.00 W
Default Power Limit : 170.00 W
GPU 0000:09:00.0
Power Draw : 148.29 W
Power Limit : 150.00 W
Default Power Limit : 170.00 W
GPU 0000:0A:00.0
Power Draw : 145.53 W
Power Limit : 150.00 W
Default Power Limit : 170.00 W
------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment