Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: ThiagoCMC on January 12, 2012, 09:14:12 PM



Title: CGMiner - restricting clock settings by time (time-based clock setting)
Post by: ThiagoCMC on January 12, 2012, 09:14:12 PM
 Hi!

 I would like to setup the hardware settings, according to the daytime, similar to Squid time-based ACLs (Restricting Web Access By Time (http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch32_:_Controlling_Web_Access_with_Squid#Restricting_Web_Access_By_Time))... For example:

 For each GPU (or maybe for the entire minig rig):

 gpu0-uuid off 07:00-18:30
 gpu0-uuid gpu-clock 500-900 18:30-07:00

 gpu1-uuid off 07:00-18:30
 gpu1-uuid gpu-clock 500-900 18:30-07:00

 gpu2-uuid gpu-clock 500-900 18:30-07:00
 gpu2-uuid gpu-clock 500-930 07:00-18:30

 Trying to simplify, turn off the mining rig 07:00-18:30 and turn it on 18:30-07:00 at full load.

 I can do it from crontab, of course, but, I think it can be awesome to have this feature within CGMiner...

 What about that?!

 5~10 Bitcoins?!

Cheers!
Thiago


Title: Re: CGMiner - restricting clock settings by time (time-based clock setting)
Post by: Remember remember the 5th of November on January 12, 2012, 10:16:25 PM
CGminer already has this built in. Look at cgminer --help


Title: Re: CGMiner - restricting clock settings by time (time-based clock setting)
Post by: ThiagoCMC on January 13, 2012, 12:18:31 AM
CGminer already has this built in. Look at cgminer --help

LOL

I'll check it!!!

Thanks!!


Title: Re: CGMiner - restricting clock settings by time (time-based clock setting)
Post by: stevegee58 on January 13, 2012, 01:10:23 AM
Unless I'm missing something it doesn't look like cgminer does what OP wants.  There's a --sched-start and --sched-stop switch for turning mining on/off.  But not throttling the clock speed based on time.

I'd like to change the intensity based on time of day myself.  For instance when I'm not on the computer at night and while at work I'd like the intensity to be high, but low otherwise.


Title: Re: CGMiner - restricting clock settings by time (time-based clock setting)
Post by: Remember remember the 5th of November on January 13, 2012, 01:29:14 AM
Unless I'm missing something it doesn't look like cgminer does what OP wants.  There's a --sched-start and --sched-stop switch for turning mining on/off.  But not throttling the clock speed based on time.

I'd like to change the intensity based on time of day myself.  For instance when I'm not on the computer at night and while at work I'd like the intensity to be high, but low otherwise.
I see no problem changing intensity when you are going to bed or sleeping. It is fairly easy to do via [G]->->Enter GPU->Enter intensity



Title: Re: CGMiner - restricting clock settings by time (time-based clock setting)
Post by: stevegee58 on January 13, 2012, 01:34:50 AM

I see no problem changing intensity when you are going to bed or sleeping. It is fairly easy to do via [G]->->Enter GPU->Enter intensity

I know but I'm lazy.  I want it automatic like OP.


Title: Re: CGMiner - restricting clock settings by time (time-based clock setting)
Post by: ThiagoCMC on January 13, 2012, 02:43:45 AM
Unless I'm missing something it doesn't look like cgminer does what OP wants.  There's a --sched-start and --sched-stop switch for turning mining on/off.  But not throttling the clock speed based on time.

I'd like to change the intensity based on time of day myself.  For instance when I'm not on the computer at night and while at work I'd like the intensity to be high, but low otherwise.
I see no problem changing intensity when you are going to bed or sleeping. It is fairly easy to do via [G]->->Enter GPU->Enter intensity


I prefer all automatic... Lots of mining rigs to control...

I'll workaround with cron jobs...

But, if someone wants to automatize this routines at CGMiner, lets discuss about it!

Best!
Thiago


Title: Re: CGMiner - restricting clock settings by time (time-based clock setting)
Post by: 3phase on January 13, 2012, 04:43:42 AM
Maybe I'm wrong, but I suppose what you want to do essentially is not to vary the clock settings but to control heat generation and GPU temperatures. I guess it's summer in Brazil, isn't it?

I had a similar issue during the summer here in Greece, with ambient temperatures of about 30-35 C. I went away on a holiday and I did not want to leave the air-conditioning on all day (and thus double my electricity consumption) so I had a setup like this:

  • A cgminer process running with intensity 1 (-I 1) 24 hours a day. This produced around 350 MH/s on a 5870 and acceptable temperatures for the cards.
  • A cron job starting a second cgminer process with intensity 3 (-I 3) during the night (using the --sched-start and --sched-stop switches), when ambient temperatures were lower. When that process kicked in, it was going to 320-330 MH/s while the first one reduced to around 110-120 MH/s, giving me an effective hash rate of about 440 MH/s which is the same like what I got running a single cgminer with intensity 9
  • The clocks were set the same all the time (atitweak -e 950 -m 319 -v 1.08)
Just to be clear, the second process runs on the same cards as the first. This setup worked fine for about a month or so, when I needed it.

It should be simple to implement.

If you actually want to completely turn off some cards for certain day intervals, as your post suggests, then just omit the first cgminer process.

Hope this helps.