Post
Topic
Board Altcoin Discussion
Re: [XPM] Primecoin Built-in Miner Sieve Performance Issue
by
Vilepickle
on 12/07/2013, 20:49:10 UTC
I also notice a decline in PPS using Chemisist's code compare to the official (0.11). Getting an average of about 1800 PPS vs 2200 with official. I'm only running 12 threads as well, so it's not just affecting users with high thread counts.

Well, you're running with more threads than I was able to test (highest I got to was 8 on my core i7-950), so I'm not entirely sure why this is, though it could be that all threads are trying to access a single variable which is determining how long to let the sieve be woven for.  I suppose that all these threads could end up blocking each other and cause a significant portion of idle time.  It would be far more effective to have a sieve weaving time variable (see line 11 in my version of the prime.cpp: static volatile int sieveBuildTime = 0;) for each individual boost thread, but I'm not sure how to do this as I am entirely unfamiliar with the Boost library (I'm not a c++ programmer  Sad )

Tried yours with 30 threads on one box, I'm only pulling about 1800pps.  Latest official repo nets around 4000.