Author

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

-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
I will do as suggested. I do have HEX16A. And i am playing with them for the moment

I will let you know if i find out what happens related to your code as long hex16 is not pushed to your git ...
Ah in that case, make sure your report your bug to the hex16 maintainer, not me since it's not cgminer code.
legendary
Activity: 1610
Merit: 1000

PS- Why did you disable Avalon lock lately? If everything is ok the lock shall be ok also.
Everything was not okay with the avalon. There are recursive locks called in a different order from the async flush code and the avalon code. Recursive locks in a different order cause deadlocks.

If you are having deadlocks then perhaps you have a hardware driver with a similar problem. The one I have not been able to fully audit so far is the klondike driver which may be prone to the same problem.

Thank you con!!!!

You do not mind to spam the thread now and then do you? I am finding bugs from time to times Smiley

I am joking..Thank you very much
Absolutely do not mind at all. People auditing code is rare, and reporting meaningful bugs is the key to fixing them. What hardware do you have anyway, if you are having deadlock problems?

By the way, if you can reliably reproduce what appears to be a deadlock, make sure you have the absolute latest git, edit miner.h to enable LOCK_TRACKING
change line 765
Code:
#define LOCK_TRACKING 0
to
Code:
#define LOCK_TRACKING 1
and start cgminer logging the output and with the API enabled with for example the following extra options:
Code:
--api-listen --api-allow "W:127.0.0.1" 2>log.txt
and when you see a deadlock send the command to get a summary of the lock status with
Code:
java API lockstats
This should spew extra information into the logging file you generated called log.txt which will allow me to see how the deadlock was caused.



Thank You!

I will do as suggested. I do have HEX16A. And i am playing with them for the moment

I will let you know if i find out what happens related to your code as long hex16 is not pushed to your git ...
Best
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/

PS- Why did you disable Avalon lock lately? If everything is ok the lock shall be ok also.
Everything was not okay with the avalon. There are recursive locks called in a different order from the async flush code and the avalon code. Recursive locks in a different order cause deadlocks.

If you are having deadlocks then perhaps you have a hardware driver with a similar problem. The one I have not been able to fully audit so far is the klondike driver which may be prone to the same problem.

Thank you con!!!!

You do not mind to spam the thread now and then do you? I am finding bugs from time to times Smiley

I am joking..Thank you very much
Absolutely do not mind at all. People auditing code is rare, and reporting meaningful bugs is the key to fixing them. What hardware do you have anyway, if you are having deadlock problems?

By the way, if you can reliably reproduce what appears to be a deadlock, make sure you have the absolute latest git, edit miner.h to enable LOCK_TRACKING
change line 765
Code:
#define LOCK_TRACKING 0
to
Code:
#define LOCK_TRACKING 1
and start cgminer logging the output and with the API enabled with for example the following extra options:
Code:
--api-listen --api-allow "W:127.0.0.1" 2>log.txt
and when you see a deadlock send the command to get a summary of the lock status with
Code:
java API lockstats
This should spew extra information into the logging file you generated called log.txt which will allow me to see how the deadlock was caused.

legendary
Activity: 1610
Merit: 1000

PS- Why did you disable Avalon lock lately? If everything is ok the lock shall be ok also.
Everything was not okay with the avalon. There are recursive locks called in a different order from the async flush code and the avalon code. Recursive locks in a different order cause deadlocks.

If you are having deadlocks then perhaps you have a hardware driver with a similar problem. The one I have not been able to fully audit so far is the klondike driver which may be prone to the same problem.

Thank you con!!!!

You do not mind to spam the thread now and then do you? I am finding bugs from time to times Smiley

I am joking..Thank you very much

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

PS- Why did you disable Avalon lock lately? If everything is ok the lock shall be ok also.
Everything was not okay with the avalon. There are recursive locks called in a different order from the async flush code and the avalon code. Recursive locks in a different order cause deadlocks.

If you are having deadlocks then perhaps you have a hardware driver with a similar problem. The one I have not been able to fully audit so far is the klondike driver which may be prone to the same problem.
legendary
Activity: 1610
Merit: 1000
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
legendary
Activity: 1610
Merit: 1000
Hello

I do think that this piece of code can create dead locks we are waiting to be awaken pthread_cond_wait holding lock mutex_lock(stgd_lock);

      mutex_lock(stgd_lock);
      ts = __total_staged();

      if (!pool_localgen(cp) && !ts && !opt_fail_only)
         lagging = true;

      /* Wait until hash_pop tells us we need to create more work */
      if (ts > max_staged) {
         pthread_cond_wait(&gws_cond, stgd_lock);
         ts = __total_staged();
      }
      mutex_unlock(stgd_lock);


From the other side wake_gws needs same lock and so on and so on....Con please take a look at it when you can

static void wake_gws(void)
{
   mutex_lock(stgd_lock);
   pthread_cond_signal(&gws_cond);
   mutex_unlock(stgd_lock);
}

A quick fix might be

      mutex_lock(stgd_lock);
      ts = __total_staged();
                 mutex_unlock(stgd_lock);

      if (!pool_localgen(cp) && !ts && !opt_fail_only)
         lagging = true;

      /* Wait until hash_pop tells us we need to create more work */
      if (ts > max_staged) {
         pthread_cond_wait(&gws_cond, stgd_lock);
         mutex_lock(stgd_lock);
                        ts = __total_staged();
                        mutex_unlock(stgd_lock);

      }


sr. member
Activity: 388
Merit: 250
"The needs of the many outweigh the needs of the few or the one."

He is not getting any substantial donations to maintain the scrypt code and GPU mining is pretty much dead.

It is the correct decision IMO.
Are you seriously suggesting that nobody is mining altcoins? Just because GPU mining BTC isn't profitable doesn't mean shit. Hell, even with the drop in price, Litecoin mining can still net you a couple hundred a month with just two GPUs. Also, don't many ASIC miner rigs come with their own built-in mining software? Anyway, I highly doubt that maintaining and even tweaking scrypt support that is only a thousand lines of code is so arduous as to require substantial donations, but that is his choice. Someone will pick up the slack.

cbuchner1 has his own CUDAminer for nVidia cards at the moment, so it wouldn't be too much of stretch for someone else to do a dedicated miner for AMD cards that is more optimised for them rather than a catch-all program like cgminer. I also imagine once the Scrypt FPGA miners start being released soon, more attention might given to developing dedicated scrypt miners for them as well.

Personally, I'm waiting on the development of a USB stick scrypt miner that I saw in another thread somewhere, so I don't have to run my PC 24/7 and could possibly delegate to my Raspberry Pi.
sr. member
Activity: 383
Merit: 250
"The needs of the many outweigh the needs of the few or the one."

He is not getting any substantial donations to maintain the scrypt code and GPU mining is pretty much dead.

It is the correct decision IMO.
Are you seriously suggesting that nobody is mining altcoins? Just because GPU mining BTC isn't profitable doesn't mean shit. Hell, even with the drop in price, Litecoin mining can still net you a couple hundred a month with just two GPUs. Also, don't many ASIC miner rigs come with their own built-in mining software? Anyway, I highly doubt that maintaining and even tweaking scrypt support that is only a thousand lines of code is so arduous as to require substantial donations, but that is his choice. Someone will pick up the slack.

I did not say or suggest that "nobody is mining altcoins". GPU mining for Bitcoins is dead. If you still want to mine altcoions then do so by using an older version that works. As for your question about ASIC hardware coming with their own built-in software the answer is no. Most do not have built-in mining software, which you could have found out with a little reading here on the forum.

If you want changes to the code, use an older version and modify it yourself or maybe someone will pick it up and maintain a fork.

I'm guessing you have profited much more than you have donated. If that is the case, then you really don't have a leg to stand on here and your getting way more than you paid for.

Please continue on with your temper tantrum. It is most entertaining to read.
legendary
Activity: 3583
Merit: 1094
Think for yourself
Seriously, though, mining BTC is dead

The price of Bitcoin reflects that too, right?
legendary
Activity: 3583
Merit: 1094
Think for yourself
Just a thought, have you tried running 30 in one instance of cgminer and the other 30 in a second instance?

60 USB Miners work 61 does not.  It doesn't matter how you split them up in multiple instances.  If I plug in 61 devices and start CGMiner it says no USB Devices found.  If I remove one then it takes off and starts mining.  So I seem to max out with 59 BE's in one instance and 1 Jalapeno in another.

Thanks,
Sam

os2sam: What operating system ?. There was a fella on irc talking to conman who is able to run 243 AMUs on one instance of cgminer.

Win7 64 bit.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Someone will pick up the slack.
That would be fine by me. I write software either because I enjoy doing it, or I earn money for it, or both. I'm writing/maintaining cgminer because I believe in bitcoin and I like to earn bitcoin. I unashamedly wrote the scrypt support for a generous bitcoin fee a long time ago so it was purely for the payment. I have no interest in altcoins so someone else should be maintaining it. Just because others have an interest in altcoins doesn't mean that I have to.
full member
Activity: 449
Merit: 103
Decentralized Ascending Auctions on Blockchain
"The needs of the many outweigh the needs of the few or the one."

He is not getting any substantial donations to maintain the scrypt code and GPU mining is pretty much dead.

It is the correct decision IMO.
Are you seriously suggesting that nobody is mining altcoins? Just because GPU mining BTC isn't profitable doesn't mean shit. Hell, even with the drop in price, Litecoin mining can still net you a couple hundred a month with just two GPUs. Also, don't many ASIC miner rigs come with their own built-in mining software? Anyway, I highly doubt that maintaining and even tweaking scrypt support that is only a thousand lines of code is so arduous as to require substantial donations, but that is his choice. Someone will pick up the slack.
sr. member
Activity: 383
Merit: 250
Scrypt and opencl support is being deprecated in the near future, and development for other coins is not going to happen, so sorry but there is no plan for improving support for other coins.
Might as well rename it assminer then.  Roll Eyes

Seriously, though, mining BTC is dead for most except those lucky enough to have lots of BTC already or lots of disposable income to waste on over-priced embedded junk. Oh well, guess that's my problem.

I don't see why you drop scrypt, but that's your choice. No point in donating now, I suppose.

"The needs of the many outweigh the needs of the few or the one."

He is not getting any substantial donations to maintain the scrypt code and GPU mining is pretty much dead.

It is the correct decision IMO.
full member
Activity: 449
Merit: 103
Decentralized Ascending Auctions on Blockchain
Scrypt and opencl support is being deprecated in the near future, and development for other coins is not going to happen, so sorry but there is no plan for improving support for other coins.
Might as well rename it assminer then.  Roll Eyes

Seriously, though, mining BTC is dead for most except those lucky enough to have lots of BTC already or lots of disposable income to waste on over-priced embedded junk. Oh well, guess that's my problem.

I don't see why you drop scrypt, but that's your choice. No point in donating now, I suppose.
sr. member
Activity: 257
Merit: 250
Just a thought, have you tried running 30 in one instance of cgminer and the other 30 in a second instance?

60 USB Miners work 61 does not.  It doesn't matter how you split them up in multiple instances.  If I plug in 61 devices and start CGMiner it says no USB Devices found.  If I remove one then it takes off and starts mining.  So I seem to max out with 59 BE's in one instance and 1 Jalapeno in another.

Thanks,
Sam

os2sam: What operating system ?. There was a fella on irc talking to conman who is able to run 243 AMUs on one instance of cgminer.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Scrypt and opencl support is being deprecated in the near future, and development for other coins is not going to happen, so sorry but there is no plan for improving support for other coins.
full member
Activity: 449
Merit: 103
Decentralized Ascending Auctions on Blockchain
Thanks for the work on fixing scrypt share difficulty. For the most part, it has been working fine. However, I've been having issues with Novacoin p2pools.

I have been mining Novacoin through stratum p2pool at http://fsb4000.no-ip.biz:8336. It requires a public key (instead of the usual wallet address) for the username, check the Novacoin altcoin thread for further details.

I am using Xubuntu 13.10 on amd64 with 3 Sapphire 7950s using fglrx-updates 2:13.101-0ubuntu3 and gcc 4:4.8.1-2ubuntu3.

It more or less works nicely at git revision 8e5dc21ea68d3ec4198e577a1073a32fcddcbcb9, generating shares as expected and finally reporting >0 stats. However, it spams about finding blocks, which is wrong, but that is only a minor annoyance.

Pulling past that point results in core dumps, except in the case of the very latest pulls, which--for Novacoin p2pools only--results in 100% false positives for hardware errors on all GPUS. hard resetting back to 8e5dc21ea68d3ec4198e577a1073a32fcddcbcb9 yields a working cgminer for Novacoin p2pools).

Here is the output of cgminer compiled from the latest git pull on the aforementioned Novacoin p2pool:
Code:
 [2013-11-08 14:43:52] Started cgminer 3.7.2
 [2013-11-08 14:43:54] Probing for an alive pool
 [2013-11-08 14:43:55] Pool 0 difficulty changed to 0.000697
 [2013-11-08 14:43:56] Network diff set to 313
 [2013-11-08 14:43:56] Stratum from pool 0 requested work restart
 [2013-11-08 14:43:59] GPU2: invalid nonce count - HW error
 [2013-11-08 14:43:59] GPU1: invalid nonce count - HW error
 [2013-11-08 14:43:59] GPU0: invalid nonce count - HW error
 [2013-11-08 14:44:01] GPU2: invalid nonce count - HW error
 [2013-11-08 14:44:01] GPU0: invalid nonce count - HW error
 [2013-11-08 14:44:01] GPU1: invalid nonce count - HW error
The output continues with not a single good share being accepted.

I suspect the issue has to do with the share difficulty being very low, but that is how they (the Novacoin developers) want the p2pool configured. I will continue to use 8e5dc21ea68d3ec4198e577a1073a32fcddcbcb9 as it seems to work well enough, but hopefully this can be resolved in future cgminers.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Does sgminer run with Nanofury NF1 USB-sticks?

If yes - how can i get it to work?
No

No chance you will implement nanofury support in the near future?

I really don't want to use the evil twin of cgminer.  Wink
I'll be sent one in the future, and then a driver will be developed for it. No idea of timeframe.
Jump to: