Pages:
Author

Topic: Ubuntu Nvidia Overclocking, Heat and Power Management (Read 886 times)

newbie
Activity: 49
Merit: 0
Can I use nvidia-smi to overclock cpu clock, mem clock and fan speed? Because nvidia-settings need xorg to run firsta and it consumes small amount of VRAM.
member
Activity: 223
Merit: 21
DCAB
Hey guys,

can anyone tell me, why I am not able to set individual fanspeeds on my ubuntu 7x 1060 rig?

Not working (any #):
Code:
rig1@rig1:~$ nvidia-settings -a [gpu:#]/GPUTargetFanSpeed=70
rig1@rig1:~$ nvidia-settings -a '[gpu:#]/GPUTargetFanSpeed=70'
rig1@rig1:~$ nvidia-settings -a "[gpu:#]/GPUTargetFanSpeed=70"


rig1@rig1:~$

Working:
Code:
rig1@rig1:~$ nvidia-settings -a GPUTargetFanSpeed=70

  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:0]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:1]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:2]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:3]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:4]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:5]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:6]) assigned value 70.
rig1@rig1:~$


BTW: setting
Code:
nvidia-settings -a [gpu:1]/GPUFanControlState=1
works (for any #.....

best regards
Code:
$ nvidia-settings -a [fan:1]/GPUTargetFanSpeed=70

I'm pretty sure they've already tried that, just were expressing the number as #.
[fan:#] instead of [gpu:#].

Ah yes, you are correct. Thank you
hero member
Activity: 630
Merit: 502
Hey guys,

can anyone tell me, why I am not able to set individual fanspeeds on my ubuntu 7x 1060 rig?

Not working (any #):
Code:
rig1@rig1:~$ nvidia-settings -a [gpu:#]/GPUTargetFanSpeed=70
rig1@rig1:~$ nvidia-settings -a '[gpu:#]/GPUTargetFanSpeed=70'
rig1@rig1:~$ nvidia-settings -a "[gpu:#]/GPUTargetFanSpeed=70"


rig1@rig1:~$

Working:
Code:
rig1@rig1:~$ nvidia-settings -a GPUTargetFanSpeed=70

  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:0]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:1]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:2]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:3]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:4]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:5]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:6]) assigned value 70.
rig1@rig1:~$


BTW: setting
Code:
nvidia-settings -a [gpu:1]/GPUFanControlState=1
works (for any #.....

best regards
Code:
$ nvidia-settings -a [fan:1]/GPUTargetFanSpeed=70

I'm pretty sure they've already tried that, just were expressing the number as #.
[fan:#] instead of [gpu:#].
member
Activity: 223
Merit: 21
DCAB
Hey guys,

can anyone tell me, why I am not able to set individual fanspeeds on my ubuntu 7x 1060 rig?

Not working (any #):
Code:
rig1@rig1:~$ nvidia-settings -a [gpu:#]/GPUTargetFanSpeed=70
rig1@rig1:~$ nvidia-settings -a '[gpu:#]/GPUTargetFanSpeed=70'
rig1@rig1:~$ nvidia-settings -a "[gpu:#]/GPUTargetFanSpeed=70"


rig1@rig1:~$

Working:
Code:
rig1@rig1:~$ nvidia-settings -a GPUTargetFanSpeed=70

  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:0]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:1]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:2]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:3]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:4]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:5]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:6]) assigned value 70.
rig1@rig1:~$


BTW: setting
Code:
nvidia-settings -a [gpu:1]/GPUFanControlState=1
works (for any #.....

best regards
Code:
$ nvidia-settings -a [fan:1]/GPUTargetFanSpeed=70

I'm pretty sure they've already tried that, just were expressing the number as #.
hero member
Activity: 630
Merit: 502
Hey guys,

can anyone tell me, why I am not able to set individual fanspeeds on my ubuntu 7x 1060 rig?

Not working (any #):
Code:
rig1@rig1:~$ nvidia-settings -a [gpu:#]/GPUTargetFanSpeed=70
rig1@rig1:~$ nvidia-settings -a '[gpu:#]/GPUTargetFanSpeed=70'
rig1@rig1:~$ nvidia-settings -a "[gpu:#]/GPUTargetFanSpeed=70"


rig1@rig1:~$

Working:
Code:
rig1@rig1:~$ nvidia-settings -a GPUTargetFanSpeed=70

  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:0]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:1]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:2]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:3]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:4]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:5]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:6]) assigned value 70.
rig1@rig1:~$


BTW: setting
Code:
nvidia-settings -a [gpu:1]/GPUFanControlState=1
works (for any #.....

best regards
Code:
$ nvidia-settings -a [fan:1]/GPUTargetFanSpeed=70
member
Activity: 223
Merit: 21
DCAB
Hey guys,

can anyone tell me, why I am not able to set individual fanspeeds on my ubuntu 7x 1060 rig?


What version driver are you using?  I remember once having a similar issue when i was building my first rig.

What issues did you see with the driver? I'd like to update the primary post with that as a common pitfall.
newbie
Activity: 9
Merit: 0
Hey guys,

can anyone tell me, why I am not able to set individual fanspeeds on my ubuntu 7x 1060 rig?


What version driver are you using?  I remember once having a similar issue when i was building my first rig.
member
Activity: 223
Merit: 21
DCAB
Hey guys,

can anyone tell me, why I am not able to set individual fanspeeds on my ubuntu 7x 1060 rig?

Not working (any #):
Code:
rig1@rig1:~$ nvidia-settings -a [gpu:#]/GPUTargetFanSpeed=70
rig1@rig1:~$ nvidia-settings -a '[gpu:#]/GPUTargetFanSpeed=70'
rig1@rig1:~$ nvidia-settings -a "[gpu:#]/GPUTargetFanSpeed=70"


rig1@rig1:~$

Working:
Code:
rig1@rig1:~$ nvidia-settings -a GPUTargetFanSpeed=70

  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:0]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:1]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:2]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:3]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:4]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:5]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:6]) assigned value 70.
rig1@rig1:~$


BTW: setting
Code:
nvidia-settings -a [gpu:1]/GPUFanControlState=1
works (for any #.....

best regards

Not sure, could you go through the steps you tried then run "$ history" so I can validate your command sequence?
newbie
Activity: 12
Merit: 0
Hey guys,

can anyone tell me, why I am not able to set individual fanspeeds on my ubuntu 7x 1060 rig?

Not working (any #):
Code:
rig1@rig1:~$ nvidia-settings -a [gpu:#]/GPUTargetFanSpeed=70
rig1@rig1:~$ nvidia-settings -a '[gpu:#]/GPUTargetFanSpeed=70'
rig1@rig1:~$ nvidia-settings -a "[gpu:#]/GPUTargetFanSpeed=70"


rig1@rig1:~$

Working:
Code:
rig1@rig1:~$ nvidia-settings -a GPUTargetFanSpeed=70

  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:0]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:1]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:2]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:3]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:4]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:5]) assigned value 70.
  Attribute 'GPUTargetFanSpeed' (rig1:0[fan:6]) assigned value 70.
rig1@rig1:~$


BTW: setting
Code:
nvidia-settings -a [gpu:1]/GPUFanControlState=1
works (for any #.....

best regards
hero member
Activity: 630
Merit: 502
Technically I don't think the power limiting on the NVidia driver is the same as undervolting - which you can do on ATI's pretty easily, or some ASIC's.  On NVidia, you can limit the amount of watts that the card will use max, but I believe it's still working at the same core voltage... With things like the ATI, you can detune off of 12v, and that basically allows the same performance but with less power consumption.

So, short answer is everyone on the NVidia side seems to get the efficiency gains by using the power limiting, which you already documented - and if you take something like WhatToMine, their calculation are clocking up core and memory, and reducing the power limit.
Reducing power limit does affect the core voltage. I don't think you can see the voltage using nvidia-smi in Linux but with Windows software you can see how many mV the GPU is using before and after changing power limit.
hero member
Activity: 687
Merit: 511
Technically I don't think the power limiting on the NVidia driver is the same as undervolting - which you can do on ATI's pretty easily, or some ASIC's.  On NVidia, you can limit the amount of watts that the card will use max, but I believe it's still working at the same core voltage... With things like the ATI, you can detune off of 12v, and that basically allows the same performance but with less power consumption.

So, short answer is everyone on the NVidia side seems to get the efficiency gains by using the power limiting, which you already documented - and if you take something like WhatToMine, their calculation are clocking up core and memory, and reducing the power limit.
member
Activity: 223
Merit: 21
DCAB
Isn't reducing the power limit already undervolting the GPU?

I guess technically it could be since Watts = Volts * Amps (depends how it’s managed under the hood, which I’m not familiar with), but that knowledge alone is worth adding to the guide for someone new. I personally haven’t gone down that road so I don’t feel qualified to provide information on the subject. If you’re willing to help add what you know I’d be happy to contribute the mining power to you.
hero member
Activity: 630
Merit: 502
Isn't reducing the power limit already undervolting the GPU?
member
Activity: 223
Merit: 21
DCAB
If anyone can help flush out the knowledge base here on undervolting cards on Ubuntu I’m willing to offer a bounty of 24 hours of mining time on any equihash, ethash or cryptonight based coin to wallet/pool of your choice with the following rig:

1x GTX 1080ti
3x GTX 1070
Doesn't
Code:
sudo nvidia-smi -i 0 -pl 150
already increase or reduce the power limit for individual cards? What do you think needs elaborating?

Undervolting the cards. I haven’t gone down that path yet, but Ive heard you can get better results that way.
hero member
Activity: 630
Merit: 502
If anyone can help flush out the knowledge base here on undervolting cards on Ubuntu I’m willing to offer a bounty of 24 hours of mining time on any equihash, ethash or cryptonight based coin to wallet/pool of your choice with the following rig:

1x GTX 1080ti
3x GTX 1070
Doesn't
Code:
sudo nvidia-smi -i 0 -pl 150
already increase or reduce the power limit for individual cards? What do you think needs elaborating?
member
Activity: 223
Merit: 21
DCAB
Any takers?
member
Activity: 223
Merit: 21
DCAB
If anyone can help flush out the knowledge base here on undervolting cards on Ubuntu I’m willing to offer a bounty of 24 hours of mining time on any equihash, ethash or cryptonight based coin to wallet/pool of your choice with the following rig:

1x GTX 1080ti
3x GTX 1070
member
Activity: 223
Merit: 21
DCAB
Wow, great writeup - you get merit for that!  Smiley  I actually haven't seen a good writeup on the coolbits part before and always wondered about the significance of the values (never a huge fan of magic numbers)

Thank you for the kind words! I was hoping I could help save some people some time and clarify some of the more esoteric concepts with Ubuntu overclocking. Glad it helped you and thank you for the merit Smiley
hero member
Activity: 687
Merit: 511
Wow, great writeup - you get merit for that!  Smiley  I actually haven't seen a good writeup on the coolbits part before and always wondered about the significance of the values (never a huge fan of magic numbers)
member
Activity: 223
Merit: 21
DCAB
It is also worth noting that sometimes the nvidia driver install will fail to blacklist nouveau which will need to be done manually.
Pages:
Jump to: