Bitcoin Forum
April 23, 2014, 11:08:57 PM *
News: Due to the OpenSSL heartbleed bug, changing your forum password is recommended.
 
   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 38
  Print  
Author Topic: [XPM] Primecoin Built-in Miner Sieve Performance Issue  (Read 35173 times)
altsay
Sr. Member
****
Offline Offline

Activity: 261


View Profile

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

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.

What do you mean by timeout values?

[XPM] -> AKnc2u4YtnpiDSkYXE9FusHqoaScuCoBfh
[QRK] -> QRpYGHj3ZnqmvsE7EDNeEQz3tU6AnGVar4
1398294537
Hero Member
*
Offline Offline

Posts: 1398294537

View Profile Personal Message (Offline)

Ignore
1398294537
Reply with quote  #2

1398294537
Report to moderator
1398294537
Hero Member
*
Offline Offline

Posts: 1398294537

View Profile Personal Message (Offline)

Ignore
1398294537
Reply with quote  #2

1398294537
Report to moderator
1398294537
Hero Member
*
Offline Offline

Posts: 1398294537

View Profile Personal Message (Offline)

Ignore
1398294537
Reply with quote  #2

1398294537
Report to moderator
Unbeatable Service & Product Support
Grab Your Miners at GAWMiners.com
Order Before April 25th to receive
Double your Hashing Power for 1 week!

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1398294537
Hero Member
*
Offline Offline

Posts: 1398294537

View Profile Personal Message (Offline)

Ignore
1398294537
Reply with quote  #2

1398294537
Report to moderator
1398294537
Hero Member
*
Offline Offline

Posts: 1398294537

View Profile Personal Message (Offline)

Ignore
1398294537
Reply with quote  #2

1398294537
Report to moderator
1398294537
Hero Member
*
Offline Offline

Posts: 1398294537

View Profile Personal Message (Offline)

Ignore
1398294537
Reply with quote  #2

1398294537
Report to moderator
drummerjdb666
Full Member
***
Offline Offline

Activity: 229



View Profile

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

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

Chemisist
Member
**
Offline Offline

Activity: 99



View Profile

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

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: 322



View Profile

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

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
 #565

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
Hero Member
*****
Online Online

Activity: 1022



View Profile

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

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

Chemisist
Member
**
Offline Offline

Activity: 99



View Profile

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

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
Sr. Member
****
Online Online

Activity: 378



View Profile

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

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.

gateway
Sr. Member
****
Offline Offline

Activity: 378


View Profile

Ignore
July 12, 2013, 10:38:54 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..


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

Activity: 224


View Profile

Ignore
July 12, 2013, 10:41:18 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..
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
 #571

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
 #572

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
Sr. Member
****
Offline Offline

Activity: 378


View Profile

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

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
 #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?

btc 1ChemaH12nRmd75M8BmPSiqd8x7B2wxFNF     ltc LaWX7jgJDyQ2oFaQYJvo5kqC1e1KYPoCfd     xpm Ab8NSgxHgGUJvHgSHYqMYBMWai6ZdsA91s
tacotime
Hero Member
*****
Online Online

Activity: 1022



View Profile

Ignore
July 12, 2013, 10:55:02 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

Chemisist
Member
**
Offline Offline

Activity: 99



View Profile

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

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
 #577

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
Hero Member
*****
Online Online

Activity: 1022



View Profile

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

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

Aggrophobia
Sr. Member
****
Offline Offline

Activity: 364



View Profile

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

wtf

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


send you some Smiley
PoolMinor
Sr. Member
****
Offline Offline

Activity: 266


Narcissistic Prime 35452590104031691935943


View Profile

Ignore
July 12, 2013, 11:08:37 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 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◄◄           Please Delete My Avatar
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 38
  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!