Author

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

hero member
Activity: 924
Merit: 1000
Watch out for the "Neg-Rep-Dogie-Police".....
Auspicious occasion, solo mining confirmed working (no it's not my block).

https://blockchain.info/tx/f335e79ce0a8130efca4dcf0efc6e05f9e616e63a89ed8c2747ddd8d5de09d9e

The coinbase gives away that it was mined with cgminer, see decoded Smiley

First one ever in the UK?  Cheesy Cheesy
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
CKolivas, you probably need to find that user that gave you a u1  and ask for a u2. I think cgminer is having trouble finding these u2 devices. Mine looks like its mining but I'm missing 2 devices which I presume is the 2 devices I have. I keep trying to unplug the last 2 I see on the list to reset figuring they are the devices causing trouble but I still end up with 6 of 8 bitmain devices.

When I check devices I get this

Code:
Select an option or any other key to return
 [2014-03-22 21:50:41] USB list: Failed to open 2

Will your debug give you any ideas if I mess with that?
Debug build won't help as that is for crashes, but starting cgminer with the extra -D option will give more information.

What does "cgminer -n" show when you're not mining? Have you tried swapping  devices to see if it always maxes at 6? Do you have enough power to run all 8?
legendary
Activity: 3583
Merit: 1094
Think for yourself
Previous versions of CGMiner consumed 4 to 6MB RAM.  4.2 is now at 63MB, after 1 hour run time, and climbing steadily.  I had thought it was related to hotplug scanning the USB bus but after all AMU's were recognized I disabled Hotplug and it has continued to climb. 

Not a problem on my system at the moment, but it seems it could eventually cause a problem if it continues.
Thanks,
Sam

OK, I took my solo config out of my pool list completely, which was the Only GBT capable pool I have, and now after Hotplug has discovered all of my AMU's the memory utilization is solid at 8.172K and has not crept up since.  I did, again, disable hot plug after the last AMU was discovered.

So there seems to be a memory leak associated with GBT and/or Solo Mining.
It is normal for solo mining to use a busload extra ram because the protocol is very inefficient involving needing to store every single transaction's data from bitcoind. However it should stabilise after a period, depending on how many transactions are going through at any one time. I'll keep an eye on it but I didn't spot anything out of the ordinary in my testing, and currently am watching a rig with 42TH (not mine) solo mining without anything obvious.

OK, I went back to testing solo mining about 3 hours ago and its now at 138MB of RAM.  Everything seems to be working great though.  I'll see if the RAM usage has stabilized by morning.
Thanks,
Sam
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Auspicious occasion, solo mining confirmed working (no it's not my block).

https://blockchain.info/tx/f335e79ce0a8130efca4dcf0efc6e05f9e616e63a89ed8c2747ddd8d5de09d9e

The coinbase gives away that it was mined with cgminer, see decoded Smiley
hero member
Activity: 546
Merit: 500
CKOlivias, you probably need to find that user that gave you a u1  and ask for a u2. I think cgminer is having trouble finding these u2 devices. Mine looks like its mining but I'm missing 2 devices which I presume is the 2 devices I have. I keep trying to unplug the last 2 I see on the list to reset figureing they are the devices causing trouble but I still end up with 6 of 8 bitmain devices.

When I check devices I get this

Code:
Select an option or any other key to return
 [2014-03-22 21:50:41] USB list: Failed to open 2

Will your debug give you any ideas if I mess with that?
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Previous versions of CGMiner consumed 4 to 6MB RAM.  4.2 is now at 63MB, after 1 hour run time, and climbing steadily.  I had thought it was related to hotplug scanning the USB bus but after all AMU's were recognized I disabled Hotplug and it has continued to climb. 

Not a problem on my system at the moment, but it seems it could eventually cause a problem if it continues.
Thanks,
Sam

OK, I took my solo config out of my pool list completely, which was the Only GBT capable pool I have, and now after Hotplug has discovered all of my AMU's the memory utilization is solid at 8.172K and has not crept up since.  I did, again, disable hot plug after the last AMU was discovered.

So there seems to be a memory leak associated with GBT and/or Solo Mining.
It is normal for solo mining to use a busload extra ram because the protocol is very inefficient involving needing to store every single transaction's data from bitcoind. However it should stabilise after a period, depending on how many transactions are going through at any one time. I'll keep an eye on it but I didn't spot anything out of the ordinary in my testing, and currently am watching a rig with 42TH (not mine) solo mining without anything obvious.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Sometimes I am getting this:

Just for the case it is miner issue not famous BFL.
It means you are getting corrupted messages from the device and cgminer is showing you how it's trying to work around it. Could be a problem with cables, temperature/cooling etc. If they only intermittently occur and it keeps mining ok then there's nothing to do about it. It does look on your stats like they're mining ok.
full member
Activity: 217
Merit: 101
Sometimes I am getting this:

Just for the case it is miner issue not famous BFL.
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
...

Thanks for this Kano. The binary runs fine on my ants.
However, I tried adding bitmain_temp and bitmain_overheat to /etc/config/cgminer but they don't seem to make any difference to the running temperature of the ant.
Should I just be changing the existing target and overheat options, or do I replace them with the bitmain options?
Or should I be putting them somewhere different?

The change I added simply throttles the mining (it just slows down sending work) if it exceeds the bitmain_overheat and keeps doing that until it gets back to bitmain_temp

To use it, you'll have to edit /etc/init.d/cgminer and add the options in there.
Yeah it's rather odd how they simply disabled the extra options when they copied the luci code from avalon.

I have had to modify /etc/init.d/cgminer on my ants as well since they actually messed it up - it runs cgminer twice in that script, first time directly and 2nd time properly
You can see the two times:
1)
 $APP --lowmem --bitmain-options 115200:32:8:$_T0:$_cf:$_regv -q >/dev/null 2>&1

2)
 start-stop-daemon -S -x $APP -p $PID_FILE -m -b -- $PARAMS

You're best to comment out the first one (put a # in front of it) then edit the:
 PARAMS=" --lowmem $AOPTIONS $POOL1 $POOL2 $POOL3 $_pb --api-allow $_aa --api-listen"
and add your options on the end


.... HOWEVER ... these is a way you can hack options into that line using the luci web interface Smiley
If you add them on the end of a pool password:
e.g. say your pool1 password is "x" then in the luci web interface you can set it to:
"x --bitmain-temp 50 --bitmain-cutoff 60"

I used this to set the --api-description e.g. set pool1 password to:
"x --api-description Ant90"

i.e. you can use this hack in the luci web interface to add any cgminer options - on any version of the ant with any cgminer binary.
full member
Activity: 154
Merit: 100
Well ... that was unexpected.

Here's another new AntS1 binary.

The comment I made about the last version having Temperature Management in it was wrong.
Oops.

I did enable the flag in the code (which doesn't work in Bitmain's version) but I didn't realise there was no code using the flag until someone pointed it out to me later.
In fact 7 of the 8 options passed to the Bitmain code are ignored:
bitmain_temp, bitmain_overheat, bitmain_fan_min, bitmain_fan_max, bitmain_freq_min, bitmain_freq_max and bitmain_auto

Anyway, this new binary DOES have Temperature Management code in it that I've written and tested for 24 hours now on all 3 of my ants.
It takes notice of bitmain_temp and bitmain_overheat

It uses the same patch as before for the luci display.
My source for this version is here:
https://github.com/kanoi/cgminer/tree/ants1-4.2.0-c85d846a

The binary and README are in my cgminer-binaries git here:
https://github.com/kanoi/cgminer-binaries/tree/master/AntS1  <-- Follow this link to get the new binary

Read the README on the screen there for how to replace the /usr/bin/cgminer binary in your AntS1 with the new one.

This binary includes all cgminer changes up to 4.2.0 and forward after that up to:
https://github.com/ckolivas/cgminer/commit/4e05c30bfa12d658253ea670995156e069fdb5f0

The specific AntS1 changes this time really does include:
Perform temperature management (it doesn't work in the Bitmain code)

I have had one person report that they cannot run the binary.
I've no idea why - since others have had no trouble running yesterdays binary.
If you cannot run this binary please let me know.
I'm chasing up someone with literally hundreds of ants and hoping they'll use it and get expected results.

Thanks for this Kano. The binary runs fine on my ants.
However, I tried adding bitmain_temp and bitmain_overheat to /etc/config/cgminer but they don't seem to make any difference to the running temperature of the ant.
Should I just be changing the existing target and overheat options, or do I replace them with the bitmain options?
Or should I be putting them somewhere different?


legendary
Activity: 3583
Merit: 1094
Think for yourself
Previous versions of CGMiner consumed 4 to 6MB RAM.  4.2 is now at 63MB, after 1 hour run time, and climbing steadily.  I had thought it was related to hotplug scanning the USB bus but after all AMU's were recognized I disabled Hotplug and it has continued to climb. 

Not a problem on my system at the moment, but it seems it could eventually cause a problem if it continues.
Thanks,
Sam

OK, I took my solo config out of my pool list completely, which was the Only GBT capable pool I have, and now after Hotplug has discovered all of my AMU's the memory utilization is solid at 8.172K and has not crept up since.  I did, again, disable hot plug after the last AMU was discovered.

So there seems to be a memory leak associated with GBT and/or Solo Mining.

WinVista 32 bit
4GB RAM
3Ghz Pentium 4.

Thanks,
Sam
legendary
Activity: 3583
Merit: 1094
Think for yourself
Previous versions of CGMiner consumed 4 to 6MB RAM.  4.2 is now at 63MB, after 1 hour run time, and climbing steadily.  I had thought it was related to hotplug scanning the USB bus but after all AMU's were recognized I disabled Hotplug and it has continued to climb. 

Not a problem on my system at the moment, but it seems it could eventually cause a problem if it continues.
Thanks,
Sam
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
...
I also now noticed there is a bug in LSTime that was mentioned earlier, the time isn't displayed properly.

Thanks for the update Smiley
Yeah a fix for that is looking unlikely now ... I've been looking into it in the last few hours ...

They changed the code that outputs the "Last Share Time" somewhere recently between Ant S1 versions.

So it makes it a bit beyond silly having the API break it's extremely reliable backward compatibility for a silly change like that ...
If it was a new field, that's no issue to add to my API hack/fix, but changing an existing field from a unix time number to a h:m:s string is a problem.
legendary
Activity: 3583
Merit: 1094
Think for yourself
Does the latest version of CGminer still support scrypt?

No

I've finally bitten the bullet and killed off GPU mining from the code and it will not be in the release I'm about to post. I have given ample warning that this was coming for some time on this forum thread and IRC about this and its time has come. It's also worth noting that even GPU mining has been used lately for botnets so cgminer once again is being flagged inappropriately as malware or a virus by various "authorities". I have left a 3.7 branch on git that is based on the last code that support GPU, OpenCL and scrypt code for those who wish to use it, but it is basically unchanged in terms of its mining code for GPUs compared with 3.7.2 which will be the last official release with GPU support. You are most welcome to fork, maintain, extend etc. the existing code provided you abide by the GPLv3 copyright restrictions that cgminer is released under. I am making a conscious decision and taking a stance to only support bitcoin by doing this and will consider all discussions regarding alternative cryptocurrencies as offtopic from here on. It is absolutely clear that we are in a stage where only ASICs matter in mining bitcoin, and cgminer is moving with the rapidly changing landscape that is bitcoin mining.
sr. member
Activity: 364
Merit: 250
Does the latest version of CGminer still support scrypt?
hero member
Activity: 546
Merit: 500


Thanks for the information, this is what it looks like now (I still wish the values were doubled though)!



Has anyone tried to bump these u2 miners up.  2.0GH is the start speed so I'd hope we'd get close to 2.5 or 2.6GH

Size being a secondary issue it took a long while for cgminer to see it . I have in total 8 of a combination of u1's and 2's but I only showed 7 till I restarted. I'm still having troubles where the u2 device's lights wont go on or the way I expect them. The one I thought I would need to return is working properly and the one I didn'ts lights don't come on when I shut down cgminer.

These u2's are picky buggers  but it may just be they are different enough to cause me migranes Wink
newbie
Activity: 44
Merit: 0
Well ... that was unexpected.

Here's another new AntS1 binary.

The comment I made about the last version having Temperature Management in it was wrong.
Oops.

I did enable the flag in the code (which doesn't work in Bitmain's version) but I didn't realise there was no code using the flag until someone pointed it out to me later.
In fact 7 of the 8 options passed to the Bitmain code are ignored:
bitmain_temp, bitmain_overheat, bitmain_fan_min, bitmain_fan_max, bitmain_freq_min, bitmain_freq_max and bitmain_auto

Anyway, this new binary DOES have Temperature Management code in it that I've written and tested for 24 hours now on all 3 of my ants.
It takes notice of bitmain_temp and bitmain_overheat

It uses the same patch as before for the luci display.
My source for this version is here:
https://github.com/kanoi/cgminer/tree/ants1-4.2.0-c85d846a

The binary and README are in my cgminer-binaries git here:
https://github.com/kanoi/cgminer-binaries/tree/master/AntS1  <-- Follow this link to get the new binary

Read the README on the screen there for how to replace the /usr/bin/cgminer binary in your AntS1 with the new one.

This binary includes all cgminer changes up to 4.2.0 and forward after that up to:
https://github.com/ckolivas/cgminer/commit/4e05c30bfa12d658253ea670995156e069fdb5f0

The specific AntS1 changes this time really does include:
Perform temperature management (it doesn't work in the Bitmain code)

I have had one person report that they cannot run the binary.
I've no idea why - since others have had no trouble running yesterdays binary.
If you cannot run this binary please let me know.
I'm chasing up someone with literally hundreds of ants and hoping they'll use it and get expected results.

Nice work, I noticed when I updated my some of my Antminer S1 that a soft reset was needed.
I saw improvements on loading and response time in the web interface.
I also now noticed there is a bug in LSTime that was mentioned earlier, the time isn't displayed properly.

Thanks for the update Smiley
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
Edit: there's a later 4.2.0 update here: https://bitcointalksearch.org/topic/m.5856097

Well ... that was unexpected.

Here's another new AntS1 binary.

The comment I made about the last version having Temperature Management in it was wrong.
Oops.

I did enable the flag in the code (which doesn't work in Bitmain's version) but I didn't realise there was no code using the flag until someone pointed it out to me later.
In fact 7 of the 8 options passed to the Bitmain code are ignored:
bitmain_temp, bitmain_overheat, bitmain_fan_min, bitmain_fan_max, bitmain_freq_min, bitmain_freq_max and bitmain_auto

Anyway, this new binary DOES have Temperature Management code in it that I've written and tested for 24 hours now on all 3 of my ants.
It takes notice of bitmain_temp and bitmain_overheat

It uses the same patch as before for the luci display.
My source for this version is here:
https://github.com/kanoi/cgminer/tree/ants1-4.2.0-c85d846a

The binary and README are in my cgminer-binaries git here:
https://github.com/kanoi/cgminer-binaries/tree/master/AntS1  <-- Follow this link to get the new binary

Read the README on the screen there for how to replace the /usr/bin/cgminer binary in your AntS1 with the new one.

This binary includes all cgminer changes up to 4.2.0 and forward after that up to:
https://github.com/ckolivas/cgminer/commit/4e05c30bfa12d658253ea670995156e069fdb5f0

The specific AntS1 changes this time really does include:
Perform temperature management (it doesn't work in the Bitmain code)

I have had one person report that they cannot run the binary.
I've no idea why - since others have had no trouble running yesterdays binary.
If you cannot run this binary please let me know.
I'm chasing up someone with literally hundreds of ants and hoping they'll use it and get expected results.
legendary
Activity: 4592
Merit: 1851
Linux since 1997 RedHat 4
It's no big deal. I'll change the default to not work without an address for the next version.
That sux.

I wonder why you would do this?

If anyone goes out and pays for big mining hardware - like an Ant, or Avalon (and I don't know what else)
the device will be configured to mine for Ant or Avalon when it arrives.
You switch it on and it mines for them.
This was VERY prevalent in the past with Avalon, the number of people mining for them when they got devices.

But here when you give out free software, you have people complaining about how it might mine for you if they haven't configured it right.

I don't have any respect at all for those above complaining about it.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
It's no big deal. I'll change the default to not work without an address for the next version.
Jump to: