Author

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

-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Anyone else having a problem of cgminer saying their BFL is over the heat threshold when it's only at 45C and stopping work on it? Sad
Check your configuration file or command line doesn't have temperature parameters for GPU(s), and that zero is being used for the BFL.
legendary
Activity: 1713
Merit: 1029
Anyone else having a problem of cgminer saying their BFL is over the heat threshold when it's only at 45C and stopping work on it? Sad
sr. member
Activity: 344
Merit: 250
Thanks!

I compiled 2.5.0 for windows and I'm running it for a pair of BFL Singles.  So far so good.

I did try a test by pulling the plug on the Singles to see if they'd recover after being plugged back in, but no luck on that, yet.

Code:
[2012-07-06 19:38:09] Accepted a8d83928.6635d436 BFL 0 pool 0
[2012-07-06 19:38:11] Accepted ea99b76e.33143e03 BFL 1 pool 0
[2012-07-06 19:38:24] BFL0: took 15015ms - longer than 10000ms
[2012-07-06 19:38:24] BFL0: Error: Send work reports: ░?kLA
[2012-07-06 19:38:25] BFL1: took 15015ms - longer than 10000ms
[2012-07-06 19:38:26] Pool 0 not providing work fast enough
[2012-07-06 19:38:29] BFL0: Comms error
[2012-07-06 19:38:29] BFL0: Error: Send work reports: ╚?╒î┴v£öy|■   ╓┬└v?IA
[2012-07-06 19:38:34] BFL0: Comms error
[2012-07-06 19:38:34] BFL0: Error: Send work reports: ╚?╒î┴v£öy|■   ╓┬└v?IA

--------------------

2012-07-06 19:40:07] BFL1: Comms error
2012-07-06 19:40:07] BFL1: Error: Send work reports: ╚?╒î┴v£öy|^P
2012-07-06 19:40:07] BFL0: Idle for more than 60 seconds, declaring SICK!
2012-07-06 19:40:07] BFL0: Attempting to restart
2012-07-06 19:40:07] BFL0: Re-initalizing
2012-07-06 19:40:07] BFL0: Comms error
2012-07-06 19:40:12] BFL1: Comms error
2012-07-06 19:40:12] BFL1: Error: Send work reports: ╚?╒î┴v£öy|■   ╓┬└v?IA
2012-07-06 19:40:12] BFL0: Comms error
2012-07-06 19:40:17] BFL1: Comms error
2012-07-06 19:40:17] BFL1: Error: Send work reports: ╚?╒î┴v£öy|■   ╓┬└v?IA

--------------------

[2012-07-06 19:49:21] BFL1: Re-initalizing
[2012-07-06 19:50:10] BFL0: Re-initalizing
[2012-07-06 19:50:59] BFL0: Not responded for more than 10 minutes, declaring DEAD!
[2012-07-06 19:50:59] BFL1: Re-initalizing
[2012-07-06 19:52:01] BFL0: Re-initalizing

I added some exit(1)'s after some of those error messages in driver-bitforce.c as a hack so it can stop & restart.  Maybe not applicable for most people, though.
vip
Activity: 1358
Merit: 1000
AKA: gigavps
Alas, it's not like I actually own a minirig, but some generous donating and temporary remote access allowed me to work on the code for it. Note that this was a laptop connected to 2 minirigs, each with 17 devices in it. The silicon quality apparently varies from device to device which is why they're 2 speeds in this example. Note that this machine was generating 50Ghash, with an efficiency over 9000  Wink and the CPU usage was recording 1%.

Thanks for this work Con. You are the best in the business. I have cgminer 2.5.0 running on 14 singles and 3 mini rigs without issue.
legendary
Activity: 1540
Merit: 1001
Alas, it's not like I actually own a minirig, but some generous donating and temporary remote access allowed me to work on the code for it. Note that this was a laptop connected to 2 minirigs, each with 17 devices in it. The silicon quality apparently varies from device to device which is why they're 2 speeds in this example. Note that this machine was generating 50Ghash, with an efficiency over 9000  Wink and the CPU usage was recording 1%.




M
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Alas, it's not like I actually own a minirig, but some generous donating and temporary remote access allowed me to work on the code for it. Note that this was a laptop connected to 2 minirigs, each with 17 devices in it. The silicon quality apparently varies from device to device which is why they're 2 speeds in this example. Note that this machine was generating 50Ghash, with an efficiency over 9000  Wink and the CPU usage was recording 1%.

-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
New Version: 2.5.0 - 6th July 2012

New version number signifying the updated BFL hardware support. Non-bfl miners have only bugfixes since 2.4.4.

Human readable changelog:

- Bitforce minirig support - including support for use on p2pool through use of the --bfl-range option, provided you have a new enough minirig that supports the nonce-range feature. By default this feature is disabled because it costs ~1% in hashrate, but given the massive loss of hashes you would otherwise have mining on p2pool, this is worth using. Other miners should leave it disabled.
- Huge update to other bitforce device. I've merged all of p_shep's changes into this code (thanks!). These can reenable devices, time out gracefully and mark them sick/overheated and so on.
- I've also created my own workaround for the biggest problem with existing bitforce devices - the can now abort work as soon as a longpoll hits which means literally half as much work on average wasted across longpoll than previously, and a much lower reject rate. Note these devices are still inefficient across longpoll since they don't even have the support the minirig devices have - and they never will according to bfl. This means you should never mine with them on p2pool.
- Fixed the dynamic GPU intensity behaviour which was getting stuck at -10 on faster GPUs.
- Updated API code with lots of changes under the hood courtesy of Kano, and updated miner.php.

Full changelog:

- Fix --benchmark not working since the dynamic addition of pools and pool
stats.
- Make disabling BFL nonce range support a warning since it has to be explicitly
enabled on the command line now.
- miner.php allow renaming table headers
- Make bitforce nonce range support a command line option --bfl-range since
enabling it decrease hashrate by 1%.
- Add sanity checking to make sure we don't make sleep_ms less than 0 in
bitforce.
- The fastest minirig devices need a significantly smaller starting sleep time.
- Use a much shorter initial sleep time to account for faster devices and nonce
range working, and increase it if nonce range fails to work.
- Use nmsleep instead of usleep in bitforce.
- Provide a ms based sleep function that uses nanosleep to avoid the inaccuracy
of usleep on SMP systems.
- delay_time_ms is always set so need not be initialised in bitforce.
- Increase bitforce timeout to 10 seconds.
- Add more hysteresis and poll ~5 times to allow for timer delays in bitforce
devices.
- miner.php allow alternating line colours (off by default)
- Display the actual duration of wait when it is greater than the cutoff.
- Set nonce to maximum once we determine nonce range support is broken.
- Initial wait time is always known so no need to zero it beforehand in
bitforce.
- No point counting wait time until the work is actually sent to bitforce
devices.
- Use string comparison functions instead of explicit comparisons.
- Account for wait_ms time when nonce_range is in use on BFL.
- Split nonces up into 1/5 chunks when nonce range is supported.
- limit clear buffer iterations.
- Ad fd check to clear buffer.
- miner.php remove incorrect 'DATE' error message
- miner.php allow summary header in custom pages
- Disable nonce range support in BFL when broken support is detected.
- Restart_wait is only called with a ms value so incorporate that into the
function.
- Only try to adjust dev width when curses is built in.
- miner.php define custom sum fields as a simple array
- Fix off-by-one error in nonce increment in bfl.
- Use BE when setting nonce in bitforce nonce range work.
- Enable nonce range in the normal init sequence for bfl.
- Queue extra work at 2/3 differently depending on whether we're using nonce
range or not.
- Initially enable support for nonce range support on bfl, splitting nonces up
into 3/4 size and only disable it if it fails on work submit.
- Attempt to detect nonce range support in BFL by sending work requring its
support.
- Limit retrying on busy for up to BITFORCE_TIMEOUT_MS
- Attempt to initialise while bitforce device returns BUSY.
- Extend length of string that can be passed to BFL devices.
- Fix signedness warning.
- Adjust device width column to be consistent.
- Use cgpu-> not gpus[] in watchdog thread.
- Add api stats (sleep time)
- Timing tweaks Added long and short timeouts, short for detecting throttling,
long to give up totally. Reset sleep time when device re-initialised Still check
results after timeout Back up a larger time if result on first poll.
- Add API Notify counter 'Comms Error'
- Style police on api.c
- Do all logging outside of the bitforce mutex locking to avoid deadlocks.
- Remove applog call from bfwrite to prevent grabbing nested mutexes.
- Bitforce style changes.
- Minor style changes.
- Remove needless roundl define.
- Made JSON error message verbose.
- Fine-tune timing adjustment. Also remove old work_restart timing.
- Check for gpu return times of >= 0, not just 0, to fix intensity dropping to
-10.
- Restart is zeroed in the mining thread so no need to do it inside the bitforce
code.
- More improvements to comms. BFL return nothing when throttling, so should not
be considered an error. Instead repeat with a longer delay.
- Polling every 10ms there's not much point checking the pthread_cond_timedwait
as it just adds overhead. Simply check the value of work_restart in the bfl main
polling loop.
- Use a pthread conditional that is broadcast whenever work restarts are
required. Create a generic wait function waiting a specified time on that
conditional that returns if the condition is met or a specified time passed to
it has elapsed. Use this to do smarter polling in bitforce to abort work, queue
more work, and check for results to minimise time spent working needlessly.
- Add busy time to wait time.
- api.c put version up to 1.14
- Add tiny delay after writing to BFL Change BFL errors to something more human
readable Send work busy re-tries after 10ms delay
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
sr. member
Activity: 472
Merit: 250
Figured it out:

Win 7 would say it was downloading the BFL driver, but it wasn't actually doing something correct with it. I installed the BFL driver and all of the devices received COM numbers. Using -S COM# would only get six devices running in cgminer. I did some searching and found:

Thanks for your help. They each work individually. I just cant get them all to run.

-S "\\.\COM3" -S "\\.\COM4" -S "\\.\COM5"


Regards,
BF Labs Inc.

With all of the COM numbers put in all 10 devices were found and are now currently hashing.
sr. member
Activity: 472
Merit: 250

Win 7 x64
9x BFL Singles
10 Port powered USB hub


Issue: Neither 2.4.4 nor 2.3.6 will start more than 6 BFL singles

Troubleshooting:
- Multiple restarts usually resulting in BFL singles receiving different COM numbers than previous reboot
- Powering and unpowering USB hub
- Plugging USB hub into multiple USB 2 ports will cause zero BFL singles to start in cgminer
- Plugging into USB 3 port will allow 6 BFL singles to start in cgminer, but I receive a, "This device can perfom faster when plugged into a USB 2.0 port," message
- Plugging the 3 BFL singles that where not starting in cgminer into another computer directly to the front USB ports. None would start resulting in same COM errors (2.4.3)

At this point I'm trying to figure out if the USB hub, cables from hub --> singles, cgminer, or the singles themselves are the point of error. All singles light up and the fans spin. Any help would be greatly appreciated.

I'm pretty sure I've seen this before.  If you resize the window cgminer runs in, it might fix it.

M

Window size is already set to 87x56. I've tried increasing it upto 90x80, but it has no effect.

Pictures:




I just went and purchased a 4 port powered USB hub to test out if my 10 port was an issue along with some hardware to reassemble my 10th single. Out of the four singles attached to the new hub zero will start in cgminer. Using multiple rear USB 2/3 ports for the hub has no change. This almost added to the issues as now one of the BFL singles is not being assigned a COM number (Com 38, 39 ,Blank, 41). It should be 40, but that will not work either. With the four port hub added to the system I can now only get 5 singles to start in cgminer. This is pretty much driving me insane.
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
Yay, just compiled my own win32 2.4.4 with icarus support and no ocl adl etc.

Used the instructions here : http://pastebin.com/3pzivj32

Worked first time, happy camper.  Now I can copy the binaries onto my intel integrated devices and not have the usual no-sdk issues.

kind regards
Yep those instructions are part of cgminer:
https://github.com/ckolivas/cgminer/blob/master/windows-build.txt
member
Activity: 112
Merit: 10
Yay, just compiled my own win32 2.4.4 with icarus support and no ocl adl etc.

Used the instructions here : http://pastebin.com/3pzivj32

Worked first time, happy camper.  Now I can copy the binaries onto my intel integrated devices and not have the usual no-sdk issues.

kind regards
sr. member
Activity: 472
Merit: 250
Is there a known issue trying to run 5 or more BFL singles under windows in either 2.4.1 or 2.4.2?  2.3.6 seems to be able to handle 5 singles fine.  But every time I try to run all five under a single instance with 2.4.1 or 2.4.2, I get a crash in libpdcurses.dll.

Faulting application name: cgminer.exe, version: 0.0.0.0, time stamp: 0x4fcad128
Faulting module name: libpdcurses.dll, version: 0.0.0.0, time stamp: 0x4f460f95
Exception code: 0xc0000005
Fault offset: 0x000012fe
Faulting process id: 0xb24
Faulting application start time: 0x01cd419e02e067d8
Faulting application path: C:\Users\miner\Desktop\cgminer-2.4.2-win32\cgminer.exe
Faulting module path: C:\Users\miner\Desktop\cgminer-2.4.2-win32\libpdcurses.dll

I think I saw a thread elsewhere here that said if you increase the size of the command window in windows, it might solve this problem.

Yes, increasing the size of the command window (before starting cgminer) has helped people with similar symptoms.

(EDIT: I've seen you already got it working.)

To set a larger size as a default, hit start->run and type in cmd.exe; then click the black system icon in the top left corner of the command window that pops up. Choose 'properties'. The important thing here is the 'Layout' tab. Specifically Window Height. Set the Window height to 40 or 50. You can change the font as well to make it fit your monitor better. Click ok. You may then exit the command window. Any command window you open after this will come up with its new size.

There is a difference in how different versions of cgminer behave with Singles. 2.3.6 worked perfectly for me with up to 15 Singles. I since moved to 2.4.1 (and now 2.4.2) and have found that, using the same command line and command window layout size, 15 Singles crashes it. 2.4.1 are happy with 10 Singles, but not 15. 2.3.6 works fine with 15.

I don't know what broke between cgminer 2.3.6 and 2.4.1. It also behaves differently when Singles go offline; 2.3.6 just exited (which was good) but 2.4.1 and 2.4.2 just mark them as 'OFF' and do not exit (bad).

Win 7 x64
9x BFL Singles
10 Port powered USB hub


Issue: Neither 2.4.4 nor 2.3.6 will start more than 6 BFL singles

Troubleshooting:
- Multiple restarts usually resulting in BFL singles receiving different COM numbers than previous reboot
- Powering and unpowering USB hub
- Plugging USB hub into multiple USB 2 ports will cause zero BFL singles to start in cgminer
- Plugging into USB 3 port will allow 6 BFL singles to start in cgminer, but I receive a, "This device can perfom faster when plugged into a USB 2.0 port," message
- Plugging the 3 BFL singles that where not starting in cgminer into another computer directly to the front USB ports. None would start resulting in same COM errors (2.4.3)

At this point I'm trying to figure out if the USB hub, cables from hub --> singles, cgminer, or the singles themselves are the point of error. All singles light up and the fans spin. Any help would be greatly appreciated.

I'm pretty sure I've seen this before.  If you resize the window cgminer runs in, it might fix it.

M

Window size is already set to 87x56. I've tried increasing it upto 90x80, but it has no effect.

Pictures:


legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
...
Win 7 x64
9x BFL Singles
10 Port powered USB hub


Issue: Neither 2.4.4 nor 2.3.6 will start more than 6 BFL singles
...
At this point I'm trying to figure out if the USB hub, cables from hub --> singles, cgminer, or the singles themselves are the point of error. All singles light up and the fans spin. Any help would be greatly appreciated.
With 2.4.4 it detects 2 specific problems and displays a message:
1) Do not have user privileges required to open %s
2) %s is already in use by another process
If you are not getting either of those messages, then running cgminer also with the -D option it will give you a message why it can't start some of your BFLs

However, I guess the fix might be one of:
1) Try using "\\.\COMn" (not just "COMn") if you aren't already
2) use "bitforce:\\.\COMn" for all the devices (<- this is the most likely fix on Win 7 64bit)
legendary
Activity: 1540
Merit: 1001
Is there a known issue trying to run 5 or more BFL singles under windows in either 2.4.1 or 2.4.2?  2.3.6 seems to be able to handle 5 singles fine.  But every time I try to run all five under a single instance with 2.4.1 or 2.4.2, I get a crash in libpdcurses.dll.

Faulting application name: cgminer.exe, version: 0.0.0.0, time stamp: 0x4fcad128
Faulting module name: libpdcurses.dll, version: 0.0.0.0, time stamp: 0x4f460f95
Exception code: 0xc0000005
Fault offset: 0x000012fe
Faulting process id: 0xb24
Faulting application start time: 0x01cd419e02e067d8
Faulting application path: C:\Users\miner\Desktop\cgminer-2.4.2-win32\cgminer.exe
Faulting module path: C:\Users\miner\Desktop\cgminer-2.4.2-win32\libpdcurses.dll

I think I saw a thread elsewhere here that said if you increase the size of the command window in windows, it might solve this problem.

Yes, increasing the size of the command window (before starting cgminer) has helped people with similar symptoms.

(EDIT: I've seen you already got it working.)

To set a larger size as a default, hit start->run and type in cmd.exe; then click the black system icon in the top left corner of the command window that pops up. Choose 'properties'. The important thing here is the 'Layout' tab. Specifically Window Height. Set the Window height to 40 or 50. You can change the font as well to make it fit your monitor better. Click ok. You may then exit the command window. Any command window you open after this will come up with its new size.

There is a difference in how different versions of cgminer behave with Singles. 2.3.6 worked perfectly for me with up to 15 Singles. I since moved to 2.4.1 (and now 2.4.2) and have found that, using the same command line and command window layout size, 15 Singles crashes it. 2.4.1 are happy with 10 Singles, but not 15. 2.3.6 works fine with 15.

I don't know what broke between cgminer 2.3.6 and 2.4.1. It also behaves differently when Singles go offline; 2.3.6 just exited (which was good) but 2.4.1 and 2.4.2 just mark them as 'OFF' and do not exit (bad).

Win 7 x64
9x BFL Singles
10 Port powered USB hub


Issue: Neither 2.4.4 nor 2.3.6 will start more than 6 BFL singles

Troubleshooting:
- Multiple restarts usually resulting in BFL singles receiving different COM numbers than previous reboot
- Powering and unpowering USB hub
- Plugging USB hub into multiple USB 2 ports will cause zero BFL singles to start in cgminer
- Plugging into USB 3 port will allow 6 BFL singles to start in cgminer, but I receive a, "This device can perfom faster when plugged into a USB 2.0 port," message
- Plugging the 3 BFL singles that where not starting in cgminer into another computer directly to the front USB ports. None would start resulting in same COM errors (2.4.3)

At this point I'm trying to figure out if the USB hub, cables from hub --> singles, cgminer, or the singles themselves are the point of error. All singles light up and the fans spin. Any help would be greatly appreciated.

I'm pretty sure I've seen this before.  If you resize the window cgminer runs in, it might fix it.

M
sr. member
Activity: 472
Merit: 250
Is there a known issue trying to run 5 or more BFL singles under windows in either 2.4.1 or 2.4.2?  2.3.6 seems to be able to handle 5 singles fine.  But every time I try to run all five under a single instance with 2.4.1 or 2.4.2, I get a crash in libpdcurses.dll.

Faulting application name: cgminer.exe, version: 0.0.0.0, time stamp: 0x4fcad128
Faulting module name: libpdcurses.dll, version: 0.0.0.0, time stamp: 0x4f460f95
Exception code: 0xc0000005
Fault offset: 0x000012fe
Faulting process id: 0xb24
Faulting application start time: 0x01cd419e02e067d8
Faulting application path: C:\Users\miner\Desktop\cgminer-2.4.2-win32\cgminer.exe
Faulting module path: C:\Users\miner\Desktop\cgminer-2.4.2-win32\libpdcurses.dll

I think I saw a thread elsewhere here that said if you increase the size of the command window in windows, it might solve this problem.

Yes, increasing the size of the command window (before starting cgminer) has helped people with similar symptoms.

(EDIT: I've seen you already got it working.)

To set a larger size as a default, hit start->run and type in cmd.exe; then click the black system icon in the top left corner of the command window that pops up. Choose 'properties'. The important thing here is the 'Layout' tab. Specifically Window Height. Set the Window height to 40 or 50. You can change the font as well to make it fit your monitor better. Click ok. You may then exit the command window. Any command window you open after this will come up with its new size.

There is a difference in how different versions of cgminer behave with Singles. 2.3.6 worked perfectly for me with up to 15 Singles. I since moved to 2.4.1 (and now 2.4.2) and have found that, using the same command line and command window layout size, 15 Singles crashes it. 2.4.1 are happy with 10 Singles, but not 15. 2.3.6 works fine with 15.

I don't know what broke between cgminer 2.3.6 and 2.4.1. It also behaves differently when Singles go offline; 2.3.6 just exited (which was good) but 2.4.1 and 2.4.2 just mark them as 'OFF' and do not exit (bad).

Win 7 x64
9x BFL Singles
10 Port powered USB hub


Issue: Neither 2.4.4 nor 2.3.6 will start more than 6 BFL singles

Troubleshooting:
- Multiple restarts usually resulting in BFL singles receiving different COM numbers than previous reboot
- Powering and unpowering USB hub
- Plugging USB hub into multiple USB 2 ports will cause zero BFL singles to start in cgminer
- Plugging into USB 3 port will allow 6 BFL singles to start in cgminer, but I receive a, "This device can perfom faster when plugged into a USB 2.0 port," message
- Plugging the 3 BFL singles that where not starting in cgminer into another computer directly to the front USB ports. None would start resulting in same COM errors (2.4.3)

At this point I'm trying to figure out if the USB hub, cables from hub --> singles, cgminer, or the singles themselves are the point of error. All singles light up and the fans spin. Any help would be greatly appreciated.
legendary
Activity: 1540
Merit: 1001
Code:
elif header_hash in received_header_hashes:
print >>sys.stderr, 'Worker %s @ %s submitted share more than once!' % (request.getUser(), request.getClientIP())
This message is shown, when miner send exact same share that is already in share chain.

What p2pool version? It is very odd....

I confirmed, I'm getting it from all 3 miners, two are cgminer.  So I'm not sure this is a cgminer issue.

And I see it fairly regularly, enough that I can just watch the p2pool interface scroll by and they jump out at me.  My biggest miner sometimes has it 2x in a row.

I'm on p2pool 3.1, the latest as far as I can tell.  Windows version.

Should I cross post in the p2pool forum?
EDIT: posted into p2pool forum.

M
legendary
Activity: 1361
Merit: 1003
Don`t panic! Organize!
Code:
elif header_hash in received_header_hashes:
print >>sys.stderr, 'Worker %s @ %s submitted share more than once!' % (request.getUser(), request.getClientIP())
This message is shown, when miner send exact same share that is already in share chain.

What p2pool version? It is very odd....
legendary
Activity: 1540
Merit: 1001
I'm playing with p2pool again.  I have 3 miners pointing to a local pool.  Two are cgminer 2.4.4, one is phoenix 2.0.0.  I get this in the p2pool log every so often for cgminers, not sure about the phoenix miner:

2012-07-05 15:28:18.808000 > Worker q6600 @ 127.0.0.1 submitted share more than once!

p2pool, cgminer, or something else causing this?

M
Try use different login names for each worker.
Looks like different workers find exact same share and send it to p2pool, but it seems very unlikely near to impossible.

Each worker has it's own name.  miner1, miner2, q6600.

M
legendary
Activity: 1361
Merit: 1003
Don`t panic! Organize!
I'm playing with p2pool again.  I have 3 miners pointing to a local pool.  Two are cgminer 2.4.4, one is phoenix 2.0.0.  I get this in the p2pool log every so often for cgminers, not sure about the phoenix miner:

2012-07-05 15:28:18.808000 > Worker q6600 @ 127.0.0.1 submitted share more than once!

p2pool, cgminer, or something else causing this?

M
Try use different login names for each worker.
Looks like different workers find exact same share and send it to p2pool, but it seems very unlikely near to impossible.
Jump to: