Bitcoin Forum
May 27, 2024, 07:19:53 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 [10] 11 12 13 14 15 16 »
181  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin High Performance on: July 19, 2013, 10:10:48 PM
I've installed all the needed extras to run primecoind via apt-get install, then I just uploaded the primecoind program to /usr/local/bin and it worked like a charm. Is there any harm to this? It cuts the time of having to compile it each and every time.

The libgmp installed by apt-get may be sup-optimal for your CPU. My guide shows how to compile your own libgmp. Then you can grab libgmp.so.10 from /usr/local/bin and copy it to every instance.
182  Alternate cryptocurrencies / Altcoin Discussion / Re: [XPM] Primecoin High Performance Linux Compilation Guide on: July 19, 2013, 09:35:53 PM
sudo make install
command gets me this...  is this normal?

Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(Cool manual pages.
----------------------------------------------------------------------
 /bin/mkdir -p '/usr/local/include'
 /usr/bin/install -c -m 644 gmp.h '/usr/local/include'
 /bin/mkdir -p '/usr/local/include'
 /usr/bin/install -c -m 644 gmpxx.h '/usr/local/include'
make  install-data-hook
make[4]: Entering directory `/root/gmp-5.1.2'

+-------------------------------------------------------------+
| CAUTION:                                                    |
|                                                             |
| If you have not already run "make check", then we strongly  |
| recommend you do so.                                        |
|                                                             |
| GMP has been carefully tested by its authors, but compilers |
| are all too often released with serious bugs.  GMP tends to |
| explore interesting corners in compilers and has hit bugs   |
| on quite a few occasions.                                   |
|                                                             |
+-------------------------------------------------------------+


make[4]: Leaving directory `/root/gmp-5.1.2'
make[3]: Leaving directory `/root/gmp-5.1.2'
make[2]: Leaving directory `/root/gmp-5.1.2'
make[1]: Leaving directory `/root/gmp-5.1.2'


Looks perfectly normal.
183  Alternate cryptocurrencies / Altcoin Discussion / Re: [XPM] Mining Efficiently or just plain old being stupid? on: July 19, 2013, 09:32:46 PM
The client may generate new addresses in the wallet at which point your wallets will diverge. There's a trick around that which is to create lots of reserve addresses.
184  Alternate cryptocurrencies / Altcoin Discussion / Re: [XPM] Primecoin High Performance Linux Compilation Guide on: July 19, 2013, 06:19:49 PM
I managed to compile Primecoin on CentOS 6.4. I added some extra steps and notes to the guide.
185  Alternate cryptocurrencies / Altcoin Discussion / Re: [XPM] Primecoin High Performance Linux Compilation Guide on: July 19, 2013, 05:51:18 PM
ran this guide on one of my new ubuntu 12.x servers and when running the command to start it i get these errors

gateway@a:~/work$ ./run-primecoind: line 1: 14844 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14847 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14850 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14853 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14856 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1

You can type killall run-primecoind to kill the script if you haven't already.

GCC is misdetecting your CPU and compiling wrong set of instructions into the binary. I removed the -march=native compiler flag from the instructions. I guess I'll have to leave it out if it's causing too many problems.
186  Alternate cryptocurrencies / Altcoin Discussion / Re: [XPM] Primecoin High Performance Linux Compilation Guide on: July 19, 2013, 04:59:41 PM
1. can you modify these commands for Centos 6.3 64bit because most servers run this OS.

Ok, I tried compiling on CentOS, and I ran into some issues with OpenSSL. Apparently Red Hat went and removed support for elliptic curve cryptography...
187  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin High Performance on: July 19, 2013, 04:16:40 PM
Didn't the consensus show that 1M sievesize was some kind of sweet spot ?

Well, I'm not sure if I'm part of that consensus because I haven't seen any statistically significant data to support that.
188  Alternate cryptocurrencies / Altcoin Discussion / Re: [XPM] Primecoin High Performance Linux Compilation Guide on: July 19, 2013, 04:14:35 PM
Woudn't it be better to:
Code:
cd ~
After step 2?

I added 'cd' to the start of steps 2 and 3 just to be safe.
189  Alternate cryptocurrencies / Altcoin Discussion / Re: [XPM] Primecoin High Performance Linux Compilation Guide on: July 19, 2013, 04:05:57 PM
1. can you modify these commands for Centos 6.3 64bit because most servers run this OS.

I think you only need to pull different dependencies but I'm going to check that.

2. when you say create a bash script

cd
echo '#!/bin/bash
killall --older-than 10s -q run-primecoind primecoind
function background_loop
        while :; do
                primecoind >/dev/null 2>&1
                sleep 1
        done
background_loop &' > run-primecoind
chmod +x run-primecoind


do i type these commands into putty or do i put that all in a text file, call it something, upload to the server and then somehow run this?

thanks

Those are the commands you should copy and paste into PuTTY.
190  Alternate cryptocurrencies / Altcoin Discussion / Re: [XPM] CUDA enabled qt client miner for primecoins. Source code inside. WIP on: July 19, 2013, 03:33:55 PM
Mikaelh, since my code is a fork of your client... whats the status of your github page?
https://github.com/mikaelh2/primecoin

Or did you move permanently to bitbucket / or sourceforge with this?

Github support hasn't responded to me. Right now I'm forced to use Bitbucket as a replacement.
191  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin High Performance on: July 19, 2013, 03:31:15 PM
I posted a new compilation guide for Linux:
https://bitcointalk.org/index.php?topic=259022.0

It shows you how to compile your own libgmp and everything else.

Mikaelh. I have a question for you.

My CPU's have 12MB of cache each. Is that advantageous for primecoin mining? I have noticed I have been getting significantly higher primespersec than most of my friends when we use larger seivesizes, even when they have newer processors!

Well, it might run a tiny bit faster if you have a large L3 cache. I wrote most of the code to run fast using the L1 and L2 caches, so the L3 cache is actually not that important. But of course it never hurts to have a big L3 cache. Wink

GPU architecture also has a big impact.

It's 12MB of L2 cache, not L3 cache. Would having this much L2 cache help any significant amount?

Not really. Larger caches are also slower.
192  Alternate cryptocurrencies / Altcoin Discussion / Re: [XPM] Primecoin High Performance Linux Compilation Guide on: July 19, 2013, 03:28:57 PM
Updated the guide a bit to add -march=native to CXXFLAGS. If you already used the guide, you only need to do step 3 again to optimize for host CPU.
193  Alternate cryptocurrencies / Altcoin Discussion / Re: [XPM] Primecoin High Performance Linux Compilation Guide on: July 19, 2013, 03:19:38 PM
Is linux better for mining or should i keep my system on Windows 7?

I think at least my 64-bit Windows build should be nearly as fast for all practical purposes.
194  Alternate cryptocurrencies / Altcoin Discussion / Re: [XPM] Primecoin High Performance Linux Compilation Guide on: July 19, 2013, 03:13:45 PM
Thanks a lot !

You kept the 1M sievesize? I thought the 2M was better

It's there so that people can change it if they want.
195  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin Release - First Scientific Computing Cryptocurrency on: July 19, 2013, 03:12:55 PM
Can't get the damn block chain to download. Keeps saying no source available even though I added nodes.

It's possible that all the nodes you added are either full or unavailable. Here's a fresh list of peers from my primecoind:

Code:
        "addr" : "144.76.29.243:9911",
        "addr" : "192.241.214.228:9911",
        "addr" : "27.120.120.134:9911",
        "addr" : "78.31.104.38:9911",
        "addr" : "198.199.73.210:9911",
        "addr" : "198.211.96.17:9911",
        "addr" : "54.254.130.129:9911",
        "addr" : "54.253.85.165:9911",

Hopefully at least one of those works.
196  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin High Performance on: July 19, 2013, 03:10:51 PM
I posted a new compilation guide for Linux:
https://bitcointalk.org/index.php?topic=259022.0

It shows you how to compile your own libgmp and everything else.

Mikaelh. I have a question for you.

My CPU's have 12MB of cache each. Is that advantageous for primecoin mining? I have noticed I have been getting significantly higher primespersec than most of my friends when we use larger seivesizes, even when they have newer processors!

Well, it might run a tiny bit faster if you have a large L3 cache. I wrote most of the code to run fast using the L1 and L2 caches, so the L3 cache is actually not that important. But of course it never hurts to have a big L3 cache. Wink

GPU architecture also has a big impact.
197  Alternate cryptocurrencies / Altcoin Discussion / Re: [XPM] CUDA enabled qt client miner for primecoins. Source code inside. WIP on: July 19, 2013, 02:59:32 PM
Awesome.
So does that mean I have to order an Nvidia card now rather than the 7950 I was going to buy with the BTC I made last night off XPM? lol

Before anyone actually starts ordering new GPUs, I'd like to say that I see no reason why CUDA should outperform OpenCL. The current mining code is mostly doing integer math. As most people should know from Bitcoin/Litecoin mining, GPUs from AMD are very good at integer math. I would advise waiting until properly optimized CUDA and OpenCL miners are available until you decide which GPUs you will be buying in the future.
198  Alternate cryptocurrencies / Announcements (Altcoins) / Re: [XPM] [ANN] Primecoin High Performance on: July 19, 2013, 02:51:54 PM
I posted a new compilation guide for Linux:
https://bitcointalk.org/index.php?topic=259022.0

It shows you how to compile your own libgmp and everything else.
199  Alternate cryptocurrencies / Altcoin Discussion / [XPM] Primecoin High Performance Linux Compilation Guide on: July 19, 2013, 02:50:16 PM
Here are some Linux compiling instructions for my high performance version of Primecoin. There are plenty of other guides out there but none of them seem to address all the issues. Now I'm writing my own guide. This should be the definitive guide on how to compile Primecoin on Linux. Commands need to be entered exactly as they appear, so copy and pasting is recommended.

Link to the main high performance thread:
https://bitcointalk.org/index.php?topic=255782.0

Another guide written by eCoinomist is available here:
http://ecoinomist.com/xpm-primecoin-mining-guide-on-linux

Please note that if you are new to Linux, it's best to stick with one guide. Mixing the instructions from different guides may produce errors later.

Tested with the following Linux distributions:
 - Ubuntu 13.04
 - CentOS 6.4

Step 1. Installing the required dependencies

Using apt-get with latest Ubuntu 13.04:
Code:
sudo apt-get install -y build-essential m4 libssl-dev libdb++-dev libboost-all-dev libminiupnpc-dev

The 'sudo' command requires you to type the password for the current user. If you don't have sudo working, you need to manually switch to root with 'su' before running those commands.

Warning: If you have installed a specific version such as libdb5.3++-dev before, then don't install the meta-package libdb++-dev which may pull a different version.

Alternative for CentOS users:
Code:
su -c 'yum install gcc-c++ m4 openssl-devel db4-devel boost-devel'

Step 2. Compiling GMP

Latest version supports all the new CPUs.

Code:
cd
rm -rf gmp-5.1.2.tar.bz2 gmp-5.1.2
wget http://mirrors.kernel.org/gnu/gmp/gmp-5.1.2.tar.bz2
tar xjvf gmp-5.1.2.tar.bz2
cd gmp-5.1.2
./configure --enable-cxx
make
sudo make install

The configure script will attempt to automatically detect the host CPU and enable the best optimizations for it.

Step 2b. Compiling OpenSSL (for CentOS and Fedora users)

This step is only required if you're using CentOS. Red Hat has removed support for elliptic curve cryptography from the OpenSSL it supplies.

Code:
cd
rm -rf openssl-1.0.1e.tar.gz openssl-1.0.1e
wget ftp://ftp.pca.dfn.de/pub/tools/net/openssl/source/openssl-1.0.1e.tar.gz
tar xzvf openssl-1.0.1e.tar.gz
cd openssl-1.0.1e
./config shared --prefix=/usr/local --libdir=lib
make
sudo make install

Step 2c. Compiling miniupnpc (for CentOS users)

Code:
cd
rm -rf miniupnpc-1.6.20120509.tar.gz
wget http://miniupnp.tuxfamily.org/files/download.php?file=miniupnpc-1.6.20120509.tar.gz
tar xzvf miniupnpc-1.6.20120509.tar.gz
cd miniupnpc-1.6.20120509
make
sudo INSTALLPREFIX=/usr/local make install

Step 3. Compiling primecoind

Code:
cd
rm -rf primecoin-0.1.2-hp12.tar.bz2 primecoin-0.1.2-hp12
wget http://sourceforge.net/projects/primecoin-hp/files/0.1.2-hp12/primecoin-0.1.2-hp12.tar.bz2/download -O primecoin-0.1.2-hp12.tar.bz2
tar xjvf primecoin-0.1.2-hp12.tar.bz2
cd primecoin-0.1.2-hp12/src
cp makefile.unix makefile.my
sed -i -e 's/$(OPENSSL_INCLUDE_PATH))/$(OPENSSL_INCLUDE_PATH) \/usr\/local\/include)/' makefile.my
sed -i -e 's/$(OPENSSL_LIB_PATH))/$(OPENSSL_LIB_PATH) \/usr\/local\/lib)/' makefile.my
sed -i -e 's/$(LDHARDENING) $(LDFLAGS)/$(LDHARDENING) -Wl,-rpath,\/usr\/local\/lib $(LDFLAGS)/' makefile.my
make -f makefile.my
strip primecoind
sudo cp -f primecoind /usr/local/bin/

The last line will install the primecoind binary to /usr/local/bin.

CentOS users: Use the following 'make' command instead:
Code:
make -f makefile.my BOOST_LIB_SUFFIX=-mt

Step 4. Configuration

Create a configuration file:

Code:
cd
mkdir -p .primecoin
echo 'server=1
gen=1
rpcallowip=127.0.0.1
rpcuser=primecoinrpc
rpcpassword=SOME_SECURE_PASSWORD
sievesize=1000000' > .primecoin/primecoin.conf
sed -i -e "s/SOME_SECURE_PASSWORD/`< /dev/urandom tr -cd '[:alnum:]' | head -c32`/" .primecoin/primecoin.conf

You may optinally customize the configuration file. The last line puts a random password in the configuration file automatically, so you don't need to change anything if you're only sending RPC commands from localhost.

Type these commands to create an auto-restart script:

Code:
cd
echo '#!/bin/bash
export PATH="/usr/local/bin:$PATH"
killall --older-than 10s -q run-primecoind primecoind
function background_loop
        while :; do
                primecoind >/dev/null 2>&1
                sleep 1
        done
background_loop &' > run-primecoind
chmod +x run-primecoind

CentOS users may want to remove the 'killall' command from this script because the version that comes with CentOS does not support the --older-than option.

And for convenience, create a stopping script:

Code:
cd
echo '#!/bin/bash
killall -q run-primecoind
primecoind stop' > stop-primecoind
chmod +x stop-primecoind

Step 5. Starting mining

Simply type the following to start mining:
Code:
./run-primecoind

It will take a while for it to sync up with the network. The script will continue running in the background, automatically restarting primecoind if it crashes.

Step 6. Monitoring the progress

Checking that the primecoind process is runnning:
Code:
ps xuf |grep primecoind

RPC commands can be sent to the daemon like this:
Code:
primecoind getprimespersec
primecoind listtransactions
primecoind getinfo
primecoind getmininginfo
primecoind getdifficulty

Any combination of these can be used with the 'watch' command like this:
Code:
watch 'primecoind getinfo && primecoind listtransactions'

Press Ctrl + C to terminate the watch command.

You can also look at the output in debug.log:
Code:
grep primemeter ~/.primecoin/debug.log

If you want to see those in real-time, try this:
Code:
tail -f ~/.primecoin/debug.log |grep primemeter

Step 7. Stopping mining

Run the stop script:
Code:
./stop-primecoind
200  Alternate cryptocurrencies / Altcoin Discussion / Re: [XPM] CUDA enabled qt client miner for primecoins. Source code inside. WIP on: July 19, 2013, 01:35:09 PM
Oh, wow. You integrated CUDA code into the Primecoin client. I'll take a closer look later. Maybe I can even get it working. Wink
Pages: « 1 2 3 4 5 6 7 8 9 [10] 11 12 13 14 15 16 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!