Title: Automatic temperature/clock speed control Post by: bcforum on August 01, 2011, 10:26:09 PM Since my miners run unattended in unconditioned space I need to insure they don't get too hot and shutdown (or burn out), so I wrote this script (derived in small part from gputempmon.sh by myrond) to automatically lower the clock if the chip gets too hot, or raise the clock if it is below the maximum frequency.
Code: #!/bin/bash A new version that allows different speeds/temps/enables for adapters (only lightly tested): Code: #!/bin/bash Title: Re: Automatic temperature/clock speed control Post by: Endeavour79 on August 02, 2011, 06:32:44 AM Nice.. Any way to port this to a windows app?
Title: Re: Automatic temperature/clock speed control Post by: bcforum on August 02, 2011, 12:31:40 PM Nice.. Any way to port this to a windows app? Unfortunately, I don't know if ATI offers a command line version in Windows. Something similar could be written (the logic is very simple) but I don't have a platform to develop it on. Title: Re: Automatic temperature/clock speed control Post by: Departure on August 02, 2011, 11:49:18 PM We could make something similar in windows... Would be GUI application for easier settings, or a simple console with .ini file for settings... I might look at it doing something like this soon.
Title: Re: Automatic temperature/clock speed control Post by: simplecoin on August 04, 2011, 05:25:16 AM For anyone who wants a silent box I modified this to adjust fan speed as a second priority to speed. As well as a few display tweaks
Code: #!/bin/bash Title: Re: Automatic temperature/clock speed control Post by: bcforum on August 04, 2011, 11:26:15 AM For anyone who wants a silent box I modified this to adjust fan speed as a second priority to speed. As well as a few display tweaks FYI, I saw issues with executing pplib commands while mining. Occasionally, the hash rate would drop ~20% on one of the adapters, then recover. There seems to be some interaction between phoenix and aticonfig that I haven't had time to dig into. Title: Re: Automatic temperature/clock speed control Post by: simplecoin on August 04, 2011, 04:27:15 PM For anyone who wants a silent box I modified this to adjust fan speed as a second priority to speed. As well as a few display tweaks FYI, I saw issues with executing pplib commands while mining. Occasionally, the hash rate would drop ~20% on one of the adapters, then recover. There seems to be some interaction between phoenix and aticonfig that I haven't had time to dig into. I've seen that as well, when pushing the mhz wall (usually get a few bad shares at that speed too). However, I'm running this script with cgminer and 4x6870s, there are tiny, quick dips in hashrates but usually only when overheating. I'd rather turn up the fans and have a 1sec dip then downclock as a priority. I use it and have no issues, so I shared ;) YMMV Title: Re: Automatic temperature/clock speed control Post by: krzynek1 on August 10, 2011, 11:29:18 AM bcforum, can you modify your script to control only specified adapter ?
this could be useful in cases when user have different clocks for cards Title: Re: Automatic temperature/clock speed control Post by: bcforum on August 11, 2011, 03:41:32 AM bcforum, can you modify your script to control only specified adapter ? this could be useful in cases when user have different clocks for cards Take a look at the OP. I haven't tested it much. Title: Re: Automatic temperature/clock speed control Post by: krzynek1 on August 15, 2011, 09:26:50 AM how do I specify clocks and max temperatures for each adapter ?
is it like this ? Code: TARGETTEMP=(88 90 92 89) Title: Re: Automatic temperature/clock speed control Post by: bcforum on August 15, 2011, 01:01:22 PM how do I specify clocks and max temperatures for each adapter ? is it like this ? Code: TARGETTEMP=(88 90 92 89) Yes, that is exactly right. If you have more adapters than numbers, the last number will be used for all remaining adapters. Title: Re: Automatic temperature/clock speed control Post by: krzynek1 on August 15, 2011, 09:25:16 PM ok, i will try that script, will be reporting, thank you anyway
Title: Re: Automatic temperature/clock speed control Post by: deti on August 17, 2011, 08:04:33 PM I like this security improvement! :)
Am I right that if the current clock is below 500 it will not speed up again? Code: elif [ "$curclk" -lt "500" ]; then What is the purpose of that? Title: Re: Automatic temperature/clock speed control Post by: bcforum on August 18, 2011, 01:41:16 AM I like this security improvement! :) Am I right that if the current clock is below 500 it will not speed up again? Code: elif [ "$curclk" -lt "500" ]; then What is the purpose of that? When my miners went idle the clock would drop to 250MHz. Since the script is (intentionally) stateless, it would attempt to speed the GPUs up and write 251MHz. This was accepted as 500MHz (the minimum clock speed for the 6970). When the miner was started, it would slowly increase speed from 500MHz to 940MHz, taking approximately 1 hour to reach full speed. |