Bitcoin Forum
June 07, 2024, 02:02:24 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 ... 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 [439] 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 ... 570 »
8761  Alternate cryptocurrencies / Altcoin Discussion / Re: [ANN] Stratum support for scrypt mining has been added for cgminer/reaper on: December 25, 2012, 11:57:20 PM
Updated cgminer and tested it successfully mining on the only stratum ltc pool:
https://bitcointalk.org/index.php?topic=28402.msg1419834#msg1419834
(lots of other new scrypt goodies in this release too).

8762  Bitcoin / Mining software (miners) / Re: CGMINER GPU FPGA overc monit fanspd RPC stratum linux/windws/osx/mip/r-pi 2.10.2 on: December 25, 2012, 11:36:30 PM
New release: 2.10.3 - 26th December 2012

What a difference xmas makes.


Human readable changelog:

When switching from a stratum pool to another one, the last few shares were dropped and the share submission failure message was displayed.
There may have been stratum messages waiting to be parsed and cgminer would only parse them once a new message was received. This fix could potentially give even lower rejects!
There is now a [Z]ero stats option under the display menu which resets all the visible statistics.
Fixed the best_share displayed bug.
The current pool target diff is now shown in the status line like so:
Code:
 Connected to au.ozco.in diff 2 with stratum as user ckolivas.0

The current block target diff is now shown in the status line like so:
Code:
 Block: 01f8c77ced4b9c2a...  Diff:3.37M  Started: [10:01:27]  Best share: 129

Block solve detection is now supported with scrypt mining as well (BLOCK! written at end of share and solved blocks listed under pool stats).
Fixed a crash with rolltime pools.
Stratum support for scrypt mining.


Full changelog:

- Do not give the share submission failure message on planned stratum
disconnects.
- Parse anything in the stratum socket if it's full without waiting. Empty the
socket even if a connection is not needed in case there are share returns.
- Provide a mechanism to zero all the statistics from the menu.
- Display the current pool diff in the status line.
- Display block diff in status line.
- Generalise the code for solving a block to enable block solve detection with
scrypt mining.
- Generate the output hash for scrypt as well and use the one function to set
share_diff.
- Use the flip80 function in regeneratehash and the correct sized hash array.
- Use one size for scratchbuf as a macro in scrypt.c
- Stage work outside of the stgd lock to prevent attempted recursive locking in
clone_available.
- share_diff needs to be performed on a BE version of the output hash to work,
leading to false best_share values as spotted by luke-Jr.
- Remove the unused sha224 functions.
- Use the flip functions in hashtest.
- Simplify the setting of the nonce data field in work on submitting nonces.
- Scrypt code does not enter the hashtest function.
- Go back to cloning available work under staged lock.
- Updated links to AMD APP SDK
- Updated link to ADL SDK
- scrypt_diff uses a uint64_t as well.
- Correct target for stratum support with scrypt mining.
- libztex: fixed a typo
- libztex: check returnvalue of libusb_claim_interface() and release the
interface in case of early exit
8763  Bitcoin / Pools / Re: Pay On Target: New High variance payout System Offered by Ozcoin on: December 24, 2012, 03:08:27 AM
Oh, OK thanks...at least I know what´s going on.
(crap, another false best share at 675k)

Is that fix from...the Unnamed one gonna solve the issue? (cgminer thread)
I'm investigating, but I will not be pulling in his code.
Should be fixed in git now.
8764  Bitcoin / Pools / Re: Pay On Target: New High variance payout System Offered by Ozcoin on: December 24, 2012, 01:38:58 AM
Argh, this is really frustrating. I had several best shares (reported by cgminer) that never appeared in Ozcoin stats.
I just had one at 58.5k and the higher reported share is 278.

Few hours ago I had (at least) one at 61k, one at 40k and one at 980k, all of them lost...I mean come on, what´s the point?

Is cgminer still reporting false best shares...or something broken in between...?

(running cgminer 2.10.2 with the best share bug fixed)


Alas the best share bug is NOT fixed, sorry.
8765  Bitcoin / Mining software (miners) / Re: CGMINER GPU FPGA overc monit fanspd RPC stratum linux/windws/osx/mip/r-pi 2.10.1 on: December 23, 2012, 11:28:01 PM
I hacked
static bool __clone_available(void)
{
        struct work *work, *tmp;
        bool cloned = false;

        mutex_lock(stgd_lock);
        if (!staged_rollable) {
                mutex_unlock(stgd_lock);
                goto out;
        }
        mutex_unlock(stgd_lock);
For the first function, you should note
Code:
/* Called with stgd_lock held */
static bool __clone_available(void)
Meh the lock got lost in the rework for 2.10, will fix in git. This is likely your problem after all, thanks!
8766  Bitcoin / Mining software (miners) / Re: CGMINER GPU FPGA overc monit fanspd RPC stratum linux/windws/osx/mip/r-pi 2.10.1 on: December 23, 2012, 11:09:31 PM
It fixes the shares looking high because the (I am guessing backup Bitcoin) target is far higher. I would rather see what the highest achieved was not the highest accepted was. Cool

Seems like a solution in search of a problem.
Both before and after intend to show the highest achieved. But the cgminer code calculated the hash twice, in two different ways, and the hash-to-difficulty code assumed it was one of those ways. When the share doesn't meet the pool target, the hash-to-difficulty code was run on it with its hash calculated the opposite way, and as a result gave the wrong result. My rewrite cleans up the code so it's actually readable, and makes the share->hash value always consistent with SHA256 and the share_diff function expectations.

I also wrote a much-less-changed fix for BFGMiner 2.8.x and 2.9.x: https://github.com/luke-jr/bfgminer/commit/006faac
This one doesn't clean up the code to make it more readable, though. But as a diff, it is easier to see what the problem was.
The function you replaced works fine and does exactly what I wrote it to do 15 months ago.
Check and see if it was a block based on the block header difficulty.
... though as I said, it's way faster that your replacement - which most likely is code you just copied out of elsewhere (and now say it's yours)

Oddly enough that's still required in cgminer - I guess the clone doesn't need that any more Tongue
There is nothing to clean up except your retarded brain not being able to understand the simple original code I wrote.

I think there's a valid point here though. His version of your code is not the issue here but rather a problem with the hash when it hits the share_diff function in cgminer.
8767  Bitcoin / Mining software (miners) / Re: CGMINER GPU FPGA overc monit fanspd RPC stratum linux/windws/osx/mip/r-pi 2.10.1 on: December 23, 2012, 11:04:58 PM
I hacked
static bool __clone_available(void)
{
        struct work *work, *tmp;
        bool cloned = false;

        mutex_lock(stgd_lock);
        if (!staged_rollable) {
                mutex_unlock(stgd_lock);
                goto out;
        }
        mutex_unlock(stgd_lock);
I do not know if it is OK but from what i can see there is race condition accessing staged_rollable or at least i think so
I will let you know if it crashesh again


For me it seems that stage_work called from  __clone_available crashed
From the other hand

static void stage_work(struct work *work)
{
   applog(LOG_DEBUG, "Pushing work from pool %d to hash queue", work->pool->pool_no);
   work->work_block = work_block;

static unsigned int work_block; is a global and it has been never locked, so maybe a instance of test_work_current was trying to change it
work->work_block = ++work_block; and race conditions occurred?

I am not both c and threads expert, but as long as i know each global var shall be locked when changed. Maybe when read also but it depends on gcc os and whatever. Is that true? If yes we have a potential code that can cause core dumps because of it

I do not how to lock work->work_block = ++work_block; so i am running same version with staged_rollable locked and i do expect within a day or two same crash to appear
10X
For the first function, you should note
Code:
/* Called with stgd_lock held */
static bool __clone_available(void)
So adding another lock does nothing and only risks recursive lock deadlocks or livelocks.

For the second value, work_block is simply an integer value and even if it's wrong can not lead to a crash since there's nothing being dereferenced at any stage.
8768  Bitcoin / Project Development / Re: <Bounty> 1 BTC for the least worded T-Shirt on: December 23, 2012, 07:53:01 AM
bitcoin is much like paypal for payment transfer but the fee's are ALOT smaller and not regulated/controlled by one company.

21 words i think  Grin

Must be grammatically correct.

http://hyperboleandahalf.blogspot.com/2010/04/alot-is-better-than-you-at-everything.html
8769  Bitcoin / Pools / Re: Pay On Target: New High variance payout System Offered by Ozcoin on: December 23, 2012, 05:03:31 AM
I pushed variance to the maximum by setting my worker diff to 10000 which would only average 5 shares per day at my 2.7GH and got lucky with this:
 [2012-12-23 15:48:21] Accepted 00001e9b Diff 548K/10000 GPU 0 pool 0

POT Value    0.46005046 BTC
PPS Percent    666.00%

I only would earn .35BTC per day mining PPS, and gotta love that satanic percentage  Grin
8770  Alternate cryptocurrencies / Altcoin Discussion / Re: [ANN] Stratum support for scrypt mining has been added for cgminer/reaper on: December 23, 2012, 04:32:01 AM
Yes that makes sense thanks. I shall fix it.
Using cgminer 2.10.2 with fix on ltcmine.ru, work stable, but:
I haven't posted a release with the fixes yet so not sure what you're using. Only one part of the fix has even made it into git. Other changes need to follow.
8771  Bitcoin / Mining software (miners) / Re: CGMINER GPU FPGA overc monit fanspd RPC stratum linux/windws/osx/mip/r-pi 2.10.1 on: December 21, 2012, 10:55:14 PM
Is there anywhere in cgminer where I can see if I solved a block other then having to quit to see it in the stats. 
From the [p]ools menu, if you select one pool, it will show up if a block was found for that pool, otherwise it will say nothing about blocks if you found none.
8772  Bitcoin / Pools / Re: Pay On Target: New High variance payout System Offered by Ozcoin on: December 21, 2012, 10:02:02 PM
Increasing the work difficulty to a fairly high level makes this much more like mining solo but at much lower difficulties Smiley Trying to decide how high you should set it and accept more variance is the trick though Wink
8773  Alternate cryptocurrencies / Altcoin Discussion / Re: [ANN] Stratum support for scrypt mining has been added for cgminer/reaper on: December 21, 2012, 09:13:50 PM
Tested cgminer 2.10.2, and it's doesn't work.
Care to explain why cgminer natively doesn't work? Is the problem in cgminer or the pool's stratum implementation?
I think that cgminer uses 0x00000000ffff0000000000000000000000000000000000000000000000000000 as the maximum target for LTC (instead of 0x0000ffff00000000000000000000000000000000000000000000000000000000) while current target calculation, but it's only my guess. If I'm right, then it's actually working, but sets unreally hard difficulty for shares... And as a result,  miner can't solve it.
Yes that makes sense thanks. I shall fix it.
8774  Bitcoin / Hardware / Re: ¿When mining became pure speculation? on: December 21, 2012, 08:48:19 PM
the forum can be a helpful place again.
Now you're smoking the ganja.
8775  Alternate cryptocurrencies / Altcoin Discussion / Re: [ANN] Stratum support for scrypt mining has been added for cgminer/reaper on: December 21, 2012, 11:29:42 AM
Tested cgminer 2.10.2, and it's doesn't work.
Care to explain why cgminer natively doesn't work? Is the problem in cgminer or the pool's stratum implementation?
8776  Bitcoin / Pools / Re: Pay On Target: New High variance payout System Offered by Ozcoin on: December 21, 2012, 03:28:32 AM
Now to figure out how to update cgminer in my bamt rigs....
https://bitcointalk.org/index.php?topic=127622.0
8777  Bitcoin / Pools / Re: Pay On Target: New High variance payout System Offered by Ozcoin on: December 21, 2012, 03:02:24 AM
One lucky blocksolver (the only POT block so far) 2012-12-21 01:26:19 share diff 19 work diff  5218578 paid 0.61359400 BTC
congrats Cheesy
W00t that one share was worth more than 86,000 PPS shares  Wink
8778  Bitcoin / Mining software (miners) / Re: CGMINER GPU FPGA overc monit fanspd RPC stratum linux/windws/osx/mip/r-pi 2.10.1 on: December 20, 2012, 10:10:08 PM

Just upgraded from 2.9.7 to 2.10.2 (pulled from git, compiled myself), and I'm noticing VERY long startup times before mining begins when primary pool is down.. by very long, I'm talking 2-3 minutes. I don't recall it taking that long under previous versions.

Is there some new timeout value I might be missing, or need to set?


Quote
[2012-12-20 14:00:19] Started cgminer 2.10.2
 [2012-12-20 14:00:19] Probing for an alive pool
 [2012-12-20 14:02:49] Pool 0 slow/down or URL or credentials invalid
 [2012-12-20 14:02:49] Unable to get work from pool 0 http://btcguild.com:8332
 [2012-12-20 14:02:50] Switching pool 1 http://de.btcguild.com:8332 to stratum+tcp://176.9.42.247:3333

in this case, the URL changed for btcguild primary connection, once I fixed that, and the pool is 'reachable' it starts up immediately... invalid or down pool as pool #1 still gives almost 3 minutes delay on startup

That's just the nature of how long the timeout needs to be on a raw socket to reasonably know it's dead with stratum. There is nothing you can manually change to alter that apart from not putting a dead pool first in line. This is not a new issue with 2.10.2, it's just that btcg is suffering a DDoS. If it were a getwork pool it could take up to 60 seconds. With stratum it's over 2 mins.
8779  Alternate cryptocurrencies / Mining (Altcoins) / Re: Consolidated Litecoin Mining Guide for 5xxx, 6xxx, and 7xxx GPUs on: December 19, 2012, 11:20:20 PM
That change is in the latest cgminer, 2.10.2
8780  Bitcoin / Mining software (miners) / Re: CGMINER GPU FPGA overc monit fanspd RPC stratum linux/windws/osx/mip/r-pi 2.10.1 on: December 19, 2012, 10:27:56 PM
After starting up 2.10.2 for the first time, I almost immediately got "Best share: 25", but no accepted shares for a while. Then I finally got an accepted share 4/4. Looks like the Best share display still isn't fixed, unless for some reason my target was above 25 (never been above 8 for me at BitMinter). Also, now Best share is at 207, even though all the accepted shares for this run are still on screen, and the highest is 55/4.
Fix for this is https://github.com/luke-jr/bfgminer/commit/bfab076d

Lulz - replacing my one function I wrote 15 months ago with 5 - and slower Tongue
Does it actually fix anything?
Pages: « 1 ... 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 [439] 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 ... 570 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!