Bitcoin Forum
May 30, 2015, 12:21:54 AM *
News: Latest stable version of Bitcoin Core: 0.10.2 [Torrent]
 
   Home   Help Search Donate Login Register  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 [29] 30 31 32 33 34 35 36 37 »
  Print  
Author Topic: [XPM] Primecoin Built-in Miner Sieve Performance Issue  (Read 54519 times)
drummerjdb666
Full Member
***
Offline Offline

Activity: 232



View Profile

Ignore
July 12, 2013, 10:12:42 PM
 #561

30 hours + mining ( not a single block mined ) I just started trying out Sunny's update: v0.1.1

On July 10, 2013 - I mined 5 blocks with 400 - 600 PPS .. note: I lost 4 orphans in that action, so it was technically 9 blocks mined, but 4 were lost, so 5 have been check marked. Anyways, the interesting thing is, I haven't touched a block. Anyone else getting the same results?

Find an optimized QT client here for your processor. I'm on an i3 3225 and I'm getting more than you since the first optimized QT I downloaded. Prior to that though (July 10th) I was getting 0 blocks mined and was probably the most unlucky person mining primecoin.

I have an I3 that has produced 6 blocks since start... the second pair of 3 were on the first mod client though and orphaned Sad         That was actually my gf's laptop.. she was pissed lol!  only 63 primes instead of 100
1432945314
Hero Member
*
Offline Offline

Posts: 1432945314

View Profile Personal Message (Offline)

Ignore
1432945314
Reply with quote  #2

1432945314
Report to moderator
FortuneJack.com No.1 Online Cryptocurrency Casino New Dice with Progressive Jackpot Provably Fair 250+ Games 5 Amazing Promotions Up to 50% Affiliate 9 Cryptocurrencies Coin Exchange Start WINNING Now
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1432945314
Hero Member
*
Offline Offline

Posts: 1432945314

View Profile Personal Message (Offline)

Ignore
1432945314
Reply with quote  #2

1432945314
Report to moderator
1432945314
Hero Member
*
Offline Offline

Posts: 1432945314

View Profile Personal Message (Offline)

Ignore
1432945314
Reply with quote  #2

1432945314
Report to moderator
1432945314
Hero Member
*
Offline Offline

Posts: 1432945314

View Profile Personal Message (Offline)

Ignore
1432945314
Reply with quote  #2

1432945314
Report to moderator
Chemisist
Member
**
Offline Offline

Activity: 99



View Profile

Ignore
July 12, 2013, 10:13:36 PM
 #562

After playing with the code a couple of hours, I think the PPS figure is misleading.

As far as I understood it, the algorithm is split in two parts : building a sieve, and trying each factor stored in the sieve with three different tests.
Each part has a variable execution time (determined by the number of prime factors you can find).
Recent modification of the code (and Chemisist's proposal) put a timeout in these parts so that the execution time invested in a possible solution is capped.
By capping these parts, there is a chance to abort the testing of a valid solution.

Thus, a complex trade-off arises : invest more time in the current candidate, or jump to the next candidate after a given period of time.
Chemisist suggests an adaptative approach (I just skimmed through your code, I may have misunderstood), that's very interesting Smiley

However, IMHO, that does only marginally improve the chances of finding a solution (read block), especially as difficulty rises.
Why ? Because the distribution of prime factors is very very difficult to predict.
Play along with the timeout values, this can lead to multiply or divide your PPS by 10.
But that does not improve your chances of finding a solution.

Anyway, here is my advice : do not focus on the PPS, it is not reliable measure of performance.

Thumbs up to Sunny King (and his team) for designing this coin. The proof-of-work proposed is brilliant and very interesting to play with.
Agreed. I noticed earlier if you cap off the sieve weaving time to almost nothing, you can easily get absurdly high PPS values but you won't actually earn blocks faster. There's a trade-off that needs to be analyzed closer.

The high pps number is due to the very low hard cap on the time set to check the actual sieve that has been produced (it's set to 10 ms in the current master branch on github, line 372 in prime.cpp).  So with the very short weaving time of whatever you decide to set, the sieve has a very large number of prime candidates, most of which satisfy the following check:
Code:
if(TargetGetLength(nProbablePrimeChainLength) >= 1)
     nPrimesHit++;

but many of which are not actually primes.  Anyway, I'm currently testing my code against Sunny's on the testnet (with the large thread count issue potentially fixed, fingers crossed) to see which can find more blocks in 10 minutes on my T9300 laptop.  Results to come shortly

btc 1ChemaH12nRmd75M8BmPSiqd8x7B2wxFNF     ltc LaWX7jgJDyQ2oFaQYJvo5kqC1e1KYPoCfd     xpm Ab8NSgxHgGUJvHgSHYqMYBMWai6ZdsA91s
reb0rn21
Sr. Member
****
Offline Offline

Activity: 474



View Profile

Ignore
July 12, 2013, 10:15:03 PM
 #563

Anyone with Haswell?
I am using primecoin0712v2-ivyonly.zip so far

maco
Sr. Member
****
Offline Offline

Activity: 294



View Profile

Ignore
July 12, 2013, 10:15:18 PM
 #564

Zalfrin's 3rd release was amazing, and did wonders for me. Intel I5 Quad-Core 2500K Sandy Bridge. 3.3 GHz - Mined 5 Blocks, and 4 orphans
(I didn't have ports open at the time, which might have been the reason for the orphans)... but it rocked! Still haven't mined with Sunny's updated V0.1.1 It's been 2 hours ~

So you are right. Did you use the Zalfrin's Release 3?

30 hours + mining ( not a single block mined ) I just started trying out Sunny's update: v0.1.1

On July 10, 2013 - I mined 5 blocks with 400 - 600 PPS .. note: I lost 4 orphans in that action, so it was technically 9 blocks mined, but 4 were lost, so 5 have been check marked. Anyways, the interesting thing is, I haven't touched a block. Anyone else getting the same results?

Find an optimized QT client here for your processor. I'm on an i3 3225 and I'm getting more than you since the first optimized QT I downloaded. Prior to that though (July 10th) I was getting 0 blocks mined and was probably the most unlucky person mining primecoin.
tacotime
Legendary
*
Offline Offline

Activity: 1386



View Profile

Ignore
July 12, 2013, 10:19:09 PM
 #565

with
Code:
       int64 nSieveRoundLimit = (int)GetArg("-gensieveroundlimitms", 400);
I get about 3000 PPS on my 4.4 GHz 2700K, however I have no idea if my block generation rate will actually be higher

I suspect ideal sieve time restrictions are processor speed dependent and vary with the bandwidth of your processor

Code:
XMR: 44GBHzv6ZyQdJkjqZje6KLZ3xSyN1hBSFAnLP6EAqJtCRVzMzZmeXTC2AHKDS9aEDTRKmo6a6o9r9j86pYfhCWDkKjbtcns
Chemisist
Member
**
Offline Offline

Activity: 99



View Profile

Ignore
July 12, 2013, 10:35:25 PM
 #566

Alright, so just updated my version (currently on github) such that each thread an independent evolving weave timing parameter.  To compare to mine with Sunny's most recent update, I used the testnet where my version found 30 confirmed blocks in 10 minutes while the original code found 16 confirmed blocks.  I feel that this is a legitimate comparison because there were no other nodes on the test net currently mining (I know this because my client found every continuous block in both cases).  This comparison was performed with a t61p IBM laptop with a T9300 Core 2 Duo processor.  The current difficulty on the testnet is 5.4426.  

Going to test this with the 8 threads on my Core i7 next.

btc 1ChemaH12nRmd75M8BmPSiqd8x7B2wxFNF     ltc LaWX7jgJDyQ2oFaQYJvo5kqC1e1KYPoCfd     xpm Ab8NSgxHgGUJvHgSHYqMYBMWai6ZdsA91s
LaudaM
Hero Member
*****
Offline Offline

Activity: 770



View Profile

Ignore
July 12, 2013, 10:37:21 PM
 #567

Zalfrin's 3rd release was amazing, and did wonders for me. Intel I5 Quad-Core 2500K Sandy Bridge. 3.3 GHz - Mined 5 Blocks, and 4 orphans
(I didn't have ports open at the time, which might have been the reason for the orphans)... but it rocked! Still haven't mined with Sunny's updated V0.1.1 It's been 2 hours ~

So you are right. Did you use the Zalfrin's Release 3?

30 hours + mining ( not a single block mined ) I just started trying out Sunny's update: v0.1.1

On July 10, 2013 - I mined 5 blocks with 400 - 600 PPS .. note: I lost 4 orphans in that action, so it was technically 9 blocks mined, but 4 were lost, so 5 have been check marked. Anyways, the interesting thing is, I haven't touched a block. Anyone else getting the same results?

Find an optimized QT client here for your processor. I'm on an i3 3225 and I'm getting more than you since the first optimized QT I downloaded. Prior to that though (July 10th) I was getting 0 blocks mined and was probably the most unlucky person mining primecoin.
I'm using release 12, have you tried that yet? Tell me your results if you have.
I've got i5 2400k sandy bridge so we should perform almost the same.

█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
▄▄▄▄▄▄
▄▄▄▄
▄▄
CHAINROLL
.
★☆★ ★☆★ 100% Provably Fair Bitcoin Dice game ★☆★ ★☆★★ 1% edge ★ Provably fair ★ Bonuses ★ Afiilitates ★ Free Faucet ★ In-game Faucet
.
▄▄▄▄▄▄
▄▄▄▄
▄▄
███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████
gateway
Hero Member
*****
Offline Offline

Activity: 490


View Profile

Ignore
July 12, 2013, 10:38:54 PM
 #568

some of us on #eligius-prime were able with lukes help and others to get it running.. now im just waiting to see if i can actually get a block..


// Pepper Mining Co. - The Habanero
// Eligius.st - Webmaster
// Donations: btc 1D5K2WV1K4uiv56vZyMS66gBCPYVEdy6v
eule
Sr. Member
****
Offline Offline

Activity: 294


View Profile

Ignore
July 12, 2013, 10:41:18 PM
 #569

some of us on #eligius-prime were able with lukes help and others to get it running.. now im just waiting to see if i can actually get a block..
try testnet for tests!  Cheesy
./primecoind stop
./primecoind -testnet
Chemisist
Member
**
Offline Offline

Activity: 99



View Profile

Ignore
July 12, 2013, 10:43:08 PM
 #570

some of us on #eligius-prime were able with lukes help and others to get it running.. now im just waiting to see if i can actually get a block..



Can you share your source code?  Did you modify Sunny's algorithm at all?

btc 1ChemaH12nRmd75M8BmPSiqd8x7B2wxFNF     ltc LaWX7jgJDyQ2oFaQYJvo5kqC1e1KYPoCfd     xpm Ab8NSgxHgGUJvHgSHYqMYBMWai6ZdsA91s
LazyOtto
Sr. Member
****
Offline Offline

Activity: 476


View Profile

Ignore
July 12, 2013, 10:49:23 PM
 #571

Going to test this with the 8 threads on my Core i7 next.
A report:

Substantially faster than your previous version, based on logged primemeter numbers, on my dual quad-core xeon box.
gateway
Hero Member
*****
Offline Offline

Activity: 490


View Profile

Ignore
July 12, 2013, 10:50:45 PM
 #572

some of us on #eligius-prime were able with lukes help and others to get it running.. now im just waiting to see if i can actually get a block..



Can you share your source code?  Did you modify Sunny's algorithm at all?

sorry not a coder per say, was on the irc channel getting stuff compile and tested on an amazon instance.. takes a bit of work, and you need to convert a primecoin address to btc add.. etc..

// Pepper Mining Co. - The Habanero
// Eligius.st - Webmaster
// Donations: btc 1D5K2WV1K4uiv56vZyMS66gBCPYVEdy6v
Chemisist
Member
**
Offline Offline

Activity: 99



View Profile

Ignore
July 12, 2013, 10:52:18 PM
 #573

Going to test this with the 8 threads on my Core i7 next.
A report:

Substantially faster than your previous version, based on logged primemeter numbers, on my dual quad-core xeon box.

Ahh, so it likely was due to threaded race conditions, hooray!  Thanks for helping me test this Smiley  Are you running on the test net or main net?

btc 1ChemaH12nRmd75M8BmPSiqd8x7B2wxFNF     ltc LaWX7jgJDyQ2oFaQYJvo5kqC1e1KYPoCfd     xpm Ab8NSgxHgGUJvHgSHYqMYBMWai6ZdsA91s
tacotime
Legendary
*
Offline Offline

Activity: 1386



View Profile

Ignore
July 12, 2013, 10:55:02 PM
 #574

Going to test this with the 8 threads on my Core i7 next.
A report:

Substantially faster than your previous version, based on logged primemeter numbers, on my dual quad-core xeon box.

Ahh, so it likely was due to threaded race conditions, hooray!  Thanks for helping me test this Smiley  Are you running on the test net or main net?

building and running on main net now

Code:
XMR: 44GBHzv6ZyQdJkjqZje6KLZ3xSyN1hBSFAnLP6EAqJtCRVzMzZmeXTC2AHKDS9aEDTRKmo6a6o9r9j86pYfhCWDkKjbtcns
Chemisist
Member
**
Offline Offline

Activity: 99



View Profile

Ignore
July 12, 2013, 10:58:45 PM
 #575

Going to test this with the 8 threads on my Core i7 next.
A report:

Substantially faster than your previous version, based on logged primemeter numbers, on my dual quad-core xeon box.

Ahh, so it likely was due to threaded race conditions, hooray!  Thanks for helping me test this Smiley  Are you running on the test net or main net?

building and running on main net now

Just so you're aware (not sure if you've been following the last 5-6 pages), the makefile.unix has -O3 set instead of the -O2 like the one from Sunny King has

btc 1ChemaH12nRmd75M8BmPSiqd8x7B2wxFNF     ltc LaWX7jgJDyQ2oFaQYJvo5kqC1e1KYPoCfd     xpm Ab8NSgxHgGUJvHgSHYqMYBMWai6ZdsA91s
LazyOtto
Sr. Member
****
Offline Offline

Activity: 476


View Profile

Ignore
July 12, 2013, 11:00:22 PM
 #576

Ahh, so it likely was due to threaded race conditions, hooray!  Thanks for helping me test this Smiley  Are you running on the test net or main net?
You're quite welcome. Thank you for your work on the implementation.

I'm running on main net.
7 threads on a dual quad-core box - my workstation. one core left for me to use. Smiley
2 threads on a dual dual-core box - my server. two cores left for server'ish stuff to get done
both systems running OS X 10.7 (Lion)

-- edit

I've been compiling with these modified build flags for a while now:

CFLAGS = -mmacosx-version-min=10.7 -O3 -mfpmath=sse -march=native -mx32
tacotime
Legendary
*
Offline Offline

Activity: 1386



View Profile

Ignore
July 12, 2013, 11:01:25 PM
 #577

Just so you're aware (not sure if you've been following the last 5-6 pages), the makefile.unix has -O3 set instead of the -O2 like the one from Sunny King has

Yeah, it's compiled with -O3 and the correct architecture

Your version so far: averaging about 2100 PPM on a Core i7 2700K @ 4.4 GHz

I will run it overnight and see if it picks up any blocks on the main net, today I have 2 so far, yesterday I had 4

Code:
XMR: 44GBHzv6ZyQdJkjqZje6KLZ3xSyN1hBSFAnLP6EAqJtCRVzMzZmeXTC2AHKDS9aEDTRKmo6a6o9r9j86pYfhCWDkKjbtcns
Aggrophobia
Hero Member
*****
Offline Offline

Activity: 546



View Profile

Ignore
July 12, 2013, 11:05:06 PM
 #578

wtf

{
    "blocks" : 24459,
    "currentblocksize" : 1000,
    "currentblocktx" : 0,
    "errors" : "",
    "generate" : true,
    "genproclimit" : -1,
    "primespersec" : 5039,
    "pooledtx" : 0,
    "testnet" : false
}


send you some Smiley
PoolMinor
Hero Member
*****
Offline Offline

Activity: 490


Fnord!


View Profile

Ignore
July 12, 2013, 11:08:37 PM
 #579

16:00:58

getmininginfo


16:00:58

{
"blocks" : 24436,
"currentblocksize" : 1000,
"currentblocktx" : 0,
"errors" : "",
"generate" : true,
"genproclimit" : 80,
"primespersec" : 2359,
"pooledtx" : 0,
"testnet" : false
}


AMD FX 8120 8 cores

primecoin-0.1.1-win32-setup build


Perhaps PPS isn't the actual goal after all, since I think this measurement is largely misunderstood.

Accepted by more merchants! - Franko
      Franko Support     Btc=C2MF         ►►FAUCET◄◄
Chemisist
Member
**
Offline Offline

Activity: 99



View Profile

Ignore
July 12, 2013, 11:11:33 PM
 #580


16:00:58

getmininginfo


16:00:58

{
"blocks" : 24436,
"currentblocksize" : 1000,
"currentblocktx" : 0,
"errors" : "",
"generate" : true,
"genproclimit" : 80,
"primespersec" : 2359,
"pooledtx" : 0,
"testnet" : false
}


AMD FX 8120

Perhaps PPS isn't the actual goal after all, since I think this measurement is largely misunderstood.

That's the conclusion that I've reached also.  I'm comparing the actual number of blocks generated over 10 minutes (though I should probably do it for longer) on the testnet between production Primecoin code and what I'm working on.

btc 1ChemaH12nRmd75M8BmPSiqd8x7B2wxFNF     ltc LaWX7jgJDyQ2oFaQYJvo5kqC1e1KYPoCfd     xpm Ab8NSgxHgGUJvHgSHYqMYBMWai6ZdsA91s
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 [29] 30 31 32 33 34 35 36 37 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!