Author

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

-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
So I have completed 3 major rewrites of the avalon driver code to improve it. One was playground for testing things out and never really built, but I'm left with two different rewrites, and a question for existing users.

The first is a complete rewrite of the read/write mechanism using the existing serial usb driver (ftdi) which should be much more robust at staying in sync with results coming in from the device, as well as more accurately picking when the device is misbehaving and hopefully be more reliable at resetting it. This code is currently in a git branch called avalon-serialdev .

The second is an even more complete rewrite, built on the avalon-serialdev one with direct USB bypassing the ftdi driver entirely. The avalon does some weird and (not so) wonderful things to emulate running serial at 115200 baud, and the ftdi chip has some serious limitations I never would have known about had I not started poking around (for instance, the driver reads from the device every 1 millisecond because the buffer is so small it easily overflows). The modified code is more efficient and uses a lot less OS-kernel time but the demonstrable CPU usage of cgminer itself looks the same. This code works reliably and solidly... on a linux PC. This code is currently in a git branch called avalon-usbdev .

Now this is where it gets tricky. The direct USB code does not really work at all on the MIPS router that is built into the Avalon device itself. I'm not really sure if it's a libusb limitation, a different implementation or what, but it just does not work, and what does work appears extraordinarily slow. Only installing usbmon onto the device will tell me for sure, and that's not as trivial as I wish it were. We'll see how much time I get in the future to investigate this and whether it's even worth doing or not.

So down to my questions. How many avalon users here wish to be running them via a PC instead of as the standalone device it is? I suspect precious few. How many of you even want to be building your own binaries versus the number downloading the latest firmware? It would be possible to release a new version of cgminer that has both drivers but that will become a maintenance burden long term - and without having an avalon myself, it could end up going to bitrot. I've already made massive improvements to the serial usb based code and would be happy to push that alone into the next cgminer version and Xiangfu should be able to make you all new firmware with it.

I should add the Avalon team have made it clear they will not be providing me with a free Avalon outright to further development. Talks continue on that front...
sr. member
Activity: 412
Merit: 250
thanks now works I have downloaded.
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
updating to 3.1.1 got me a 5 mhash/s on my 7970 Cheesy!
is there a 3.1.1. for windows too? I can't find to download it.

You could click on the link in the top post.

I did and site was down
Well there is exactly one line below that link:
"As a backup they can be downloaded here:"
sr. member
Activity: 412
Merit: 250
updating to 3.1.1 got me a 5 mhash/s on my 7970 Cheesy!
is there a 3.1.1. for windows too? I can't find to download it.

You could click on the link in the top post.

I did and site was down
newbie
Activity: 50
Merit: 0

What else is running?  I have 2 machines with the same setup with 4x7970 with no problems.

M

I had 2 separate machines - one connected via the LAN and one via wireless same internet connection, and they both did the same thing. I think it has something to do with a connection drop.

Does yours do it when your Internet connection pauses/hangs or drops?
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Windows 7 - 64bit
AMD 13.1 & 13.4 drivers. (And whatever sdk is with those)
Cgminer 3.1.1

What else is running?  I have 2 machines with the same setup with 4x7970 with no problems.
I suspect this is related to some reconnection or IP change or something along those lines so you need a flaky connection to have a problem.
newbie
Activity: 50
Merit: 0
Sweet mother of god, that's a lot of output.

I have it logging to a log file. I will keep an eye on the size so it doesn't blow out and fill the HDD.

Ass soon as it crashes I will give you the output of the last heap of lines.
legendary
Activity: 1540
Merit: 1001
Windows 7 - 64bit
AMD 13.1 & 13.4 drivers. (And whatever sdk is with those)
Cgminer 3.1.1

What else is running?  I have 2 machines with the same setup with 4x7970 with no problems.

M
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Unfortunately, it stopped again with the same error and did not restart. cgminer just hung.



Is there some type of logging I can turn on?
I'm quite sure it's just drowning deep in some windows networking code unable to resolve a new address while the old connection is stuck somewhere in the void... Usual debugging is to start with "-D -T --verbose" as well (as it says in the readme), but expect lots of noise spewed out. Not sure it will really help but at least it will identify what the last thing is it tries to do when it hangs.
newbie
Activity: 50
Merit: 0
ckolivas, I think the debug version of cgminer might me a bit old? It doesn't recognise the option "--scrypt"

Sorry to be a pain in the butt!
I just built it but I guess I missed that. Hang on while I make another.

haha thanks Smiley
Okay, try again.

Ok, all done. Its running now. I will let you know when it crashes (If it does) and gives me some output.

Is it ok to just post it here??

Unfortunately, it stopped again with the same error and did not restart. cgminer just hung.

http://users.on.net/pacey/error2.jpg

Is there some type of logging I can turn on?
newbie
Activity: 50
Merit: 0
Windows 7 - 64bit
AMD 13.1 & 13.4 drivers. (And whatever sdk is with those)
Cgminer 3.1.1
legendary
Activity: 1540
Merit: 1001
Can anyone help me? These drops and non restarts at 3-4-5am are making me lose hashes on my biggest machine Sad

What version of windows?

What AMD SDK/driver?


M
newbie
Activity: 50
Merit: 0
ckolivas, I think the debug version of cgminer might me a bit old? It doesn't recognise the option "--scrypt"

Sorry to be a pain in the butt!
I just built it but I guess I missed that. Hang on while I make another.

haha thanks Smiley
Okay, try again.

Ok, all done. Its running now. I will let you know when it crashes (If it does) and gives me some output.

Is it ok to just post it here??
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
ckolivas, I think the debug version of cgminer might me a bit old? It doesn't recognise the option "--scrypt"

Sorry to be a pain in the butt!
I just built it but I guess I missed that. Hang on while I make another.

haha thanks Smiley
Okay, try again.
newbie
Activity: 50
Merit: 0
ckolivas, I think the debug version of cgminer might me a bit old? It doesn't recognise the option "--scrypt"

Sorry to be a pain in the butt!
I just built it but I guess I missed that. Hang on while I make another.

haha thanks Smiley
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
ckolivas, I think the debug version of cgminer might me a bit old? It doesn't recognise the option "--scrypt"

Sorry to be a pain in the butt!
I just built it but I guess I missed that. Hang on while I make another.
newbie
Activity: 50
Merit: 0
Thanks mate, really appreciate it.

I have noticed lately that it doesn't crash any more, cgminer just hangs (Without the cgminer has stopped working window).

Does this mean the debugger won't give you the information you need?
Goddamnit windows. A debug build may behave differently anyway so it's still worth a shot.

ckolivas, I think the debug version of cgminer might me a bit old? It doesn't recognise the option "--scrypt"

Sorry to be a pain in the butt!
newbie
Activity: 50
Merit: 0
ok thanks, I will give it a shot, or try and make it crash.

Sorry about not using linux, lol.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Thanks mate, really appreciate it.

I have noticed lately that it doesn't crash any more, cgminer just hangs (Without the cgminer has stopped working window).

Does this mean the debugger won't give you the information you need?
Goddamnit windows. A debug build may behave differently anyway so it's still worth a shot.
newbie
Activity: 50
Merit: 0
I have a bit of an issue, maybe a bug in cgminer.

I have two machines running, one with 2 x 7950 and 1 x 7970. The other has a single 7970.

I get this error - Which I assume is my internet dropping and reconnecting:


One machine (The big one) cgminer crashes. The other machine with the single card, cgminer just hangs (Doesn't crash), and does nothing (Doesn't reconnect or resume hashing).


Can anyone give me any input as to fix this, or maybe tell it to reconnect? I'm thinking on my big machine, when cgminer crashes, this could be a bit more of an issue than just a simple reconnect?



Can anyone help me? These drops and non restarts at 3-4-5am are making me lose hashes on my biggest machine Sad
It's a unique windows only bug so we've not been able to reproduce it.
Try a debug build on windows.

Instructions for how to debug and the executables required are here:
http://ck.kolivas.org/apps/cgminer/debug/



Thanks mate, really appreciate it.

I have noticed lately that it doesn't crash any more, cgminer just hangs (Without the cgminer has stopped working window).

Does this mean the debugger won't give you the information you need?

Jump to: