Author

Topic: OFFICIAL CGMINER mining software thread for linux/win/osx/mips/arm/r-pi 4.11.0 - page 533. (Read 5806088 times)

legendary
Activity: 1855
Merit: 1016
Can I mine litecoins with CPU in cgminer? Or only with GPU?
Only with GPU.
member
Activity: 125
Merit: 10
Can I mine litecoins with CPU in cgminer? Or only with GPU?
legendary
Activity: 3586
Merit: 1099
Think for yourself
Does 2.60 not leak shares to backup pools anymore?
Sam
hero member
Activity: 784
Merit: 1009
firstbits:1MinerQ
Also e.g. on linux you can:
echo -n "gpuintensity|2,8" | nc 127.0.0.1 4028 ; echo
echo -n "gpumem|2,250" | nc 127.0.0.1 4028 ; echo
echo -n "gpuengine|2,900" | nc 127.0.0.1 4028 ; echo

N.B. YMMV Smiley
That's an interesting way of fixing it up.
I haven't used the API yet but I may try that as a workaround for now.
Thx.

edit:
Yup. That worked nice.
I added it to my startup script as a background job with a small time delay.
It's odd that using the API works but conf settings don't.
Thx again.
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
I had a GPU hang/crash long ago that seems to have damaged one of my 3 GPUs.

After that crash I could never get cgminer to auto set the intensity, engine and memory speeds on this one GPU (though the other 2 are fine). I can omit the values for the 3rd GPU in cgminer.conf and cgminer will start that GPU fine with defaults I=4, M=1000, E=800.

After that I can manually use the screen to set I=8, M=250, E=900 and it will run great.

But always, always if I try to put those same values in the conf file and have it set them upon starting it always hangs the machine. I'm a bit tired of manually setting the values whenever the machine restarts.

Anyone recognize why this happens or ideas how to fix?

(btw that GPU is more fragile too. It won't run as fast as the others. It used to need a small voltage bump to even come close.)
Start cgminer with --api-listen --api-allow w:127.0.0.1

Then have something that runs after it's ready:
java API "gpuintensity|2,8"
java API "gpumem|2,250"
java API "gpuengine|2,900"

Obviously the script you have those 3 commands in and how you run it will vary depending on OS and OS version.

Also e.g. on linux you can:
echo -n "gpuintensity|2,8" | nc 127.0.0.1 4028 ; echo
echo -n "gpumem|2,250" | nc 127.0.0.1 4028 ; echo
echo -n "gpuengine|2,900" | nc 127.0.0.1 4028 ; echo

N.B. YMMV Smiley
legendary
Activity: 1204
Merit: 1000
฿itcoin: Currency of Resistance!
This line works, but slow:
GPU_USE_SYNC_OBJECTS=1 DISPLAY=:0 ./cgminer/cgminer -o http://MY_IP:9327 -u 7970.master2 -p x --scrypt -g 1 --shaders 2048 --gpu-engine 1135 --gpu-memclock 1375 --auto-gpu --auto-fan -I 15 --thread-concurrency 8192 -g 4

And manually setting as your said, solves the issue:

GPU_MAX_ALLOC_PERCENT=100 GPU_USE_SYNC_OBJECTS=1 DISPLAY=:0 ./cgminer/cgminer -o http://MY_IP:9327 -u 7970.master2 -p x --scrypt -g 4 --shaders 2048 --gpu-engine 1135 --gpu-memclock 1375 --auto-gpu --auto-fan -I 15 --thread-concurrency 8192

But max is 360Kh out of my 7970... I was hitting +500kH few days ago from it... :-/

Best,
Thiago
Your intensity is too high. 7970 maxes out at intensity 13.

YAY! Thank you!

Perfect line for my 7970:

Code:
GPU_MAX_ALLOC_PERCENT=100 GPU_USE_SYNC_OBJECTS=1 DISPLAY=:0 ./cgminer/cgminer -o http://quilombas.com:9327 -u 7970.master2 -p x --scrypt -g 4 --shaders 2048 --gpu-engine 1135 --gpu-memclock 1375 --auto-gpu --auto-fan -I 13 --thread-concurrency 8192 --auto-fan --auto-gpu

= ~594Kh
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
This line works, but slow:
GPU_USE_SYNC_OBJECTS=1 DISPLAY=:0 ./cgminer/cgminer -o http://MY_IP:9327 -u 7970.master2 -p x --scrypt -g 1 --shaders 2048 --gpu-engine 1135 --gpu-memclock 1375 --auto-gpu --auto-fan -I 15 --thread-concurrency 8192 -g 4

And manually setting as your said, solves the issue:

GPU_MAX_ALLOC_PERCENT=100 GPU_USE_SYNC_OBJECTS=1 DISPLAY=:0 ./cgminer/cgminer -o http://MY_IP:9327 -u 7970.master2 -p x --scrypt -g 4 --shaders 2048 --gpu-engine 1135 --gpu-memclock 1375 --auto-gpu --auto-fan -I 15 --thread-concurrency 8192

But max is 360Kh out of my 7970... I was hitting +500kH few days ago from it... :-/

Best,
Thiago
Your intensity is too high. 7970 maxes out at intensity 13.
legendary
Activity: 1204
Merit: 1000
฿itcoin: Currency of Resistance!

....

Check the new readme included it has lots of information. Try --shaders 2048 and -g 1 to begin with, then slowly increase -g if it doesn't crash.

Sure! I've read that... And played with those numbers, always same result...


 I'll try a old cgminer-2.5.0 compiled from git that I have in some flashdrive around here, it was working before... I was getting +500kH with this same 7970 card... Same drivers/sdk/etc...

 Thanks anyway!

Cheers!
Thiago
Try manually setting the thread concurrency multiples of 2048

This line works, but slow:
GPU_USE_SYNC_OBJECTS=1 DISPLAY=:0 ./cgminer/cgminer -o http://MY_IP:9327 -u 7970.master2 -p x --scrypt -g 1 --shaders 2048 --gpu-engine 1135 --gpu-memclock 1375 --auto-gpu --auto-fan -I 15 --thread-concurrency 8192 -g 4

And manually setting as your said, solves the issue:

GPU_MAX_ALLOC_PERCENT=100 GPU_USE_SYNC_OBJECTS=1 DISPLAY=:0 ./cgminer/cgminer -o http://MY_IP:9327 -u 7970.master2 -p x --scrypt -g 4 --shaders 2048 --gpu-engine 1135 --gpu-memclock 1375 --auto-gpu --auto-fan -I 15 --thread-concurrency 8192

But max is 360Kh out of my 7970... I was hitting +500kH few days ago from it... :-/

Best,
Thiago
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/

....

Check the new readme included it has lots of information. Try --shaders 2048 and -g 1 to begin with, then slowly increase -g if it doesn't crash.

Sure! I've read that... And played with those numbers, always same result...


 I'll try a old cgminer-2.5.0 compiled from git that I have in some flashdrive around here, it was working before... I was getting +500kH with this same 7970 card... Same drivers/sdk/etc...

 Thanks anyway!

Cheers!
Thiago
Try manually setting the thread concurrency multiples of 2048
legendary
Activity: 1204
Merit: 1000
฿itcoin: Currency of Resistance!

....

Check the new readme included it has lots of information. Try --shaders 2048 and -g 1 to begin with, then slowly increase -g if it doesn't crash.

Sure! I've read that... And played with those numbers, always same result...

Code:
GPU_MAX_ALLOC_PERCENT=100 GPU_USE_SYNC_OBJECTS=1 DISPLAY=:0 ./cgminer/cgminer -o http://MY_IP:9327 -u 7970.master2 -p x --scrypt -g 1 --shaders 2048 --gpu-engine 1135 --gpu-memclock 1375 --auto-gpu --auto-fan

........................


                                                                                                                                   7fa5f248d000-7fa5f268c000 ---p 00028000 fc:01 4104                       /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
                     7fa5f268c000-7fa5f268d000 r--p 00027000 fc:01 4104                       /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
                                                                                                                                        7fa5f268d000-7fa5f268e000 rw-p 00028000 fc:01 4104                       /usr/lib/x86_64-linux-gnu/libwind.so.0.0.0
                          7fa5f268e000-7fa5f2691000 r-xp 00000000 fc:01 10924                      /lib/x86_64-linux-gnu/libkeyutils.so.1.4
                                                                                                                                           7fa5f2691000-7fa5f2890000 ---p 00003000 fc:01 10924                      /lib/x86_64-linux-gnu/libkeyutils.so.1.4
                           7fa5f2890000-7fa5f2891000 r--p 00002000 fc:01 10924                      /lib/x86_64-linux-gnu/libkeyutils.so.1.4
                                                                                                                                            7fa5f2891000-7fa5f2892000 rw-p 00003000 fc:01 10924                      /lib/x86_64-linux-gnu/libkeyutils.so.1.4
                            7fa5f2892000-7fa5f2895000 r-xp 00000000 fc:01 10908                      /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
                                                                                                                                                7fa5f2895000-7fa5f2a94000 ---p 00003000 fc:01 10908                      /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
                                   7fa5f2a94000-7fa5f2a95000 r--p 00002000 fc:01 10908                      /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
                                                                                                                                                       7fa5f2a95000-7fa5f2a96000 rw-p 00003000 fc:01 10908                      /lib/x86_64-linux-gnu/libgpg-error.so.0.8.0
                                          7fa5f2a96000-7fa5f2aa7000 r-xp 00000000 fc:01 10912                      /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
                                                                                                                                                                7fa5f2aa7000-7fa5f2ca6000 ---p 00011000 fc:01 10912                      /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
                                                     7fa5f2ca6000-7fa5f2ca7000 r--p 00010000 fc:01 10912                      /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
                                                                                                                                                                           7fa5f2ca7000-7fa5f2ca8000 rw-p 00011000 fc:01 10912                      /usr/lib/x86_64-linux-gnu/libp11-kit.so.0.0.0
                                                                7fa5f2ca8000-7fa5f2cb8000 r-xp 00000000 fc:01 19048                      /usr/lib/x86_64-linux-gnu/libtasn1.so.3.1.1Aborted (core dumped)


 I'll try a old cgminer-2.5.0 compiled from git that I have in some flashdrive around here, it was working before... I was getting +500kH with this same 7970 card... Same drivers/sdk/etc...

 Thanks anyway!

Cheers!
Thiago
hero member
Activity: 784
Merit: 1009
firstbits:1MinerQ
I had a GPU hang/crash long ago that seems to have damaged one of my 3 GPUs.

After that crash I could never get cgminer to auto set the intensity, engine and memory speeds on this one GPU (though the other 2 are fine). I can omit the values for the 3rd GPU in cgminer.conf and cgminer will start that GPU fine with defaults I=4, M=1000, E=800.

After that I can manually use the screen to set I=8, M=250, E=900 and it will run great.

But always, always if I try to put those same values in the conf file and have it set them upon starting it always hangs the machine. I'm a bit tired of manually setting the values whenever the machine restarts.

Anyone recognize why this happens or ideas how to fix?

(btw that GPU is more fragile too. It won't run as fast as the others. It used to need a small voltage bump to even come close.)
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
New release - version 2.6.0, July 29 2012

- Limit total number of curls recruited per pool to the number of mining threads
to prevent blasting the network when we only have one pool to talk to.

This is the fix for those who keep asking if the bug with failover-only mode where it sends out lots of requests has been fixed. But of course, run 2.6.1, not 2.6.0 since that has the silly fake sick bug.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Hi!

 I have 1 7970, running cgminer 2.6.1 for Bitcoin smoothly.

 When I try it for Litecoin, it just crash...

Code:
cd cgminer-2.6.1-x86_64-built
GPU_MAX_ALLOC_PERCENT=100 GPU_USE_SYNC_OBJECTS=1 DISPLAY=:0 ./cgminer -o http://MY_IP:9327 -u 7970.master2 -p x --scrypt -g 5 --gpu-engine 1135 --gpu-memclock 1375 --auto-gpu --auto-fan

.......

Aborted (core dumped)

 Even if I halt and start the machine, it doesn't work...  Sad

 I'm using CGMiner 2.6.1, Ubuntu 12.04 64 bits, Catalyst 12.6 and SDK v2.6.

 I appreciate any help!

Thanks!
Thiago
Check the new readme included it has lots of information. Try --shaders 2048 and -g 1 to begin with, then slowly increase -g if it doesn't crash.
legendary
Activity: 1204
Merit: 1000
฿itcoin: Currency of Resistance!
Hi!

 I have 1 7970, running cgminer 2.6.1 for Bitcoin smoothly.

 When I try it for Litecoin, it just crash...

Code:
cd cgminer-2.6.1-x86_64-built
GPU_MAX_ALLOC_PERCENT=100 GPU_USE_SYNC_OBJECTS=1 DISPLAY=:0 ./cgminer -o http://MY_IP:9327 -u 7970.master2 -p x --scrypt -g 5 --gpu-engine 1135 --gpu-memclock 1375 --auto-gpu --auto-fan

.......

Aborted (core dumped)

 Even if I halt and start the machine, it doesn't work...  Sad

 I'm using CGMiner 2.6.1, Ubuntu 12.04 64 bits, Catalyst 12.6 and SDK v2.6.

 I appreciate any help!

Thanks!
Thiago
sr. member
Activity: 344
Merit: 250
I compiled 2.6.1 for Windows and I've got it running now with 2 BFL Singles.

It looks like it tries to restart now if I pull the power plug on the Singles.  It's a little touchy if it tries to restart while the BFLs are still booting up (the first time I tried, only one of them restarted).  On a second try they both restarted, though.

Code:
 [2012-07-30 13:37:20] BFL0: Error: Get temp returned empty string/timed out
 [2012-07-30 13:37:20] BFL1: Error: Get temp returned empty string/timed out
 [2012-07-30 13:37:23] BFL0: Error: Get temp returned empty string/timed out
 [2012-07-30 13:37:23] BFL1: Error: Get temp returned empty string/timed out
 [2012-07-30 13:37:23] BFL1: Idle for more than 60 seconds, declaring SICK!
 [2012-07-30 13:37:23] BFL1: Attempting to restart
 [2012-07-30 13:37:23] BFL1: Re-initialising
 [2012-07-30 13:37:42] BFL0: Error: Get temp returned empty string/timed out
 [2012-07-30 13:37:42] BFL0: Idle for more than 60 seconds, declaring SICK!
 [2012-07-30 13:37:42] BFL0: Attempting to restart
 [2012-07-30 13:37:42] BFL0: Re-initialising
 [2012-07-30 13:37:45] Accepted 11dfac3a.76e50d45 BFL 1 pool 0
 [2012-07-30 13:37:45] Accepted 21cf70f1.a68f0b2c BFL 1 pool 0
 [2012-07-30 13:37:45] Accepted 8750eda5.e9c96efd BFL 1 pool 0
 [2012-07-30 13:37:51] Accepted 10f3bd18.610d28c8 BFL 1 pool 0
 [2012-07-30 13:37:51] Accepted d1c892d6.f8af5e06 BFL 1 pool 0
 [2012-07-30 13:38:01] Accepted 978aa05b.cb4ec0c5 BFL 1 pool 0
 [2012-07-30 13:38:01] Accepted 3723241f.a4e3d25c BFL 1 pool 0
 [2012-07-30 13:38:04] Accepted 279a6034.3834ebaf BFL 0 pool 0
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
... and a Xubuntu 11.04 executable in my github downloads:
https://github.com/kanoi/cgminer/downloads

For anyone who didn't realise, it's just the executable file to put in place of 'cgminer'
Nothing else needs changing
First get and extract the full binary release from ckolivas and then copy my file in place of 'cgminer'

Running fine on my 3 setups:
1) 1xBFL (hashing at 873 MH/s)
2) 2xIcarus (hashing at 379.x MH/s each)
3) 1x6950

Edit: and yes I compiled in scrypt support also - the same as cvolivas' binary version
In case anyone was wondering:
CFLAGS="-O2 -W -Wall" ./configure --enable-icarus --enable-bitforce --enable-ztex --enable-modminer --enable-scrypt
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
New version: 2.6.1 - July 30, 2012

Quick hotfix to prevent devices being labelled SICK when they're really not.

Changelog

- Remove the low hash count determinant of hardware being sick. A low hash rate
can be for poor network connectivity or scrypt mining, neither of which are sick
devices.
- api.c poolpriority changes
- Display scrypt as being built in as well.
- Fix build warning about KL_SCRYPT when built without scrypt support.
- Documentation updates.

hero member
Activity: 591
Merit: 500
No, they're incompatible, hence the version number update...
Damn, guess I'm stuck with Diablo then. Undecided
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
I left my old phatk .bin in the folder from 2.5, but every time I start 2.6, it generates a new one anyway. Is that supposed to happen?

Oh and it looks like dynamic intensity is fixed again. Sweet. Smiley
Yep - they have new date stamps in the *.cl filenames ...
Can I just rename it and have it work then? Diablo's not quite doing it for me. Tongue
No, they're incompatible, hence the version number update...
hero member
Activity: 591
Merit: 500
I left my old phatk .bin in the folder from 2.5, but every time I start 2.6, it generates a new one anyway. Is that supposed to happen?

Oh and it looks like dynamic intensity is fixed again. Sweet. Smiley
Yep - they have new date stamps in the *.cl filenames ...
Can I just rename it and have it work then? Diablo's not quite doing it for me. Tongue
Jump to: