Bitcoin Forum

Bitcoin => Mining => Topic started by: simplecoin on June 15, 2011, 08:09:13 PM



Title: Must have tool for multi-gpu/cpu windows miners!
Post by: simplecoin on June 15, 2011, 08:09:13 PM
WinAFC - http://affinitychanger.sourceforge.net/ (http://affinitychanger.sourceforge.net/)

It's not my program, but I find it VERY useful.

This will keep all of your miners on one cpu, and not keep your other cores running at 100%.
Since I have a 6core workstation, having 4 miners open ties up 4 cores. Not anymore.
Less CPU utilization also equals less power consumption

My config file for demonstration:
E:\Program Files (x86)\GUIMiner\guiminer\phoenix.exe := CPU1
E:\Program Files (x86)\GUIMiner\guiminer\poclbm.exe := CPU1

Enjoy!


Title: Re: Must have tool for multi-gpu/cpu windows miners!
Post by: kokojie on June 15, 2011, 08:21:03 PM
great find if it works, I will try it when I get home


Title: Re: Must have tool for multi-gpu/cpu windows miners!
Post by: [Coins!] on June 15, 2011, 08:26:53 PM
I have been looking for something like this.  Will try at home.


Title: Re: Must have tool for multi-gpu/cpu windows miners!
Post by: hex on June 15, 2011, 08:32:00 PM
Why you need that ? For me poclbm eats less then 1% CPU.


Title: Re: Must have tool for multi-gpu/cpu windows miners!
Post by: vanfront on June 15, 2011, 08:56:25 PM
Setting CPU affinity is a kind of a "last resort" solution. With a GPU miner you don't need it at all because it consumes virtually no CPU resources. With CPU mining, if you really want it, you can use start /low <your miner.exe> to run it with low priority. On modern systems like Win 7 you will barely notice something's consuming your CPU's idle time.


Title: Re: Must have tool for multi-gpu/cpu windows miners!
Post by: simplecoin on June 15, 2011, 09:05:30 PM
Why you need that ? For me poclbm eats less then 1% CPU.

Well, in my case, using stream 2.4 in windows 7 64bit, each opencl program will go full bore for a whole cpu WHILE GPU MINING if you let it. So, with my usual 4 miners open I get 4 cpus at 100%

On my linux miner, hashkill uses 1-2% cpu, same with phoenix and poclbm.


Title: Re: Must have tool for multi-gpu/cpu windows miners!
Post by: kokojie on June 16, 2011, 12:48:23 AM
WinAFC - http://affinitychanger.sourceforge.net/ (http://affinitychanger.sourceforge.net/)

It's not my program, but I find it VERY useful.

This will keep all of your miners on one cpu, and not keep your other cores running at 100%.
Since I have a 6core workstation, having 4 miners open ties up 4 cores. Not anymore.
Less CPU utilization also equals less power consumption

My config file for demonstration:
E:\Program Files (x86)\GUIMiner\guiminer\phoenix.exe := CPU1
E:\Program Files (x86)\GUIMiner\guiminer\poclbm.exe := CPU1

Enjoy!


Tested and IT WORKS like a charm. Finally I can stop setting CPU affinity after each reboot. Man there's a proggy for everything.


Title: Re: Must have tool for multi-gpu/cpu windows miners!
Post by: phorensic on June 16, 2011, 01:09:57 AM
The latest version of GUI Miner has built in affinity options.  Windows 7 64-bit, Cat 11.5 and Stream 2.4 on my rig makes each miner use a "fake" 100% CPU on all cores.  Despite plenty of complaints this bug has still not been fixed in poclbm/phatk/etc.  When I set all my miners to a single core in GUI Miner I use less power and generate less heat (on the remaining cores).


Title: Re: Must have tool for multi-gpu/cpu windows miners!
Post by: faille on June 16, 2011, 04:29:43 AM
The latest version of GUI Miner has built in affinity options.  Windows 7 64-bit, Cat 11.5 and Stream 2.4 on my rig makes each miner use a "fake" 100% CPU on all cores.  Despite plenty of complaints this bug has still not been fixed in poclbm/phatk/etc.  When I set all my miners to a single core in GUI Miner I use less power and generate less heat (on the remaining cores).

its more a drive bug / feature on ATI's end I believe.


Title: Re: Must have tool for multi-gpu/cpu windows miners!
Post by: ensign_lee on June 16, 2011, 05:00:04 AM
Why you need that ? For me poclbm eats less then 1% CPU.

Not with opencl and multiple GPUs. With 2 GPUs and 2 workers for each (1 backup), I use 100% of my i5-2500k ALL THE TIME. If this works, that'd be AWESOME!


Title: Re: Must have tool for multi-gpu/cpu windows miners!
Post by: lvlrdka22 on June 16, 2011, 09:14:18 AM
Eh.

Code:
#include <constants.au3>
#include <winapi.au3>
#include <windowsconstants.au3>

global $core=0

while 1
$list=processlist("phoenix.exe")
for $i=1 to $list[0][0]
$processhandle=_winapi_openprocess($process_all_access,false,$list[$i][1])
_winapi_setprocessaffinitymask($processhandle,affinitymask($core))
_winapi_closehandle($processhandle)
next
sleep(10)
wend

func affinitymask($c)
return bitor(0,2^int($c))
endfunc

Compile that, and set it to run on startup.


Title: Re: Must have tool for multi-gpu/cpu windows miners!
Post by: Waltibaba on June 16, 2011, 10:04:22 AM
I've been using prifinnity. low overhead, can be set on startup, overrides task manager.


Title: Re: Must have tool for multi-gpu/cpu windows miners!
Post by: qed on June 16, 2011, 01:11:40 PM
Why don't you just use:

Code:
start /affinity 1 poclbm.exe...