Skip to content

Commit

Permalink
Changing recommended configuration for sive size and prime limit for …
Browse files Browse the repository at this point in the history
…better performance + fix sieve job distribution when more than 8 threads is used.
  • Loading branch information
mumusbtc committed Jul 16, 2017
1 parent d8e172e commit 939dd32
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ifeq ($(findstring CYGWIN_NT, $(UNAME)), CYGWIN_NT)
OBJ = obj
EXE = .exe
DLL = .dll
LDFLAGS += -Wl,--stack,100000000
LDFLAGS += -Wl,--stack,600000000
endif


Expand Down
4 changes: 2 additions & 2 deletions miner.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"sieve_threads": 0,
"ptest_threads": 0,
"timeout": 10,
"bit_array_size": 2097152,
"bit_array_size": 3145728,
"prime_limit": 71378571,
"n_prime_limit": 2500000,
"n_prime_limit": 3000000,
"primorial_end_prime": 12,
"experimental" : "true"
}
4 changes: 2 additions & 2 deletions miner.conf.pool-example
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"sieve_threads": 0,
"ptest_threads": 0,
"timeout": 10,
"bit_array_size": 2097152,
"bit_array_size": 3145728,
"prime_limit": 71378571,
"n_prime_limit": 2500000,
"n_prime_limit": 3000000,
"primorial_end_prime": 12,
"experimental": "true"
}
4 changes: 2 additions & 2 deletions miner.conf.solo-example
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"sieve_threads": 0,
"ptest_threads": 0,
"timeout": 10,
"bit_array_size": 2097152,
"bit_array_size": 3145728,
"prime_limit": 71378571,
"n_prime_limit": 2500000,
"n_prime_limit": 3000000,
"primorial_end_prime": 12,
"experimental": "true"
}
6 changes: 3 additions & 3 deletions miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ namespace Core

const uint16_t maxJobs = nSieveThreads * 3;
//const uint16_t originSegmentSize = floor(41.0 / (float)nSieveThreads);
const uint16_t originSegmentSize = floor(8.0 / (float)nSieveThreads);
const uint16_t originSegmentSize = floor(32.0 / (float)nSieveThreads);

bool bBlockRequestSent = false;
loop
Expand Down Expand Up @@ -648,7 +648,7 @@ namespace Core

const uint16_t maxJobs = nSieveThreads * 3;
//const uint16_t originSegmentSize = floor(153.0 / (float)nSieveThreads);
const uint16_t originSegmentSize = floor(16.0 / (float)nSieveThreads);
const uint16_t originSegmentSize = floor(32.0 / (float)nSieveThreads);
loop
{
try
Expand Down Expand Up @@ -1172,7 +1172,7 @@ int main(int argc, char *argv[])
bSoloMining = true;

int nSieveThreads = GetTotalCores() - 1;
int nPTestThreads = GetTotalCores() - 1;
int nPTestThreads = GetTotalCores() ;
int nTimeout = 5;

// When using GPU with OpenACC max sieve threads is one, Prime Test as many as possible
Expand Down

0 comments on commit 939dd32

Please sign in to comment.