Friday, January 17, 2014

NVIDIA GPU Temp

On my old TV setup I used nvclock to get the NVIDIA GPU temperature and graph it using rrdtool (along with other temperatures and fan speeds).

nvclock was always a bit of a hack and does not work any more (at least, it won't do anything useful for me).

I know the nvidia-settings tool can display the temperature (and much more information) so there must be a modern way to access this data. A quick google showed up the nvidia-smi tool.

Quick and dirty,
nvidia-smi -q | grep Temperature -A 1
will show the current temperature.
    Temperature
        Gpu                     : 72 C


Interestingly, the output can also be in XML format. Combined with some xslt magic, it is possible to get the temperature in a more structured way.
echo '<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method='text'/>
<xsl:template match="/">
<xsl:for-each select="//gpu_temp">
<xsl:value-of select="."/>

<xsl:text>&#xa;</xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>

' > nvidia-temp.xml
nvidia-smi --dtd > nvsmi_device_v6.dtd
nvidia-smi -q -x | xsltproc nvidia-temp.xml -

Note: Your driver might be using a different dtd version. Adjust as required. (nvidia-smi --dtd | head -1 | cut -d ' ' -f 2 will give the correct name)

If you have multiple cards and want to know which card has which temperature then you can alter the xsl to format it as you require with something like
<xsl:value-of select="ancestor::gpu/@id"/> or <xsl:value-of select="ancestor::gpu/uuid"/>
eg
0000:04:00.0 Quadro K2000 31 C
0000:05:00.0 Quadro K2000 32 C



67 comments:

  1. The article you have shared here very awesome. I really like and appreciated your work. I read deeply your article, the points you have mentioned in this article are useful
    Bad Ice Cream

    ReplyDelete
  2. I am very happy to read this. Appreciate your sharing lulubox download

    ReplyDelete
  3. I don't understand about NVIDIA GPU Temp. Please at first give a brief introduction about it. And one thing if you need a guidance to install exodus kodi, just ping me.

    ReplyDelete
  4. Thanks for expaling about NVIDIA GPU Temp. Can you tell me how we can resolve high CPU usages issue? and Can I post your blog on QuickBooks support site?

    ReplyDelete
  5. There's no easy answer; it varies from GPU to GPU. Google is your friend. Most modern chips can run at temperatures in the mid-90 degrees Celsius, though, and you'll often see them hit those temperatures in gaming laptops

    hotstar app

    ReplyDelete
  6. NVIDIA should do something to lower the temperature of their chipset while playing games. I have encountered this problem while working on Geek Squad Tech Support project.

    ReplyDelete
  7. This post is discussing in an outstanding way. I like your way yo discussed your valid points and facts about this. I really said you share more and more articles How To Remove Mildew From Clothes

    ReplyDelete
  8. Most of the toxic plants are irritants, causing localized tenderness of the mouth, stomach & skin. The toxic principle in the other plants have a systemic effect, damage the function of cat organs like the heart or kidney. Plants Poisonous To Cats

    ReplyDelete
  9. In Present Scenario, being able to speak English is crucial for both career success and social success. here we learn how to speak confidently and correctly. we provide an excellent training on learning the language with different and excellent methods. English Speaking Course Online

    ReplyDelete
  10. Hey, Excellent work. I must appreciate the way you manage your article’s content and the look & feel of your website. you are really doing a great work, carry on the hard work.
    Best SEO services in Delhi NCR

    ReplyDelete
  11. Choosing a high quality and well-paying casino may be hard. But Casinority comes to the rescue with its detailed and up to date casino reviews. Take advantages of our https://casinority.com/reviews/fair-go-casino/ listings of the best sites.

    ReplyDelete
  12. Impressive blog. I thought this was not really preferrable.

    click for truck listing

    ReplyDelete
  13. Wonderful article, thank you for sharing the info. It isn’t too often that you simply read articles where the poster understands what they’re blogging about.

    사설토토
    온라인카지노
    파워볼

    ReplyDelete
  14. I have to search sites with relevant information on given topic and provide them to teacher our opinion and the article.

    토토
    카지노사이트
    파워볼사이트

    ReplyDelete
  15. This is an excellent post I seen thanks to share it. It is really what I wanted to see hope in future you will continue for sharing such a excellent post.

    스포츠토토
    바카라사이트
    파워볼게임

    ReplyDelete
  16. It’s really a nice and useful piece of info. I am glad that you shared this helpful information with us. Please keep us up to date like this. Thank you for sharing. 배트맨토토

    ReplyDelete
  17. Really appreciate you sharing this blog post. Really looking forward to read more. Really Great 토토

    ReplyDelete
  18. This article is an appealing wealth of useful informative that is interesting and well-written. I commend your hard work on this and thank you for this information. I know it very well that if anyone visits your blog, then he/she will surely revisit it again. 온라인카지노사이트

    ReplyDelete
  19. I have read it, but the information is still less than mine, i am wanting to learn more
    바카라사이트인포

    ReplyDelete
  20. Useful information. Lucky me I found your web site by chance, and I’m shocked
    why this coincidence did not took place earlier! I bookmarked it.
    파워볼사이트닷컴

    ReplyDelete
  21. Very good article! We will be linking to this great
    content on our site. Keep up the good writing.
    온라인카지노사이트

    ReplyDelete
  22. I needed to thank you for this phenomenal read!! I unquestionably adored each and every piece of it. I have you bookmarked your site to look at the new stuff you post.
    사설토토

    ReplyDelete
  23. I enjoy the subject you are talking about. It very interesting! 토토사이트웹

    ReplyDelete
  24. Nice post. I learn something much more difficult on different article sites everyday. 고스톱

    ReplyDelete
  25. It seems too complicated and very general for me to understand. 메이저토토사이트

    ReplyDelete
  26. Hello, I'm happy to see some great articles on your site. Would you like to come to my site later? My site also has posts, comments and communities similar to yours. Please visit and take a look 온라인홀덤

    ReplyDelete
  27. This comment has been removed by the author.

    ReplyDelete
  28. Nic. I learn something much more difficult on different article sites everyday . 꽁머니

    ReplyDelete
  29. I like the way you write this article, Very interesting to read.I would like to thank you for the efforts you had made for writing this awesome article.

    토토사이트
    온라인카지노사이트
    파워볼사이트
    바카라사이트

    ReplyDelete
  30. I just want to say I’m all new to blogging and honestly loved your web blog. More than likely I’m want to bookmark your blog .

    사설토토
    카지노사이트
    파워볼
    온라인카지노

    ReplyDelete
  31. I’m impressed, I have to admit. Genuinely rarely must i encounter a weblog that’s both educative and entertaining, and without a doubt, you may have hit the nail about the head.

    스포츠토토
    바카라
    파워볼게임
    온라인바카라

    ReplyDelete
  32. Hello. I'm subscribed to your posts. You inspire me a lot.카지노사이트I am so grateful.

    ReplyDelete
  33. Simply unadulterated brilliance from you here. I have never expected something not as much as this from you and 먹튀검증 have not confounded me by any reach out of the inventive vitality. I acknowledge you will keep the quality work going on.

    ReplyDelete
  34. Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder for 메이저놀이터, what about the other side? !!!!!!Thanks

    ReplyDelete
  35. I've been looking for photos and articles on this topic over the past few days due to a school assignment, 먹튀검증 and I'm really happy to find a post with the material I was looking for! I bookmark and will come often! Thanks :D

    ReplyDelete
  36. This is very interesting, You are a very professional blogger. I’ve joined your feed and look ahead to seeking more of your excellent post. Additionally, I’ve shared your web site in my social networks. 먹튀검증

    ReplyDelete
  37. Your article looks really adorable, here's a site link i dropped for you which you may like. 온라인바둑이

    ReplyDelete
  38. Very good. I love to read your page dear continue. Also play our game:온라인카지노

    ReplyDelete
  39. Pretty! This was an extremely wonderful post. Thanks for supplying this info.온라인카지노

    ReplyDelete
  40. Thanks for sharing such a nice opinion, piece of writing is good,
    thats why i have read it fully,Feel free to surf to my web-site온라인카지노

    ReplyDelete
  41. Of course, your article is good enough, 온라인바둑이 but I thought it would be much better to see professional photos and videos together. There are articles and photos on these topics on my homepage, so please visit and share your opinions.

    ReplyDelete
  42. 바카라사이트 If you’re just getting into online *****, trying to revise your ***** tournament strategy, or love a good underdog story, then keep reading to find out how these unknowns burned through their professional competition to cash out at some of the biggest ***** tournaments in the world.

    ReplyDelete
  43. 카지노사이트 If we’re going to be talking about ***** underdogs, particularly those who scored buy-ins to tournaments far above their pay grades, then we have to talk about the ***** sensation that is Chris Moneymaker.

    ReplyDelete
  44. 샌즈카지노 Whether you think you have what it takes to rub elbows with the pros, or you’re a new player looking for a good place to go from free ***** games to playing some real ***** online, then you’ve come to the right place.

    ReplyDelete
  45. 카지노게임사이트 If you thought you’d seen some heavy mind-gaming and cheeky banter in online ***** rooms or at online ***** tournaments, you’ll love Sebastian Malec’s line he fed Uri Reichenstein before he took first prize at the final table of the EPT (European ***** Tour)

    ReplyDelete
  46. This site seems to inspire me a lot. Thank you so much for organizing and providing this quality information in an easy to understand way. 먹튀검증사이트 I think that a healthy era of big data can be maintained only when such high-quality information is continuously produced. And I, too, are working hard to organize and provide such high-quality information. It would be nice to come in once and get information. 안전놀이터

    ReplyDelete
  47. Yes i am totally agreed with this article and i just want to say that this article is very nice and very informative. More blogs please. 야한동영상

    ReplyDelete
  48. Very comprehensive and informative explanation. Thank you for this amazing post. Love your work 야동

    ReplyDelete
  49. I have loved the micro-story, it is very short and changes the story radically 한국야동닷컴

    ReplyDelete
  50. I was very pleasantly surprised by the short story, the truth is that it reflects a lot in very few words. 일본야동닷컴

    ReplyDelete
  51. Im glad I have taken the time to see this keep up the excellent work 중국야동넷

    ReplyDelete
  52. I¦ve learn a few excellent stuff here. Certainly worth bookmarking for revisiting. I wonder how so much attempt you place to create this type of fantastic informative web site.
    바카라사이트

    ReplyDelete
  53. Awesome dispatch! I am indeed getting apt to over this info, is truly neighborly my buddy. Likewise fantastic blog here among many of the costly info you acquire. Reserve up the beneficial process you are doing here.
    바카라사이트

    ReplyDelete
  54. Intimately, the article is in reality the best on this precious topic. I agree with your conclusions and also can thirstily look forward to your coming updates.
    바카라사이트

    ReplyDelete
  55. Good web site! I truly love how it is simple on my eyes and the data are well written. I am wondering how I might be notified when a new post has been made.
    토토사이트

    ReplyDelete
  56. Excellent read, I just passed this onto a friend who was doing a little research on that. And he actually bought me lunch as I found it for him smile Therefore let me rephrase that: Thank you for lunch. 먹튀신고

    ReplyDelete
  57. Your information was very useful to me. That's exactly what I've been looking for Bóngđộ!

    ReplyDelete
  58. I'm so happy to finally find a post with what I want. 안전놀이터순위 You have inspired me a lot. If you are satisfied, please visit my website and leave your feedback.

    ReplyDelete
  59. The concept of outsourcing a few exercises relating to the company’s day-to-day operations has demonstrated to be an viable strategy of progressing execution in numerous nations. Numerous companies have found it advantageous to kill all divisions that are not straightforwardly related to their essential line of trade: deals, generation, or services. https://www.baltic-legal.com/accountancy-services-eng.htm

    ReplyDelete