Bitcoin Forum
April 20, 2014, 06:24:40 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 39 40 41 42 43 44 45 46 47 48 49 50 51 ... 133
  Print  
Author Topic: [XPM] [ANN] Primecoin High Performance | HP13 with OpenSSL fix  (Read 242811 times)
mikaelh
Sr. Member
****
Offline Offline

Activity: 297


View Profile

Ignore
July 13, 2013, 10:36:06 PM
 #1

This is Primecoin High Performance, a Primecoin wallet with high-performance miner built-in. Only solo mining is supported. For pooled mining, see beeeeer.org. The main Primecoin thread is here.

Features:
 * Extended sieve algorithm
 * Cache-friendly segmented sieve
 * Adjustable sieve parameters
 * Mining threads use GMP for faster bignum arithmetic

Changelog:
Changes in -hp13 (ann):
 * Binaries compiled with OpenSSL 1.0.1g which addresses the Heartbleed vulnerability
 * Faster blockchain download

Changes in -hp12 (ann):
 * IMPORTANT: Fix for multiple machines doing the same work if wallet is shared.
 * New chain statistics in debug.log.
 * Removed 'primespersec' from the output of getmininginfo.
 * Removed 'chainspermin' metric.
 * Replaced -sievepercentage parameter with -sievefilterprimes.
 * New parameter -l1cachesize for specifying the size of sieve segments.
 * Added new blocks/day metric which tries to estimate how many blocks will be found at current difficulty.
 * Better automatic adjustment of primorial factor.
 * New parameter -primorial for manual adjustment of primorial.
 * Implemented early support for v0.2 proposal (needs to be enabled with -miningprotocol=2).
 * David's fix for getwork.
 * Updated to Bitcoin v0.8.6 codebase.
 * Improved the checking of BiTwin chain candidates. As a consequence, short BiTwin chains (1 or 2 primes) are now counted correctly in the mining statistics. Primes/h is now much higher due to this.
 * The Qt application is now titled Primecoin High Performance.
 * Fixes for Mac OS X and the Clang compiler.
 * Revised default sieve parameters.
 * Added an automatic donation feature when a new block is found. The -donationpercentage allows a percentage of the block reward to be donated to an address. E.g. passing the command-line parameter -donationpercentage=1.5 will donate 1.5% of every block to the developer. Alternatively, this value can be set in primecoin.conf. Also, the default address can be changed using -donationaddress.

Changes in -hp11: (ann)
 * Fixed a bug in the BiTwin filter that was inflating the chains/day estimate and reducing the chances of finding a block (thanks to rdebourbon).
 * Slightly improved the accuracy of the prime probability estimate with regards to the 'sieveextensions' parameter.
 * Changed the default value of 'sieveextensions' to 9.
 * Other small fixes and improvements from cabin.

Changes in -hp10: (ann)
 * Major rewrite of the sieve to support extending the sieve (originally implemented by jh000).
 * Added a new parameter 'sieveextensions' which controls how many times the sieve is extended.
 * Removed the problematic and unnecessary fast-division test.
 * Changed the value of nL1CacheElements to 224000 which is slightly faster (thanks to nushor on IRC).
 * The 'roundsievepercentage' parameter is gone. The round primorial is now automatically adjusted.
 * New RPC command 'listtopprimes' by Sunny.

Changes in -hp9:
 * Sunny's mining optimizations from 0.1.2.
 * Minor mining optimizations from mtrlt and gatra.
 * Small sieve optimizations for 32-bit processors.
 * Sunny's new chains/day estimate.
 * Sunny's new 'listprimerecords' RPC command.
 * New default value for roundsievepercentage is 70 on mainnet (better chains/day, equal 5-chains/h).

Changes in -hp8:
 * IMPORTANT: Fixed loss of potential blocks caused by fractional length calculation being skipped if fast divisibility test succeeds. (Thanks to mtrlt for spotting this.)
 * Skip fractional length calculation for the first number in a chain (as suggested by gatra).
 * Added a new configurable round primorial adjustment system.
 * Round primorial can be adjusted through the -roundsievepercentage parameter (default value is 30, minimum is 1, maximum is 100). The parameter depends how much time is spent running the sieve. By default 30% of time is spent in the sieve and 70% is spent on checking the candidates produced by the sieve.
 * Lots of other performance improvements.
 * Bigger sieve sizes should no longer crash on Windows.
 * Added new RPC commands setsievepercentage and setroundsievepercentage for changing parameters on the fly.
 * GMP is now included as a separate library in the binary releases.

Changes in -hp7:
 * IMPORTANT: Sunny King's fix for mining large block sizes
 * Small performance improvement to the sieve

Changes in -hp6:
 * Added fast divisibility tests before doing the expensive Fermat's test
 * Lots of other small optimizations
 * Introduced a new experimental tuning parameter "sievepercentage". Default value is 10, minimum is 1, maximum is 100.
 * Added new RPC command "getchainspermin"
 * Added the following information to "getmininginfo": chainspermin, difficulty, sievepercentage, and sievesize
 * Attempt to fix the random crash while mining

Changes in -hp5:
 * Added a faster 32-bit routine for inverting numbers
 * Other minor performance improvements to the sieve

Changes in -hp4:
 * Added more L1 and L2 cache optimizations
 * Some other minor performance improvements (including a change originally by luke-jr)
 * New experimental performance metric 5-chains/h in debug.log

Changes in -hp3:
 * Added a new tuning parameter "sievesize". Default value is 1M, minimum is 100k, maximum is 10M.
 * Some other minor performance improvements
 * Merged two pull requests from geeknik that eliminate references to "Bitcoin"

Changes in -hp2:
 * Restored sieve size to 1,000,000. Quick runs on the testnet show significantly increased probable prime chain rate. Thanks to the numerous people who pointed this out.

Windows x64 binaries
http://sourceforge.net/projects/primecoin-hp/files/0.1.2-hp13/primecoin-0.1.2-hp13-winx64.zip/download
http://download.muuttuja.org/primecoin/primecoin-hp/0.1.2-hp13/primecoin-0.1.2-hp13-winx64.zip
SHA1SUM: 41371e7fe22841851ccd5d992f39e488dbc4e424

Windows x86 binaries
http://sourceforge.net/projects/primecoin-hp/files/0.1.2-hp13/primecoin-0.1.2-hp13-winx86.zip/download
http://download.muuttuja.org/primecoin/primecoin-hp/0.1.2-hp13/primecoin-0.1.2-hp13-winx86.zip
SHA1SUM: 160155344ab53f79752aa9f10221ae60ee87865d

Linux x64 and x86 binaries
http://sourceforge.net/projects/primecoin-hp/files/0.1.2-hp13/primecoin-0.1.2-hp13-linux.tar.bz2/download
http://download.muuttuja.org/primecoin/primecoin-hp/0.1.2-hp13/primecoin-0.1.2-hp13-linux.tar.bz2
SHA1SUM: fa921746966a8c000af48dd5874f52b2a2c39cce

Mac OS X binaries
http://sourceforge.net/projects/primecoin-hp/files/0.1.2-hp13/Primecoin-HP-Qt-0.1.2-hp13.dmg/download
http://download.muuttuja.org/primecoin/primecoin-hp/0.1.2-hp13/Primecoin-HP-Qt-0.1.2-hp13.dmg
SHA1SUM: 3939b3bcf318b0c00c4b9c1b487613d53d07a229

Warning to Linux users: My binaries are linked against Berkeley DB 4.8.30. If you have compiled from source before, the database format may be incompatible if you linked against a different version of Berkeley DB. Sunny King's original binaries are linked against Berkeley DB 4.8.24, which should be compatible with my version. Always make sure to backup the database and your wallet before switching builds.

Source code (.tar.bz2)
http://sourceforge.net/projects/primecoin-hp/files/0.1.2-hp13/primecoin-0.1.2-hp13.tar.bz2/download
http://download.muuttuja.org/primecoin/primecoin-hp/0.1.2-hp13/primecoin-0.1.2-hp13.tar.bz2
SHA1SUM: 45550c57b653662af9803d8c139a4e3059271e12

Source code (Git)
https://bitbucket.org/mikaelh/primecoin-hp
https://github.com/mikaelh2/primecoin

Please use the SourceForge link for downloading the source code to ease the load on the repository.

Older releases are stored on SourceForge:
https://sourceforge.net/projects/primecoin-hp/files/

Tutorials

[Tutorial] Primecoin Getting Started and Basic Commands
**Quick Guide!** - How to mine Primecoin
[XPM] Primecoin High Performance Linux Compilation Guide

Configuration

Sample config file for automatic mining:
Code:
# Enable JSON-RPC commands to be received
server=1

# Username and password for JSON-RPC
rpcuser=primecoinrpc
rpcpassword=PASSWORD

# IP restriction for JSON-RPC
rpcallowip=127.0.0.1

# Start mining automatically
gen=1

# An extra seednode to help getting connected to the network
seednode=primeseed.muuttuja.org

# Tuning parameters
#sievesize=1000000
#sievepercentage=10
#sieveextensions=9

# Donate 1% of found blocks by uncommenting the following line
#donationpercentage=1.0

Save the file as primecoin.conf in %APPDATA%\Primecoin (for Windows users), $HOME/.primecoin (for Linux users), or $HOME/Library/Application Support/Primecoin (for Mac OS X users).

FAQ

Q: How many blocks should I expect to find?
A: My current formula for turning chains/day into blocks/day is as follows:
blocks/day = chains/day * (0.97 * (1 - fracDiff) + 0.03)
Here fracDiff is the fractional part of the mining difficulty (i.e. fracDiff = diff - floor(diff)). The 'getmininginfo' command will show both the chains/day value and the difficulty.

Q: Is this compatible with the original client? Can I replace primecoin-qt/primecoind with this release?
A: Yes, the Windows builds should be compatible with the original client. It uses Berkeley DB version 4.8 so the database format should be the same.

Q: Why is the client crashing with the following message?
Assertion failed!
File: src/checkqueue.h, line 171
Expression: pqueue->nTotal == pqueue-> nIdle
A: This is a known bug which is present both in this version and the original Primecoin wallet. A workaround is to use a script or a cron job to automatically restart the wallet.

Q: How can I fix the client crashing on every startup?
A: Try deleting all database files except wallet.dat.

Q: Where is the config file located?
A: Windows users: The configuration file should be located in the %APPDATA%\Primecoin folder.
Linux users: The configuration file is located in your $HOME/.primecoin folder.
Mac OS X users: The configuration file is located in your $HOME/Library/Application Support/Primecoin folder.
The configuration file is not created by default. If it does not exist, simply create a new text file and save it as primecoin.conf.

Q: What are the optimal sieve parameters?
A: The default values should be good for most people. If you want to further optimize them, adjust them one-by-one and compare chains/day.

Q: Why is my performance worse on Linux?
A: This version relies on libgmp to do most of the complex calculations. Make sure your libgmp is up-to-date. Old versions do not support newer CPUs. I suggest compiling your own libgmp from latest source code for maximum performance.

Q: Why has my prime rate dropped after updating?
A: There are two common cases why primes/s can drop:
1. You downloaded the 32-bit version which is slower. Use the 64-bit version if possible.
2. Network difficulty has changed. Prime rate goes down when the integer part of the difficulty changes (i.e. going from 8.xx to 9.xx). It's a feature of the mining algorithm and nothing can be done about it.
Otherwise please make a post wiith system information (especially CPU model), operating system version and miner version.

Q: What is the chains/day estimate?
A: Short version: https://bitcointalk.org/index.php?topic=255782.msg2847844#msg2847844
Longer version: https://bitcointalk.org/index.php?topic=255782.msg2848092#msg2848092

Q: How do I solve a problem with the client not being able to synchronize or connect to any nodes?
A: Try adding this line to your primecoin.conf file:
Code:
seednode=primeseed.muuttuja.org

Also check that your firewall allows outgoing connections to other nodes. You may also allow incoming connections if you want. The default port used by Primecoin is 9911 (TCP).

If you want to support my work, you can send tips to the following addresses:
BTC: 1FR6QG6n1ozSsokGGp2kkpt7eHrgs23QxQ      LTC: LPf3a9v68T9KNxqdbDF3Gyc2NiZznkbPny      PPC: PRcwYYsyjRq7rEzVkJVh8LhZzCawL5mLNf
XPM: AUc6TAbjCEz8DuY4mr6z5yr1pgMTSjDNP3
1398018280
Hero Member
*
Offline Offline

Posts: 1398018280

View Profile Personal Message (Offline)

Ignore
1398018280
Reply with quote  #2

1398018280
Report to moderator
1398018280
Hero Member
*
Offline Offline

Posts: 1398018280

View Profile Personal Message (Offline)

Ignore
1398018280
Reply with quote  #2

1398018280
Report to moderator
1398018280
Hero Member
*
Offline Offline

Posts: 1398018280

View Profile Personal Message (Offline)

Ignore
1398018280
Reply with quote  #2

1398018280
Report to moderator
Buy a Blade, Get a 5-Chip Free!
Start Mining with GAWMiners.com
24/7 Live Phone & Tech Support
Free Hosting & Electricity for 1 Year!

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

Posts: 1398018280

View Profile Personal Message (Offline)

Ignore
1398018280
Reply with quote  #2

1398018280
Report to moderator
1398018280
Hero Member
*
Offline Offline

Posts: 1398018280

View Profile Personal Message (Offline)

Ignore
1398018280
Reply with quote  #2

1398018280
Report to moderator
1398018280
Hero Member
*
Offline Offline

Posts: 1398018280

View Profile Personal Message (Offline)

Ignore
1398018280
Reply with quote  #2

1398018280
Report to moderator
1398018280
Hero Member
*
Offline Offline

Posts: 1398018280

View Profile Personal Message (Offline)

Ignore
1398018280
Reply with quote  #2

1398018280
Report to moderator
captainfuture
Sr. Member
****
Offline Offline

Activity: 280



View Profile

Ignore
July 13, 2013, 10:38:33 PM
 #2

which shall i use for semprons ?  Grin

mikaelh
Sr. Member
****
Offline Offline

Activity: 297


View Profile

Ignore
July 13, 2013, 10:42:45 PM
 #3

which shall i use for semprons ?  Grin

Depends on your OS version. If you have a 64-bit Windows, then download the x64 version.

If you want to support my work, you can send tips to the following addresses:
BTC: 1FR6QG6n1ozSsokGGp2kkpt7eHrgs23QxQ      LTC: LPf3a9v68T9KNxqdbDF3Gyc2NiZznkbPny      PPC: PRcwYYsyjRq7rEzVkJVh8LhZzCawL5mLNf
XPM: AUc6TAbjCEz8DuY4mr6z5yr1pgMTSjDNP3
gshk30
Full Member
***
Offline Offline

Activity: 179


View Profile

Ignore
July 13, 2013, 10:43:40 PM
 #4

 Smiley
96redformula
Full Member
***
Offline Offline

Activity: 238


View Profile

Ignore
July 13, 2013, 10:44:45 PM
 #5

Compiling and trying now
mustyoshi
Full Member
***
Offline Offline

Activity: 238



View Profile

Ignore
July 13, 2013, 10:46:57 PM
 #6

Hmm, how well will this work with my i3?
Vannicke
Member
**
Offline Offline

Activity: 76


That guy, you know, with the face


View Profile

Ignore
July 13, 2013, 10:47:43 PM
 #7

Wow, on a crappy A8-3520M i started up for kicks, I'm getting about 3000PPS.

The Satoshi Jar: 16t2BLGZyaMpGm3vzYWxucGz8g4bVotr1h - The Prime Jar: AKbun65HqafDNZxigNxoBoGNDA89hs9ks8
The Lite Jar: LQMAB1wsriguAWrWcekr3guGmRAxwEAUkN - The Nxt Jar: 12360768993656992210
mikaelh
Sr. Member
****
Offline Offline

Activity: 297


View Profile

Ignore
July 13, 2013, 10:49:36 PM
 #8

Hmm, how well will this work with my i3?

GMP has optimized assembly for several processors. I'd expect it to give decent performance on an i3.

If you want to support my work, you can send tips to the following addresses:
BTC: 1FR6QG6n1ozSsokGGp2kkpt7eHrgs23QxQ      LTC: LPf3a9v68T9KNxqdbDF3Gyc2NiZznkbPny      PPC: PRcwYYsyjRq7rEzVkJVh8LhZzCawL5mLNf
XPM: AUc6TAbjCEz8DuY4mr6z5yr1pgMTSjDNP3
simichent
Member
**
Offline Offline

Activity: 84



View Profile

Ignore
July 13, 2013, 10:51:34 PM
 #9

holy s*** 1700 to 99900 on w7 64 fx8350


edit : 9990

Schwede65
Sr. Member
****
Offline Offline

Activity: 300


View Profile

Ignore
July 13, 2013, 10:53:26 PM
 #10

Hmm, how well will this work with my i3?

GMP has optimized assembly for several processors. I'd expect it to give decent performance on an i3.
yeah, one of my i3 went up from 400 to 3000 / 3 threads - boosting Smiley
craslovell
Member
**
Offline Offline

Activity: 112


Hashing away, the moments that make up a dull day.


View Profile

Ignore
July 13, 2013, 10:54:07 PM
 #11

Giving it a run now
Chemisist
Member
**
Offline Offline

Activity: 99



View Profile

Ignore
July 13, 2013, 10:55:00 PM
 #12

Here is my high performance version of Sunny King's Primecoin client. This version improves mining performance significantly.

Notable changes:
 * Use GMP for bignum calculations in the mining threads
 * Reduced sieve size to 100,000 so that important arrays fit into L1 cache
 * Replaced some bignum calculations with 64-bit arithmetic inside the sieve
 * Reduced the amount of memory allocations

Windows x64 binaries
http://sourceforge.net/projects/primecoin-hp/files/0.1.1-hp1/primecoin-0.1.1-hp1-winx64.zip/download
https://mega.co.nz/#!ksEDGYLY!M3orWiIf8_Twipn13oVRcA298EMU_GdxxtVvLZTFMDs
SHA1SUM: ee17da5f3be1cd1ca23ee3df57dcca71f560881b

Windows x86 binaries
http://sourceforge.net/projects/primecoin-hp/files/0.1.1-hp1/primecoin-0.1.1-hp1-winx86.zip/download
https://mega.co.nz/#!E1lXySbC!EIkrCi3olKURb0RXs8wwRifbvBhiXtu4OzT-FLNL8Kk
SHA1SUM: b557bce76691a391b5328d437180403d6f8eeae0

Source code
https://github.com/mikaelh2/primecoin

Linux users please compile it yourself for now.

Some primes per sec numbers (on 64-bit Linux):
~8700 on an Intel Core i7-4770k
~3100 on an Intel Core 2 Q6600

This release includes mustyoshi's patch from this post:
https://bitcointalk.org/index.php?topic=251850.msg2689981#msg2689981
[/quote

Can you compare the number of blocks found with your code versus sunny's code on the test net per some time interval?  As sunny has said multiple times, the pps rate is not an effective measure of block finding increase.

btc 1ChemaH12nRmd75M8BmPSiqd8x7B2wxFNF     ltc LaWX7jgJDyQ2oFaQYJvo5kqC1e1KYPoCfd     xpm Ab8NSgxHgGUJvHgSHYqMYBMWai6ZdsA91s
Vannicke
Member
**
Offline Offline

Activity: 76


That guy, you know, with the face


View Profile

Ignore
July 13, 2013, 10:57:24 PM
 #13

http://puu.sh/3CdpH.png <--- from 700 to 10,000 on a Phenom II 1100t

The Satoshi Jar: 16t2BLGZyaMpGm3vzYWxucGz8g4bVotr1h - The Prime Jar: AKbun65HqafDNZxigNxoBoGNDA89hs9ks8
The Lite Jar: LQMAB1wsriguAWrWcekr3guGmRAxwEAUkN - The Nxt Jar: 12360768993656992210
shinkicker
Member
**
Offline Offline

Activity: 84


View Profile

Ignore
July 13, 2013, 10:58:37 PM
 #14

Any new extra libraries / dependences needed?

LTC: LcSnvHbRZ2TDzUPD4qSaeXhp9PPUVC6ECx
BTC: 16Yab1VhWKm9kf29khEcCbmr8m8AeEVUKV
Moebius327
Sr. Member
****
Offline Offline

Activity: 392


Escrow Service


View Profile WWW

Ignore
July 13, 2013, 10:59:06 PM
 #15

Found any blocks?

Life is good!
SALHERO
Member
**
Offline Offline

Activity: 112



View Profile

Ignore
July 13, 2013, 11:02:29 PM
 #16

Found any blocks?

you think somebody after a mins of the release found a block very easy. i have more than 24 hrs before this release @900pps and not found nothing, give more than 3 hrs for check this
OnlyC
Full Member
***
Offline Offline

Activity: 126


View Profile

Ignore
July 13, 2013, 11:03:10 PM
 #17

Error when compile on Ubuntu 12.04

In file included from main.cpp:16:0:
prime.h:10:17: fatal error: gmp.h: No such file or directory
compilation terminated.
make: *** [obj/main.o] Error 1
Vannicke
Member
**
Offline Offline

Activity: 76


That guy, you know, with the face


View Profile

Ignore
July 13, 2013, 11:03:59 PM
 #18

Can you compare the number of blocks found with your code versus sunny's code on the test net per some time interval?  As sunny has said multiple times, the pps rate is not an effective measure of block finding increase.

I believe that has to do with the fact that the PPS varies widely ... this is a dramatic increase on each cpu, i think when PPS is "generally high" or "generally low" is what sunny meant.

The Satoshi Jar: 16t2BLGZyaMpGm3vzYWxucGz8g4bVotr1h - The Prime Jar: AKbun65HqafDNZxigNxoBoGNDA89hs9ks8
The Lite Jar: LQMAB1wsriguAWrWcekr3guGmRAxwEAUkN - The Nxt Jar: 12360768993656992210
rethaw
Sr. Member
****
Offline Offline

Activity: 378



View Profile

Ignore
July 13, 2013, 11:05:06 PM
 #19

Found any blocks?

Doesn't reducing the sieve size reduce the likelihood you'll find a solution by the same amount you've increased the primes per second?

captainfuture
Sr. Member
****
Offline Offline

Activity: 280



View Profile

Ignore
July 13, 2013, 11:05:49 PM
 #20

my semprons make 1000pps now

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 39 40 41 42 43 44 45 46 47 48 49 50 51 ... 133
  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!