Author

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

-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
New release: v2.11.1, March 7th 2013

Keep building on the changes required for BFL SC when it comes out, adding new features and fixing bugs with the new 2.11 branch... This is still the unstable development version but is proving quite stable for my testing so far.


Human readable changelog:

Faster startup now when pools are slow, connecting to the first pool available!
Fixed some stratum bugs which would lead to weird disconnects when pools were slow.
Improved the mining resume support for stratum.
Added the show message feature of stratum (which I don't believe any pool uses yet?).
Lots of other minor stratum fixes and improvements.
Added the --hotplug (time) feature if you have hardware that has random stalls every time the usb devices are probed (default is 5 seconds).
Extra API features.
Random bugfixes.


Full changelog:

- Shorten the time before keepalive probes are sent out and how frequently
they're sent with stratum curls.
- Only set stratum auth once to prevent multiple threads being started.
- Display select return value on select fail in stratum thread.
- Clear the socket of anything in the receive buffer if we're going to retry
connecting.
- Allow pools to be resuscitated on first startup by the watchpool thread.
- Check all pools simultaneously at startup switching to the first alive one to
speed up startup.
- Clear just the socket buffer when we don't care what is left in a stratum
socket.
- Clear the stratum socket whenever we are closing it since the buffer is going
to be reused.
- Do not continue work from a stratum pool where the connection has been
interrupted.
- Reset stratum_notify flag on suspend_stratum as well.
- Close any sockets opened if we fail to initiate stratum but have opened the
socket.
- Close any existing stratum socket if we are attempting to restart stratum so
the pool knows the connection has gone.
- Show mechanism of stratum interruption if select times out.
- Make stratum connection interrupted message higher priority to be visible at
normal logging levels.
- Implement client.show_message support for stratum.
- API add 'Network Difficulty' to 'coin'
- Setup BFLSC support
- API use control_lock when switching pools
- Make sure to retry only once with noresume support for stratum.
- Instead of keeping track of when the last work item was generated to keep
stratum connections open, keep them open if any shares have been submitted
awaiting a response.
- usbutils.c copy full size to 'Last Command'
- configure - set USE_USBUTILS when usbutils is required and use it in the code
- Clear last pool work on switching pools if the current pool supports local
work generation or we are in failover only mode.
- make rw locks: mining_thr_lock and devices_lock
- Release MMQ device only once (not 4 times)
- api.c fix MSG overlap
- Hotplug - allow setting interval via --hotplug or API
- curses - fix - put a dev_width inside #ifdef
- usb_cleanup() use correct locking mechanism
- Implement and use usb_cleanup() on shutdown or restart
- miner.php report 'Last Valid Work' as time before request
- API - return Last Valid Work
- api -> drv
- ZTX bug set missing drv_id
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
I used cgminer since a long time to mine BTC.

Now I'd like to mine some LTC. I use Windows7 and a pair of 7970s.

What's the correct command line to use cgminer to mine LTC?
https://github.com/ckolivas/cgminer/blob/master/SCRYPT-README
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
hi,
i look at my log for cgminer 2.11.0 ( win7 x64 ; GPU drv - 12.6 ; SDK 2.8 )
and i see something strange :
Code:
 [2013-03-07 11:50:19] Rejected 51eafd38 Diff 3/1 GPU 1 pool 0 ((-2, u'Duplicate share', Non
.....
should I be worried about this messages?
Yes. What pool and protocol? Some pools have been really struggling of late so it's the likely culprit.
member
Activity: 136
Merit: 10
tester
hi,
i look at my log for cgminer 2.11.0 ( win7 x64 ; GPU drv - 12.6 ; SDK 2.8 )
and i see something strange :
Code:
 [2013-03-07 11:50:19] Rejected 51eafd38 Diff 3/1 GPU 1 pool 0 ((-2, u'Duplicate share', Non
.....
 [2013-03-07 11:50:42] Rejected b1ac8474 Diff 1/1 GPU 1 pool 0 ((-2, u'Share is above target
.....
 [2013-03-07 11:50:19] Rejected 51eafd38 Diff 3/1 GPU 1 pool 0 ((-2, u'Duplicate share', Non
.....
 [2013-03-07 11:50:42] Rejected b1ac8474 Diff 1/1 GPU 1 pool 0 ((-2, u'Share is above target
.....
 [2013-03-07 11:52:54] Rejected 6ae3257b Diff 2/1 GPU 1 pool 0 ((-2, u'Duplicate share', Non
.....
 [2013-03-07 11:54:10] Rejected 04dead4d Diff 52/1 GPU 0 pool 0 ((-2, u'Share is above target
.....
 [2013-03-07 11:58:58] Rejected d5ec96b4 Diff 1/1 GPU 1 pool 0 ((-2, u'Duplicate share', Non
.....
 [2013-03-07 12:04:15] Rejected efedb124 Diff 1/1 GPU 1 pool 0 ((-2, u'Duplicate share', Non
.....
 [2013-03-07 12:17:34] Rejected 0638fb44 Diff 41/1 GPU 0 pool 0 ((-2, u'Incorrect size of ext
.....
 [2013-03-07 12:33:23] Rejected 1fb0a7ca Diff 8/1 GPU 1 pool 0 ((-2, u'Incorrect size of ext
 .....
[2013-03-07 12:34:55] Rejected 588fdf7c Diff 2/1 GPU 1 pool 0 ((-2, u'Duplicate share', Non
.....
 [2013-03-07 12:38:54] Rejected 28a8a413 Diff 6/1 GPU 1 pool 0 ((-2, u'Duplicate share', Non
.....
 [2013-03-07 11:52:54] Rejected 6ae3257b Diff 2/1 GPU 1 pool 0 ((-2, u'Duplicate share', Non
.....
 [2013-03-07 11:54:10] Rejected 04dead4d Diff 52/1 GPU 0 pool 0 ((-2, u'Share is above target
.....
 [2013-03-07 11:58:58] Rejected d5ec96b4 Diff 1/1 GPU 1 pool 0 ((-2, u'Duplicate share', Non
.....
 [2013-03-07 12:04:15] Rejected efedb124 Diff 1/1 GPU 1 pool 0 ((-2, u'Duplicate share', Non
.....
 [2013-03-07 12:17:34] Rejected 0638fb44 Diff 41/1 GPU 0 pool 0 ((-2, u'Incorrect size of ext
.....
 [2013-03-07 12:33:23] Rejected 1fb0a7ca Diff 8/1 GPU 1 pool 0 ((-2, u'Incorrect size of ext
.....
 [2013-03-07 12:34:55] Rejected 588fdf7c Diff 2/1 GPU 1 pool 0 ((-2, u'Duplicate share', Non
.....
 [2013-03-07 12:38:54] Rejected 28a8a413 Diff 6/1 GPU 1 pool 0 ((-2, u'Duplicate share', Non
.....
should I be worried about this messages?
sr. member
Activity: 255
Merit: 250
I used cgminer since a long time to mine BTC.

Now I'd like to mine some LTC. I use Windows7 and a pair of 7970s.

What's the correct command line to use cgminer to mine LTC?
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
have printed copies of your readme file on the wall.
I like your style.
Can you give me a quick clue as to the problems you see? I have done all I can think to do with --gpu-platform, the -d switch, and --gpu-map
Search for "GPU DEVICE ISSUES and use of --gpu-map" in you README poster. I can't tell exactly how to set it up for you without access to your machine but that is where your remaining issues lie I believe.
newbie
Activity: 56
Merit: 0
Hello  

I was wondering if anyone could help me trouble shoot some trouble I am having with (I think) a cgminer mapping issue.

[SNIP]
You are having multiple problems. Does the 5970 work or are you another hopeful that bought a dead GPU? Most of these are way beyond working status thanks to being abused by miners. Do you have enough system ram to scrypt mine on that many GPUs? Did you read the EXTENSIVE section on using --gpu-map in the readme?

Hello Ckolivas,,

I tested the 5970 in a new Gigabyte motherboard about 2 hours ago after I did the post. Using CGMINER 2.10.5 the card ran about 350 khash/gpu. There was trouble with one of the GPUs running very hot. I solved the heat problem by installing fresh CPU grease, cleaning the lint out of the fins, and adding a 90mm HP server case fan that blow serious air (140 CFM). The card itself appears to be in good shape, it runs.

The system I am running has 4GB ram.

I spent about 4 hours reading through your readme file today. I run 11 cards in my rigs and have printed copies of your readme file on the wall. I have also been through almost every page of this and several other threads. I take notes and change a single setting at a time to better understand what is happening. I also run a watt meter and check voltages and power draws in the rails using a meter.

I understand the --gpu-platform command. I use the --gpu-platform command to run the radion 5380 card that is working. I have problems when I swap out the 5830 card and install the 5970.

I agree with you that it might be faster/easier/cheaper to use a pair of 5850's in place of a 5970. I did a google search, read the readme file again, and searched the support thread but did not locate my situation. I figured if I posted perhaps someone else might understand better than I do what is going. I thought it was kind of a cool technical problem to learn from. I did not mean to waste your time or appear helpless. I want to make it work!

Can you give me a quick clue as to the problems you see? I have done all I can think to do with --gpu-platform, the -d switch, and --gpu-map

I will share the solution, document it as best I can, and try to grow the knowledge base.

(Or I will just use it as a space heater)

Thank you,
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Hello,

I was wondering if anyone could help me trouble shoot some trouble I am having with (I think) a cgminer mapping issue.

[SNIP]
You are having multiple problems. Does the 5970 work or are you another hopeful that bought a dead GPU? Most of these are way beyond working status thanks to being abused by miners. Do you have enough system ram to scrypt mine on that many GPUs? Did you read the EXTENSIVE section on using --gpu-map in the readme?
newbie
Activity: 56
Merit: 0
Hello,

I was wondering if anyone could help me trouble shoot some trouble I am having with (I think) a cgminer mapping issue.

Setup Windows 7x, CGMINER 2.10.5, Drivers 12.7 and SDK 2.7

System in an older P4, Nvida card in PCIe slot 0, Radeon 5970 in PCIe 1x slot on riser cable. PCIe bridge wire trick in place and working.

System works flawlessly using the --gpu-platform 1 command line option and a Radeon 5830 card. Mines just fine.

When I replace the 5830 card with the 5970 I get the following

Code:
[2013-03-06 15:02:41] Started cgminer 2.10.5
[2013-03-06 15:02:42] ADL found less devices than opencl!
[2013-03-06 15:02:42] There is possibly more than one display attached to a GPU

[2013-03-06 15:02:42] Use the gpu map feature to reliably map OpenCL to ADL
[2013-03-06 15:02:42] WARNING: Number of OpenCL and ADL devices did not match!
[2013-03-06 15:02:42] Hardware monitoring may NOT match up with devices!
[2013-03-06 15:02:42] Probing for an alive pool
[2013-03-06 15:02:42] Long-polling activated for http://ltc.kattare.com:9332/LP

[2013-03-06 15:02:42] Error -5: Enqueueing kernel onto command queue. (clEnqueu
NDRangeKernel)
[2013-03-06 15:02:42] GPU 0 failure, disabling!
[2013-03-06 15:02:42] Thread 0 being disabled
[2013-03-06 15:02:43] Error -5: Enqueueing kernel onto command queue. (clEnqueu
NDRangeKernel)
[2013-03-06 15:02:43] GPU 1 failure, disabling!
[2013-03-06 15:02:43] Thread 1 being disabled


My command line is:

Code:
cgminer --scrypt --gpu-platform 1 --auto-fan -I 19 -g 1 -w 256 --lookup-gap 2 --temp-target 75 --temp-overheat 85 --thread-concurrency 5632 --gpu-engine 750 --gpu-memclock 850


Cgminer -n shows:

Code:
[2013-03-06 14:19:39] CL Platform 0 vendor: NVIDIA Corporation

[2013-03-06 14:19:39] CL Platform 0 name: NVIDIA CUDA
[2013-03-06 14:19:39] CL Platform 0 version: OpenCL 1.1 CUDA 4.2.1

[2013-03-06 14:19:39] Platform 0 devices: 1
[2013-03-06 14:19:39]  0       Quadro NVS 290
[2013-03-06 14:19:39] CL Platform 1 vendor: Advanced Micro Devices, Inc.

[2013-03-06 14:19:39] CL Platform 1 name: AMD Accelerated Parallel Processing

[2013-03-06 14:19:39] CL Platform 1 version: OpenCL 1.2 AMD-APP (1084.4)

[2013-03-06 14:19:39] Platform 1 devices: 2
[2013-03-06 14:19:39]  0       Cypress
[2013-03-06 14:19:39]  1       Cypress
[2013-03-06 14:19:39] Failed to ADL_Adapter_ID_Get. Error -1

[2013-03-06 14:19:39] Failed to ADL_Adapter_ID_Get. Error -1

[2013-03-06 14:19:39] Failed to ADL_Adapter_ID_Get. Error -1

[2013-03-06 14:19:39] Failed to ADL_Adapter_ID_Get. Error -1

[2013-03-06 14:19:39] Failed to ADL_Adapter_ID_Get. Error -1

[2013-03-06 14:19:39] Failed to ADL_Adapter_ID_Get. Error -1

[2013-03-06 14:19:39] ADL found less devices than opencl!
[2013-03-06 14:19:39] There is possibly more than one display attached to a GPU

[2013-03-06 14:19:39] Use the gpu map feature to reliably map OpenCL to ADL

[2013-03-06 14:19:39] WARNING: Number of OpenCL and ADL devices did not match!

[2013-03-06 14:19:39] Hardware monitoring may NOT match up with devices!

[2013-03-06 14:19:39] 2 GPU devices max detected


ANY Help would be greatly appreciated Smiley

Thank you!
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
Hello guys,

I seem to be having some issues communicating with apcupsd via usb connection now and then since updating to 2.11.0, the message I get is:

Error contacting apcupsd @ localhost:3551: Connection refused

I also notice my hash rate dips slightly on every card on the rig until I pull the usb cable out then re-insert it again, after a few seconds the hash rate goes back up and I can communicate with apcupsd again, after restarting the service. Is there any chance that the new usb code is interfering with my apcupsd driver do you think? Or am I barking up the wrong tree.....again.... Huh

Xubuntu Natty 64
GPU rig
v2.4 SDK

Peace.
Try that: https://bitcointalksearch.org/topic/m.1580690
hero member
Activity: 924
Merit: 1000
Watch out for the "Neg-Rep-Dogie-Police".....
Hello guys,

I seem to be having some issues communicating with apcupsd via usb connection now and then since updating to 2.11.0, the message I get is:

Error contacting apcupsd @ localhost:3551: Connection refused

I also notice my hash rate dips slightly on every card on the rig until I pull the usb cable out then re-insert it again, after a few seconds the hash rate goes back up and I can communicate with apcupsd again, after restarting the service. Is there any chance that the new usb code is interfering with my apcupsd driver do you think? Or am I barking up the wrong tree.....again.... Huh

Xubuntu Natty 64
GPU rig
v2.4 SDK

Peace.
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
kano, do you cross-compile for rpi or build natively within?
Native build on my rpi (yep it's not very fast Tongue)
The xubu build (and when I build windows myself) are in VMs so they are effectively native also.
I don't cross-compile anything in case you were wondering Smiley
member
Activity: 71
Merit: 10
kano, do you cross-compile for rpi or build natively within?
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Hi ckolivas/kano, I'm curious if in previous versions (2.8.0/2.9.0) has been known bug where cgminer switched from Stratum back to Getwork? Today some people reported that although they're using newer cgminers with Stratum support, they're still mining on getwork interface (although pool reports X-Stratum correctly and Stratum backend works). They also reported that Stratum worked for them for some time, but then "it switched itself".

I recommended them to update, but I'd feel safer if this has been known and fixed...
So many stratum bugs have been fixed since then I can't even tell you exactly. I would certainly recommend upgrading to the stable 2.10.5 release.
legendary
Activity: 1386
Merit: 1097
Hi ckolivas/kano, I'm curious if in previous versions (2.8.0/2.9.0) has been known bug where cgminer switched from Stratum back to Getwork? Today some people reported that although they're using newer cgminers with Stratum support, they're still mining on getwork interface (although pool reports X-Stratum correctly and Stratum backend works). They also reported that Stratum worked for them for some time, but then "it switched itself".

I recommended them to update, but I'd feel safer if this has been known and fixed...
legendary
Activity: 3586
Merit: 1099
Think for yourself

What version of AMD driver should I have, and what version of CGminer should I have?


I'm using Catalyst 12.1 SDK 2.5 and CGMiner 2.10.4.

Seems to work well with my 5830.
Sam
full member
Activity: 160
Merit: 100
Hello CGminer support forum if I could butt in here for a second.
I currently download and am happy with CGminer but seem to have a few issues.

*System. CGminer 2.10.5, Windows 7 64bit, x4 5830's

So I downloaded and installed AMD's 13.2 Beta Catalyst Control Center (to try and get rid of artifacts during mining) and it worked at removing artifacts. But now after a few hours my GPU that displays the desktop dies (the thread dies) and does not restart automatically, I must restart CGMiner. It also sometimes simply crashes showing me the BSOD.....  I then can restart the computer and CGminer like nothing happened.


What version of AMD driver should I have, and what version of CGminer should I have?
- It looks like I need specific AMD SoftwareDevelopmentKit (SDK), and specific ApplicationProgrammerInterface(API). Anyway to know which ones work the best with 5830's specifically?

Does anyone have a good config file for me to base mine off of for 5830's?!



(I remember reading I might have to reinstall CGminer because of the binaries made on initial first strat up, which was before my AMD 13.2 update; so do I need to reinstall CGminer and see what happens?)

legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
With 2.11.0 in windows7 I noticed usb based keyboard has intermittent key delay on either press or release.
Which (and how many) FPGA devices and what sort of computer CPU (netbook, low power, ?) do you have?
I suspect with ASIC that will get worse - i.e. whatever problem your computer has with the small amount of USB accesses at the moment, will only get worse as that increases with ASIC devices.
With ASIC, cgminer will be hitting the USB port a lot harder.
USB shouldn't have this problem with the low amount of USB access occurring at the moment.
Is it every 5 seconds? Is it every key? Or is it once in a blue moon?
Edit: also what is your USB layout - hubs, multiple motherboard ports, etc.
No fpga or asic devices, just 7970 gpu. MB asus p9x79 with mouse and keyboard connected to usb 2.0 via 4 port kvm, no other devices on any other usb.
It may happen once or twice within 5 seconds. This is very noticeable in content requiring constant user interaction, i.e. pc game. With 2.10.5 and kernels from 2.11.0 (renamed cl's to match 2.10.5) keyboard delay no longer occurs.

OK, sounds like the hotplug is what is causing the USB issues - it happens once every 5 seconds.
cgminer just asks libusb for the list of USB devices then checks each of their id's to see if they are BFL or MMQ.
All the actual work is done inside libusb, cgminer just asks for the numbers from libusb (and does nothing else if the numbers don't match)
There is no other USB interaction if you don't have any BFL or MMQ.
I guess for now I could add a --hotplug N option to define how often to check ... and 0 means never
Then later sort out why libusb_get_device_list() + libusb_get_device_descriptor() is affecting a mouse ...
Though the libusb dev guy mentioned that he is adding hotplug detection internal to libusb soon ...
https://github.com/ckolivas/cgminer/pull/394
Has a new option to specify the hotplug check time --hotplug
Set it to '0' to mean never check or any number (N=1..9999) to check every N seconds.
It's also available via the API (hotplug|N) to set it to N=0..9999 - 0 means disable just like --hotplug
Coming to a cgminer near you RSN Smiley
legendary
Activity: 952
Merit: 1000
Maybe this is a linux question, and less of a CGMiner question, but 2.11.0 can't see my Single without running it as root. I had to install libusb-1.0 just to update to 2.11.0, and when I first tried, it came up with that All devices disabled, cannot mine! Running as root works fine, tho. I feel like there's a simple fix, but I just don't know what it is.

Have you tried this by chance?

Q: On linux I can see the /dev/ttyUSB* devices for my ICA/BFL FPGA, but
cgminer can't mine on them
A: Make sure you have the required priviledges to access the /dev/ttyUSB* devices:
 sudo ls -las /dev/ttyUSB*
will give output like:
 0 crw-rw---- 1 root dialout 188, 0 2012-09-11 13:49 /dev/ttyUSB0
This means your account must have the group 'dialout' or root priviledges
To permanently give your account the 'dialout' group:
 sudo usermod -G dialout -a `whoami`
Then logout and back in again

I'm not running a standard 64bit or even x86 linux, but rather Linaro 12.11 for ARM devices. I don't see any /dev/ttyUSB* devices, and adding my user to dialout group did nothing. Any other thoughts?
With 2.11.0 and onwards it no longer uses the serial-USB (/dev/tty*) ports (except Icarus still does) - on linux it simply disconnects them.
I'll look into what may need to be added for privs ... I don't have that problem on my rigs, but that may be due to something already configured.
It may well be the disconnect that fails and it reports that?
Could you run it in debug mode and report (pastebin) here or in IRC the startup?
Use something like -D -T --verbose 2>debug.log
Thanks.
P.S. I'll edit that in the README to only say ICA
OK, if you are running cgminer 2.11.0 (or later) on linux as non-root user you may need to do the following also:

Create /etc/udev/rules.d/01-cgminer.rules
With:
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6014", SUBSYSTEMS=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"
ATTRS{idVendor}=="1fc9", ATTRS{idProduct}=="0003", SUBSYSTEMS=="usb", ACTION=="add", MODE="0666", GROUP="plugdev"


And also:
sudo usermod -G plugdev -a `whoami`

Then reboot ... (or use udevadm to reload the rules and retrigger the devices - but I couldn't get that to work on my RPi without rebooting)

That is a bit overkill, but for now that's what I suggest unless I come up with a simpler set of rules.

Edit: if your linux distro doesn't have the 'plugdev' group, you can create it like:
sudo groupadd plugdev
This fixed my issues. I no longer have to run at sudo. Thanks!
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
With 2.11.0 in windows7 I noticed usb based keyboard has intermittent key delay on either press or release.
Which (and how many) FPGA devices and what sort of computer CPU (netbook, low power, ?) do you have?
I suspect with ASIC that will get worse - i.e. whatever problem your computer has with the small amount of USB accesses at the moment, will only get worse as that increases with ASIC devices.
With ASIC, cgminer will be hitting the USB port a lot harder.
USB shouldn't have this problem with the low amount of USB access occurring at the moment.
Is it every 5 seconds? Is it every key? Or is it once in a blue moon?
Edit: also what is your USB layout - hubs, multiple motherboard ports, etc.
No fpga or asic devices, just 7970 gpu. MB asus p9x79 with mouse and keyboard connected to usb 2.0 via 4 port kvm, no other devices on any other usb.
It may happen once or twice within 5 seconds. This is very noticeable in content requiring constant user interaction, i.e. pc game. With 2.10.5 and kernels from 2.11.0 (renamed cl's to match 2.10.5) keyboard delay no longer occurs.

OK, sounds like the hotplug is what is causing the USB issues - it happens once every 5 seconds.
cgminer just asks libusb for the list of USB devices then checks each of their id's to see if they are BFL or MMQ.
All the actual work is done inside libusb, cgminer just asks for the numbers from libusb (and does nothing else if the numbers don't match)
There is no other USB interaction if you don't have any BFL or MMQ.
I guess for now I could add a --hotplug N option to define how often to check ... and 0 means never
Then later sort out why libusb_get_device_list() + libusb_get_device_descriptor() is affecting a mouse ...
Though the libusb dev guy mentioned that he is adding hotplug detection internal to libusb soon ...
Jump to: