Forcing machine to run at a certain temperature - Server Fault most recent 30 from serverfault.com2010-03-22T04:27:56Zhttp://serverfault.com/feeds/question/9493http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://serverfault.com/questions/9493/forcing-machine-to-run-at-a-certain-temperature0Forcing machine to run at a certain temperaturevictorhttp://serverfault.com/users/02009-05-18T15:41:03Z2009-05-18T15:41:03Z
<p>Hi,</p>
<p>This isn't entirely a programming question but, how would one make a computer run at an inputted temperature? The machines will be running Linux for a heatsink design project.</p>
http://serverfault.com/questions/9493/forcing-machine-to-run-at-a-certain-temperature/9494#94941Answer by OregonGhost for Forcing machine to run at a certain temperatureOregonGhosthttp://serverfault.com/users/02009-05-18T15:41:03Z2009-05-18T15:41:03Z<p>Write a program that uses all your CPU, making it hot. Once in a while in the loop, check the CPU temperature sensor (of course you must have one then) and if the target temperature is reached, pause the "hot" operation until the temperature has fallen below the target temperature.</p>
http://serverfault.com/questions/9493/forcing-machine-to-run-at-a-certain-temperature/9495#94950Answer by Nick Fortescue for Forcing machine to run at a certain temperatureNick Fortescuehttp://serverfault.com/users/29582009-05-18T15:41:03Z2009-05-18T15:41:03Z<p>If you want to measure CPU temperature the <a href="http://www.lm-sensors.org/" rel="nofollow">lm-sensors</a> is a library you might want to look at.</p>
<p>Then use the CPU aggressively to heat it up until the desired target is reached. You'll probably want to make sure this program is multithreaded to really push the CPU, and then do something mathematical in each thread. Something like <a href="http://www.oxixares.com/glucas/" rel="nofollow">Glucas</a> will work.</p>
<p>Then when the desired temperature is reached stop stretching the CPU.</p>
<p>An even more sophisticated design would reduce or increase the load (rather than just on or off) as the temperature was different distances from the target temperature.</p>
http://serverfault.com/questions/9493/forcing-machine-to-run-at-a-certain-temperature/9496#94963Answer by pjc50 for Forcing machine to run at a certain temperaturepjc50http://serverfault.com/users/02009-05-18T15:41:03Z2009-05-18T15:41:03Z<p>Why risk a computer? Get a temperature controlled hotplate.</p>
<p>Some CPUs have their own internal thermal limiting and some don't. Over-temperature on the latter can cause permanent damage.</p>
http://serverfault.com/questions/9493/forcing-machine-to-run-at-a-certain-temperature/9497#94970Answer by kylef for Forcing machine to run at a certain temperaturekylefhttp://serverfault.com/users/02009-05-18T15:41:03Z2009-05-18T15:41:03Z<p>There is a program called cpuburn, it can be found at: <a href="http://pages.sbcglobal.net/redelm/" rel="nofollow">http://pages.sbcglobal.net/redelm/</a></p>
<p>This program is designed to heavily load a cpu (creating heat), there are different versions for each cpu, as there are more effective ways to do it on each cpu. </p>
<p>The source code is included, take a look at that.</p>