Bitcoin Forum
December 11, 2016, 08:31:57 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: « 1 ... 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 [61] 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 ... 830 »
  Print  
Author Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.9.2  (Read 4827992 times)
This is a self-moderated topic. If you do not want to be moderated by the person who started this topic, create a new topic.
PLaci1982
Full Member
***
Offline Offline

Activity: 168


Live long and prosper. \\//,


View Profile
September 05, 2011, 07:39:35 AM
 #1201

crashes after I run cgminer

and answer the first 4 qquestions..

After password..  hit enter..  crashes the window..

any ideas?

Im win 7 64.
Short answer: You should make yourself familiar with the command line.

Hardware Expert / WinXP, Win7 Expert

1J5oPkyGVdb4mv44KGZQYsHS2ch6e1t4rc
1481445117
Hero Member
*
Offline Offline

Posts: 1481445117

View Profile Personal Message (Offline)

Ignore
1481445117
Reply with quote  #2

1481445117
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481445117
Hero Member
*
Offline Offline

Posts: 1481445117

View Profile Personal Message (Offline)

Ignore
1481445117
Reply with quote  #2

1481445117
Report to moderator
1481445117
Hero Member
*
Offline Offline

Posts: 1481445117

View Profile Personal Message (Offline)

Ignore
1481445117
Reply with quote  #2

1481445117
Report to moderator
Ghostofkobra
Full Member
***
Offline Offline

Activity: 167



View Profile
September 05, 2011, 08:50:41 AM
 #1202

Hi,
I have been seeing some crashes both when running cpu only and with cpu+gpu mining.
Here is the output from a cpu-only run that crashed, does it make any sense to anyone?
Most often it takes many hours before they crash.

cgminer v 1.6.1 (1.6.2 also crashes)
The computer is a dual cpu intel quad core
os: RHEL 5.3 (seen similar on CentoOs 5.4)


Best
/GoK


Code:
[2010-09-01 18:35:44] Converted longpoll data to work
[2010-09-01 18:35:44] New block detected on network before longpoll, waiting on fresh work
[2010-09-01 18:35:44] Popping work from get queue to get work
[2010-09-01 18:35:44] Discarded work
[2010-09-01 18:35:44] Discarded work
[2010-09-01 18:35:44] Discarded work*** glibc detected *** ./cgminer: double free or corruption (!prev): 0x000000001cebd450 ***
                                                                                                                               ======= Backtrace: =========
                                                                                                                                                           /lib64/libc.so.6[0x3a2fc71ce2]
       /lib64/libc.so.6(cfree+0x8c)[0x3a2fc7590c]
                                                 ./cgminer[0x4086ef]
                                                                    /lib64/libpthread.so.0[0x3a30806367]
                                                                                                        /lib64/libc.so.6(clone+0x6d)[0x3a2fcd30ad]
                                                                                                                                                  ======= Memory map: ========
                                                                                                                                                                              00400000-00430000 r-xp 00000000 08:01 5767673                            /home/miner/miners/cgminer-1.6.1/cgminer
                                                                                                               0062f000-00631000 rwxp 0002f000 08:01 5767673                            /home/miner/miners/cgminer-1.6.1/cgminer
                                                00631000-00634000 rwxp 00631000 00:00 0
                                                                                        1cdf3000-1cf03000 rwxp 1cdf3000 00:00 0                                  [heap]
                                                                                                                                                                       40dc7000-40dc8000 ---p 40dc7000 00:00 0
                             40dc8000-417c8000 rwxp 40dc8000 00:00 0
                                                                     417c8000-417c9000 ---p 417c8000 00:00 0
                                                                                                             417c9000-421c9000 rwxp 417c9000 00:00 0
                                                                                                                                                     421c9000-421ca000 ---p 421c9000 00:00 0
           421ca000-42bca000 rwxp 421ca000 00:00 0
                                                   42bca000-42bcb000 ---p 42bca000 00:00 0
                                                                                           42bcb000-435cb000 rwxp 42bcb000 00:00 0
                                                                                                                                   435cb000-435cc000 ---p 435cb000 00:00 0
                                                                                                                                                                           435cc000-43fcc000 rwxp 435cc000 00:00 0
                                 43fcc000-43fcd000 ---p 43fcc000 00:00 0
                                                                         43fcd000-449cd000 rwxp 43fcd000 00:00 0
                                                                                                                 449cd000-449ce000 ---p 449cd000 00:00 0
                                                                                                                                                         449ce000-453ce000 rwxp 449ce000 00:00 0
               453ce000-453cf000 ---p 453ce000 00:00 0
                                                       453cf000-45dcf000 rwxp 453cf000 00:00 0
                                                                                               45dcf000-45dd0000 ---p 45dcf000 00:00 0
                                                                                                                                       45dd0000-467d0000 rwxp 45dd0000 00:00 0
                                                                                                                                                                               467d0000-467d1000 ---p 467d0000 00:00 0
                                     467d1000-471d1000 rwxp 467d1000 00:00 0
                                                                             471d1000-471d2000 ---p 471d1000 00:00 0
                                                                                                                     471d2000-47bd2000 rwxp 471d2000 00:00 0
                                                                                                                                                             47bd2000-47bd3000 ---p 47bd2000 00:00 0
                   47bd3000-485d3000 rwxp 47bd3000 00:00 0
                                                           485d3000-485d4000 ---p 485d3000 00:00 0
                                                                                                   485d4000-48fd4000 rwxp 485d4000 00:00 0
                                                                                                                                           499d5000-499d6000 ---p 499d5000 00:00 0
 499d6000-4a3d6000 rwxp 499d6000 00:00 0
                                         4a3d6000-4a3d7000 ---p 4a3d6000 00:00 0
                                                                                 4a3d7000-4add7000 rwxp 4a3d7000 00:00 0
                                                                                                                         4b7d8000-4b7d9000 ---p 4b7d8000 00:00 0
                                                                                                                                                                 4b7d9000-4c1d9000 rwxp 4b7d9000 00:00 0
                       4cbda000-4cbdb000 ---p 4cbda000 00:00 0
                                                               4cbdb000-4d5db000 rwxp 4cbdb000 00:00 0
                                                                                                       34fcc00000-34fcc31000 r-xp 00000000 08:01 6219316                        /usr/lib64/libidn.so.11.5.19
                          34fcc31000-34fce30000 ---p 00031000 08:01 6219316                        /usr/lib64/libidn.so.11.5.19
                                                                                                                               34fce30000-34fce31000 rwxp 00030000 08:01 6219316                        /usr/lib64/libidn.so.11.5.19
                                                  34fd000000-34fd00d000 r-xp 00000000 08:01 6219383                        /usr/lib64/liblber-2.3.so.0.2.31
                                                                                                                                                           34fd00d000-34fd20d000 ---p 0000d000 08:01 6219383                        /usr/lib64/liblber-2.3.so.0.2.31
                                                                                  34fd20d000-34fd20e000 rwxp 0000d000 08:01 6219383                        /usr/lib64/liblber-2.3.so.0.2.31
         34fd400000-34fd438000 r-xp 00000000 08:01 6219384                        /usr/lib64/libldap-2.3.so.0.2.31
                                                                                                                  34fd438000-34fd638000 ---p 00038000 08:01 6219384                        /usr/lib64/libldap-2.3.so.0.2.31
                                         34fd638000-34fd63a000 rwxp 00038000 08:01 6219384                        /usr/lib64/libldap-2.3.so.0.2.31
                                                                                                                                                  3a2f800000-3a2f81c000 r-xp 00000000 08:01 23462193                       /lib64/ld-2.5.so
                                                         3a2fa1b000-3a2fa1c000 r-xp 0001b000 08:01 23462193                       /lib64/ld-2.5.so
                                                                                                                                                  3a2fa1c000-3a2fa1d000 rwxp 0001c000 08:01 23462193                       /lib64/ld-2.5.so
                                                         3a2fc00000-3a2fd4c000 r-xp 00000000 08:01 23462194                       /lib64/libc-2.5.so
                                                                                                                                                    3a2fd4c000-3a2ff4c000 ---p 0014c000 08:01 23462194                       /lib64/libc-2.5.so
                                                             3a2ff4c000-3a2ff50000 r-xp 0014c000 08:01 23462194                       /lib64/libc-2.5.so
                                                                                                                                                        3a2ff50000-3a2ff51000 rwxp 00150000 08:01 23462194                       /lib64/libc-2.5.so
                                                                 3a2ff51000-3a2ff56000 rwxp 3a2ff51000 00:00 0
                                                                                                               3a30400000-3a30402000 r-xp 00000000 08:01 23462195                       /lib64/libdl-2.5.so
                         3a30402000-3a30602000 ---p 00002000 08:01 23462195                       /lib64/libdl-2.5.so
                                                                                                                     3a30602000-3a30603000 r-xp 00002000 08:01 23462195                       /lib64/lAborted


Coin Reaper @ http://coinreaper.com - Your expressway to FREE Bitcoins!
Bunny Run @ http://bunnyrun.us and win every time. No Bets required
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2002


Ruu \o/


View Profile WWW
September 05, 2011, 09:17:24 AM
 #1203

Buggy libraries in old distributions.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
Pooled mine at kano.is, solo mine at solo.ckpool.org
-ck
BadPenny
Member
**
Offline Offline

Activity: 70



View Profile
September 05, 2011, 05:04:33 PM
 #1204

I've been using guiminer, but about three days ago I switched to cgminer.  Shocked  Stales percentage dropped significantly.  I'm wishing I had done this a long time ago.

Can someone tell me how to setup a fallback pool in this .bat file:
cgminer.exe -o http://173.193.21.69:8337 -u user -p password -v 2 -w 128

I owe my soul to the company store.
phase
Jr. Member
*
Offline Offline

Activity: 49



View Profile
September 05, 2011, 05:13:14 PM
 #1205

Can someone tell me how to setup a fallback pool in this .bat file:
cgminer.exe -o http://173.193.21.69:8337 -u user -p password -v 2 -w 128

You can specify additional pools by repeating the arguments (second, third,... dataset with -o -u -p arguments). Alternatively you can specify these in configuration files and simply add -c 1.cfg -c 2.cfg -c 3.cfg etc.
BadPenny
Member
**
Offline Offline

Activity: 70



View Profile
September 05, 2011, 05:21:26 PM
 #1206

Can someone tell me how to setup a fallback pool in this .bat file:
cgminer.exe -o http://173.193.21.69:8337 -u user -p password -v 2 -w 128

You can specify additional pools by repeating the arguments (second, third,... dataset with -o -u -p arguments). Alternatively you can specify these in configuration files and simply add -c 1.cfg -c 2.cfg -c 3.cfg etc.
So, that would be:

cgminer.exe -o http://arsbitcoin.com:8344 -u user -p password -v 2 -w 128
cgminer.exe -o http://mtred.com:8337 -u user -p password -v 2 -w 128

?
I've tried doing it from within the cgminer console, but I'm still unfamiliar with the commands.

Thanks, by the way.

I owe my soul to the company store.
phase
Jr. Member
*
Offline Offline

Activity: 49



View Profile
September 05, 2011, 05:24:00 PM
 #1207

No, that will launch multiple instances. Just repeat the parameters with different data:

cgminer.exe -o http://arsbitcoin.com:8344 -u user -p password -o http://mtred.com:8337 -u user -p password -v 2 -w 128

Np btw, and welcome to the cgminer crowd Wink
BadPenny
Member
**
Offline Offline

Activity: 70



View Profile
September 05, 2011, 05:35:33 PM
 #1208

No, that will launch multiple instances. Just repeat the parameters with different data:

cgminer.exe -o http://arsbitcoin.com:8344 -u user -p password -o http://mtred.com:8337 -u user -p password -v 2 -w 128

Np btw, and welcome to the cgminer crowd Wink
Awesome, and thanks!   Smiley

guiminer:  ~3.5% stales in about any pool
cgminer:   ~0.3% stales (smaller sample size, of course)

I owe my soul to the company store.
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2002


Ruu \o/


View Profile WWW
September 06, 2011, 12:12:47 AM
 #1209

No, that will launch multiple instances. Just repeat the parameters with different data:

cgminer.exe -o http://arsbitcoin.com:8344 -u user -p password -o http://mtred.com:8337 -u user -p password -v 2 -w 128

Np btw, and welcome to the cgminer crowd Wink
Awesome, and thanks!   Smiley

guiminer:  ~3.5% stales in about any pool
cgminer:   ~0.3% stales (smaller sample size, of course)
Nice feedback, thanks =)

Primary developer/maintainer for cgminer and ckpool/ckproxy.
Pooled mine at kano.is, solo mine at solo.ckpool.org
-ck
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2002


Ruu \o/


View Profile WWW
September 06, 2011, 04:14:48 AM
 #1210

MASSIVE UPGRADE VERSION 2.0 - Links in top post

Major feature upgrade - GPU monitoring, (over)clocking and fan control for ATI
GPUs.

Executive summary:
You have to make sure the display for all devices is exported on linux for all cards to be seen with "export DISPLAY=:0". NFI what you need to do on windows.

Add overclocking settings, GPU and fan control for all cards:

cgminer -o http://pool:port -u username -p password -I 9 --auto-fan --auto-gpu --gpu-engine 950 --gpu-memclock 300

Add overclocking settings, GPU and fan control with different engine settings for 4 cards:

cgminer -o http://pool:port -u username -p password -I 9 --auto-fan --auto-gpu --gpu-engine 950,945,930,960 --gpu-memclock 300

---

New command line switches:
--auto-fan          Automatically adjust all GPU fan speeds to maintain a target
temperature
--auto-gpu          Automatically adjust all GPU engine clock speeds to maintain
a target temperature
--gpu-engine <arg>  Set the GPU engine (over)clock in Mhz - one value for all or
separate by commas for per card.
--gpu-fan <arg>     Set the GPU fan percentage - one value for all or separate
by commas for per card.
--gpu-memclock <arg> Set the GPU memory (over)clock in Mhz - one value for all
or separate by commas for per card.
--gpu-powertune <arg> Set the GPU powertune percentage - one value for all or
separate by commas for per card.
--gpu-vddc <arg>    Set the GPU voltage in Volts - one value for all or separate
by commas for per card.
--temp-hysteresis <arg> Set how much the temperature can fluctuate outside
limits when automanaging speeds (default: 3)
--temp-overheat <arg> Set the overheat temperature when automatically managing
fan and GPU speeds (default: 85)
--temp-target <arg> Set the target temperature when automatically managing fan
and GPU speeds (default: 75)

---
OVERCLOCKING WARNING AND INFORMATION

AS WITH ALL OVERCLOCKING TOOLS YOU ARE ENTIRELY RESPONSIBLE FOR ANY HARM YOU
MAY CAUSE TO YOUR HARDWARE. OVERCLOCKING CAN INVALIDATE WARRANTIES, DAMAGE
HARDWARE AND EVEN CAUSE FIRES. THE AUTHOR ASSUMES NO RESPONSIBILITY FOR ANY
DAMAGE YOU MAY CAUSE OR UNPLANNED CHILDREN THAT MAY OCCUR AS A RESULT.

The GPU monitoring, clocking and fanspeed control incorporated into cgminer
comes through use of the ATI Display Library. As such, it only supports ATI
GPUs. Even if ADL support is successfully built into cgminer, unless the card
and driver supports it, no GPU monitoring/settings will be available.

Cgminer supports initial setting of GPU engine clock speed, memory clock
speed, voltage, fanspeed, and the undocumented powertune feature of 69x0+ GPUs.
The setting passed to cgminer is used by all GPUs unless separate values are
specified. All settings can all be changed within the menu on the fly on a
per-GPU basis.

For example:
--gpu-engine 950 --gpu-memclock 825

will try to set all GPU engine clocks to 950 and all memory clocks to 825,
while:
--gpu-engine 950,945,930,960 --gpu-memclock 300

will try to set the engine clock of card 0 to 950, 1 to 945, 2 to 930, 3 to
960 and all memory clocks to 825.

AUTO MODES:
There are two "auto" modes in cgminer, --auto-fan and --auto-gpu. These can
be used independently of each other and are complementary. Both auto modes
are designed to safely change settings while trying to maintain a target
temperature. By default this is set to 75 degrees C but can be changed with:
--temp-target

AUTO FAN:
Fan control in auto fan works off the theory that the minimum possible fan
required to maintain an optimal temperature will use less power, make less
noise, and prolong the life of the fan. In auto-fan mode, the fan speed is
limited to 85% if the temperature is below "overheat" intentionally, as
higher fanspeeds on GPUs do not produce signficantly more cooling, yet
significanly shorten the lifespan of the fans. If temperature reaches the
overheat value, fanspeed will still be increased to 100%. The overheat value
is set to 85 degrees by default and can be changed with:
--temp-overheat

AUTO GPU:
GPU control in auto gpu tries to maintain as high a clock speed as possible
while not reaching overheat temperatures. As a lower clock speed limit,
the auto-gpu mode checks the GPU card's "normal" clock speed and will not go
below this unless you have manually set a lower speed at some time. Also,
unless a higher clock speed was specified at startup, it will not raise the
clockspeed. If the temperature climbs, fanspeed is adjusted and optimised
before GPU engine clockspeed is adjusted. If fan speed control is not available
or already optimal, then GPU clock speed is only decreased if it goes over
the target temperature by the hysteresis amount, which is set to 3 by default
and can be changed with:
--temp-hysteresis
If the temperature drops below the target temperature, and engine clock speed
is not at the highest level set at startup, cgminer will raise the clock speed.
If at any time you manually set an even higher clock speed successfully in
cgminer, it will record this value and use it as its new upper limit (and the
same for low clock speeds and lower limits).

CHANGING SETTINGS:
When setting values, it is important to realise that even though the driver
may report the value was changed successfully, and the new card power profile
information contains the values you set it to, that the card itself may
refuse to use those settings. As the performance profile changes dynamically,
querying the "current" value on the card can be wrong as well. So when changing
values in cgminer, after a pause of 1 second, it will report to you the current
values where you should check that your change has taken. An example is that
6970 reference cards will accept low memory values but refuse to actually run
those lower memory values unless they're within 125 of the engine clock speed.
In that scenario, they usually set their real speed back to their default.

STARTUP / SHUTDOWN:
When cgminer starts up, it tries to read off the current profile information
for clock and fan speeds and stores these values. When quitting cgminer, it
will then try to restore the original values. Changing settings outside of
cgminer while it's running may be reset to the startup cgminer values when
cgminer shuts down because of this.

---
Full changelog:

- Implement ATI ADL support for GPU parameter monitoring now and setting later
(temp, fan, clocks etc.).
- Check for the presence of the ADL header files in ADL_SDK.
- Import adl_functions.h from amd overdrive ctrl.
- Implement a setup function that tries to detect GPUs that support the ADL and
link in the parameters into the gpus struct.
- Put a summary of monitoring information from the GPU menu.
- Implement changing memory speed and voltage on the fly.
- Implement fan speed setting.
- Minor corrections to set fan speed by percentage.
- Make sure to read off the value in RPM only.
- Implement auto fanspeed adjustment to maintain a target temperature and
fanspeed below 85%, with an overheat check that will speed the fan up to 100%.
- Add an --auto-fan command line option to allow all GPUs to have autofan
enabled from startup.
- Add a gpu autotune option which adjusts GPU speed to maintain a target
temperature within the bounds of the default GPU speed and any overclocking set.
- Avoid a dereference if the longpoll thread doesn't exist.
- Clean up by setting performance profiles and fan settings to startup levels on
exit.
- Add a small amount of hysteresis before lowering clock speed.
- Allow target, overheat and hysteresis temperatures to be set from command
line.
- Combine all stats collating into one function to avoid repeating function
calls on each variable.
- Add gpu statistics to debugging output via the watchdog thread.
- Implement menus to change temperature limits.
- Implement setting the GPU engine clock speed of all devices or each device as
a comma separated value.
- Implement setting the GPU memory clock speed of all devices or each device as
a comma separated value.
- Implement setting the GPU voltage of all devices or each device as a comma
separated value.
- Implement setting the GPU fan speed of all devices or each device as a comma
separated value.
- Add support for monitoring powertune setting.
- Implement changing of powertune value from the GPU change settings menu.
- Get the value of powertune in get_stats.
- Implement setting the GPU powertune value of all devices or each device as a
comma separated value.
- Remove the safety checks in speed setting since confirmation is done first in
the menu, then show the new current values after a short pause.
- Force the speed to high on startup and restore it to whatever the setting was
on exit.
- Add temperature to standard output where possible and use more compact output.
- Move and print at the same time in curses to avoid random trampling display
errors.
- Update the status window only from the watchdog thread, do not rewrite the top
status messages and only refresh once all the status window is complete,
clearing the window each time to avoid corruption.
- Set a safe starting fan speed if we're automanaging the speeds.
- Provide locking around all adl calls to prevent races.
- Lower profile settings cannot be higher than higher profile ones so link any
drops in settings.
- Add new needed text files to distribution.
- Queue requests ignoring the number of staged clones since they get discarded
very easily leading to false positives for pool not providing work fast enough.
- Include libgen.h in opt.c to fix win32 compilation warnings.
- Fix compilation warning on win32.
- Add the directory name from the arguments cgminer was called from as well to
allow it running from a relative pathname.
- Add a --disable-adl option to configure and only enable it if opencl support
exists.
- Retry before returning a failure to get upstream work as a failure to avoid
false positives for pool dead.
- Retry also if the decoding of work fails.
- Use the presence of X-Roll-Ntime in the header as a bool for exists unless N
is found in the response.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
Pooled mine at kano.is, solo mine at solo.ckpool.org
-ck
SleeperUnit
Jr. Member
*
Offline Offline

Activity: 52


View Profile
September 06, 2011, 04:16:25 AM
 #1211

My appologies for being such a perfectionist prick but I think the quoted post might be useful to several people and so ...

If anyone is interested, thought this might be helpful to some.

If you run Cgminer on Windows 7 (should work on other versions) this startup .cmd will launch Cgminer using only one CPU core and outputs log info to a log file that has the date and time in the filename.

Open notepad.exe and put the following in (changing username and password and your servers of course):

Code:
rem del /F /Q *.bin

start /B /affinity 8 cgminer -o http://yourprimaryserver:port -u yourworkername -p your password -o http://yourbackupserver:port -u yourworkername -p yourpassword -I 9 2>"%date:~4,2%-%date:~7,2%-%date:~12,2%%time:~0,2%-%time:~3,2%-%time:~6,2%.log"

pause

This will use core number 4.

1st core = 1
2nd core = 2
3rd core = 4
4th core = 8
5th core = H ( hexadecimal 16 )
6th core = 1H ( hexadecimal 32 )

now if you want something to run on just one core, you pick the right number like this, just multiply by 2 until you get to the core you want.

if you want something to run on two cores, you ADD their values:

1st and 2nd core = 1 + 2 = 3
1st and 3rd core = 1 + 4 = 5
2nd and 3rd core = 2 + 4 = 6
2nd and 4th core = 2 + 8 = 10

Same thing if you want more than two cores, just add each core numerical value up and use the sum as the /affinity parameter


Close but there is no such thing as H in hex.

Here are the correct hex numbers for the cores:
1st core = 1
2nd core = 2
3rd core = 4
4th core = 8
5th core = 10
6th core = 20
7th core = 40
8th core = 80
9th core = 100
10th core = 200
11th core = 400
12th core = 800
13th core = 1000
14th core = 2000
15th core = 4000
16th core = 8000
etc.

You probably notice a pattern forming by this point.

Oh and to allow the 2nd and 4th cores use: 2 + 8 = A (not 10)
The same way, if for some bizarre reason you wanted to use all of the non-prime cores in a 12 core system (1,4,6,8,9,10,12) you just need to add their corresponding hex values:
1 + 8 + 20 + 80 + 100 + 200 + 800 = BA9
sharky112065
Sr. Member
****
Offline Offline

Activity: 383



View Profile
September 06, 2011, 05:25:23 AM
 #1212

My appologies for being such a perfectionist prick but I think the quoted post might be useful to several people and so ...

If anyone is interested, thought this might be helpful to some.

If you run Cgminer on Windows 7 (should work on other versions) this startup .cmd will launch Cgminer using only one CPU core and outputs log info to a log file that has the date and time in the filename.

Open notepad.exe and put the following in (changing username and password and your servers of course):

Code:
rem del /F /Q *.bin

start /B /affinity 8 cgminer -o http://yourprimaryserver:port -u yourworkername -p your password -o http://yourbackupserver:port -u yourworkername -p yourpassword -I 9 2>"%date:~4,2%-%date:~7,2%-%date:~12,2%%time:~0,2%-%time:~3,2%-%time:~6,2%.log"

pause


This will use core number 4.

1st core = 1
2nd core = 2
3rd core = 4
4th core = 8
5th core = H ( hexadecimal 16 )
6th core = 1H ( hexadecimal 32 )

now if you want something to run on just one core, you pick the right number like this, just multiply by 2 until you get to the core you want.

if you want something to run on two cores, you ADD their values:

1st and 2nd core = 1 + 2 = 3
1st and 3rd core = 1 + 4 = 5
2nd and 3rd core = 2 + 4 = 6
2nd and 4th core = 2 + 8 = 10

Same thing if you want more than two cores, just add each core numerical value up and use the sum as the /affinity parameter


Close but there is no such thing as H in hex.

Here are the correct hex numbers for the cores:
1st core = 1
2nd core = 2
3rd core = 4
4th core = 8
5th core = 10
6th core = 20
7th core = 40
8th core = 80
9th core = 100
10th core = 200
11th core = 400
12th core = 800
13th core = 1000
14th core = 2000
15th core = 4000
16th core = 8000
etc.

You probably notice a pattern forming by this point.

Oh and to allow the 2nd and 4th cores use: 2 + 8 = A (not 10)
The same way, if for some bizarre reason you wanted to use all of the non-prime cores in a 12 core system (1,4,6,8,9,10,12) you just need to add their corresponding hex values:
1 + 8 + 20 + 80 + 100 + 200 + 800 = BA9

As one of the several people; thank you. I copied and pasted that part without really checking it in detail. I edited my original post.

Donations welcome: 12KaKtrK52iQjPdtsJq7fJ7smC32tXWbWr
miscreanity
Legendary
*
Offline Offline

Activity: 1078


View Profile
September 06, 2011, 05:52:13 AM
 #1213

MASSIVE UPGRADE VERSION 2.0 - Links in top post

You've outdone yourself!

Testing now and it's a beaut so far, especially the temperature display and virtually non-existent rejects since 1.6.x. Should have more on stats after several hours.
freakfantom
Member
**
Offline Offline

Activity: 73



View Profile
September 06, 2011, 06:19:08 AM
 #1214

wow what an update! gone testing! Smiley

P.S. ckolivas, why do you use --auto-gpu and --gpu-engine 950 together in your example? how is it possible together auto and non-auto gpu? is there a reason? Wink
-ck
Moderator
Legendary
*
Offline Offline

Activity: 2002


Ruu \o/


View Profile WWW
September 06, 2011, 07:56:46 AM
 #1215

wow what an update! gone testing! Smiley

P.S. ckolivas, why do you use --auto-gpu and --gpu-engine 950 together in your example? how is it possible together auto and non-auto gpu? is there a reason? Wink
You need to tell it what speed you actually want auto-gpu to go up to...

I thought I covered all that in the extensive README.  Undecided

Primary developer/maintainer for cgminer and ckpool/ckproxy.
Pooled mine at kano.is, solo mine at solo.ckpool.org
-ck
freakfantom
Member
**
Offline Offline

Activity: 73



View Profile
September 06, 2011, 08:30:01 AM
 #1216

only one gpu temperature is visible. i use windows 7 x64. i'm not sure but i think custom overclocking settings are applied only for this gpu only as well..

-ck
Moderator
Legendary
*
Offline Offline

Activity: 2002


Ruu \o/


View Profile WWW
September 06, 2011, 08:41:30 AM
 #1217

You have to make sure the display for all devices is exported on linux for all cards to be seen with "export DISPLAY=:0". NFI what you need to do on windows.

Primary developer/maintainer for cgminer and ckpool/ckproxy.
Pooled mine at kano.is, solo mine at solo.ckpool.org
-ck
The LT
Full Member
***
Offline Offline

Activity: 188



View Profile WWW
September 06, 2011, 08:46:29 AM
 #1218

cgminer -c /etc/cgminer/itzod.json --auto-fan --gpu-engine=840 --gpu-memclock=300

Sep  6 12:44:39 lt cgminer: cgminer: --auto-fan: unrecognized option

Just cloned from the repo.
The LT
Full Member
***
Offline Offline

Activity: 188



View Profile WWW
September 06, 2011, 09:15:23 AM
 #1219

Well, I did try the new version but it doesn't work for me at all. When I use a config file, it crash/reboots my system. The --auto-fan is a non-existent option and running it from command-line just locks up the console with no output whatsoever.
phase
Jr. Member
*
Offline Offline

Activity: 49



View Profile
September 06, 2011, 09:24:06 AM
 #1220

Wow Con, you've really outdone yourself this time! That looks like a jaw-dropping changelog, more than I could have ever dreamed of. This level of control should theoretically allow for 100% stable mining since all factors are now taken into account and adjusted towards a stable mining process. This is exactly what I was looking for, I'm leaving on vacation for Mexico in two weeks, it will be nice to know that cgminer is doing its best to keep my rig stable, considering that I'll be on the other side of the planet, way too far off to push the reset button in case the driver is in a fit and crashes. Can't wait to try it out! Smiley
Pages: « 1 ... 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 [61] 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 ... 830 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!