• November 17, 2017, 11:00:39 PM
• Welcome, Guest. Please login or register.
 

Author Topic: Solo mining MMC using multiple yam workers  (Read 4072 times)

0 Members and 4 Guests are viewing this topic.

Offline toonces

  • Registered Memorycoin Shareholder
  • Intermediate Member
  • *************
  • Posts: 46
    • View Profile
  • Memorycoin Address:
    MMM71E4XaXiTbeDf36Pq8PjMja8XusemSS
Solo mining MMC using multiple yam workers
« on: April 03, 2014, 02:31:42 AM »
Here is a guide that I use to create solo mining MMC using multiple yam workers

I. Create Wallet Server

1. Install Ubuntu Server 12.04 LTS 64 bit from
http://www.ubuntu.com/download/server

2. Install/compile memorycoind
https://github.com/memorycoin/memorycoin

3. Use this configuration file under .memorycoin
Change 192.168.1.* for your worker ip where you run yam
Change setting rpcthreads >= 2*number of workers ( recommended by  yvg1900)
memorycoin.conf
Code: [Select]
rpcuser=memorycoinrpc
rpcpassword=changepassword
rpcallowip=127.0.0.1
rpcallowip=192.168.1.*
rpcport=1925
rpcthreads=50
server=1
daemon=1
listen=1

4. Run
./memorycoind

5. Check
./memorycoind getinfo

And wait until blocks is equal to the current mmc block which you can find at
http://mmcexplorer.info/ current block
or
http://agran.net/memorycoin2_calc.html current block number


Or run this bash script to automatically download/compile memorycoind and create the yam-mmc.cfg file
Code: [Select]
#!/usr/bin/env bash

set -o errexit
set -o xtrace

sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install libtool autotools-dev autoconf pkg-config
sudo apt-get -y install git build-essential libssl-dev libdb4.8-dev libdb4.8++-dev libboost1.48-all-dev
git clone https://github.com/memorycoin/memorycoin
cd memorycoin/src
make -f makefile.unix USE_UPNP=-
cp memorycoind ~

set +o errexit
./memorycoind 2> pass.out
set -o errexit

egrep "^rpcus|^rpcpassword" pass.out > ~/.memorycoin/memorycoin.conf
cat >> ~/.memorycoin/memorycoin.conf << EOF
rpcallowip=127.0.0.1
rpcallowip=192.168.1.*
rpcport=1925
rpcthreads=50
server=1
daemon=1
listen=1
EOF

chmod 400 ~/.memorycoin/memorycoin.conf
rm pass.out

USER=$(egrep "^rpcuser" ~/.memorycoin/memorycoin.conf | cut -d'=' -f2)
PASS=$(egrep "^rpcpassword" ~/.memorycoin/memorycoin.conf | cut -d'=' -f2)

cat > ~/yam-mmc.cfg << EOF
threads = 0
mining-params = mmc:av=0&aesni=on&m=1024&donation-interval=25
mine = getwork://$USER:$PASS@192.168.1.2:1925/mmc
EOF

Optional: Installing firewall if you have your wallet outside a firewall.
Please read through the script and modified the appropriate line.
You can accidentally lock yourself out if there is a mistake.

firewall.sh
Code: [Select]
#! /bin/bash

apt-get update
apt-get -y upgrade
ntpdate 0.pool.ntp.org
apt-get -y install ntp

wget http://www.configserver.com/free/csf.tgz
tar -xzf csf.tgz
cd csf
sh install.sh

# change 192.168.1.0/24 to your workers network.

cat >> /etc/csf/csf.allow << EOF
tcp|in|d=1925|s=192.168.1.0/24
EOF

cat >> /etc/csf/csf.pignore << EOF
exe:$HOME/memorycoind
exe:/usr/bin/tmux
exe:/usr/bin/whoopsie
exe:/usr/sbin/atd
exe:/bin/bash
exe:/usr/sbin/rsyslogd
EOF

sed -i "s/^TESTING =\ .*$/TESTING = \"0\"/" /etc/csf/csf.conf
sed -i "s/^TCP_IN =\ .*$/TCP_IN = \"22,53,1968\"/" /etc/csf/csf.conf
sed -i "s/^TCP_OUT =\ .*$/TCP_OUT = \"22,53,80,443,1968\"/" /etc/csf/csf.conf
sed -i "s/^UDP_IN =\ .*$/UDP_IN = \"53\"/" /etc/csf/csf.conf
sed -i "s/^UDP_OUT =\ .*$/UDP_OUT = \"53,67,123\"/" /etc/csf/csf.conf
[font=Arial]/usr/sbin/csf -r[/font]
/etc/init.d/lfd restart
run it like
sudo bash ./firewall.sh


II. Create 1 or more workers

1. Install Ubuntu Server 12.04 LTS 64 bit

2. Download the appropriate yam for your CPU from:
 
https://bitsharestalk.org/index.php?topic=2609.0

I use yam-yvg1900-M7q-linux64-sandy-bridge
Next, change 192.168.1.2 to your wallet IP Address
Modify the donation-interval to your liking from 2-100.  Smaller number mean bigger contribution to yam developer.

yam-mmc.cfg
Code: [Select]
threads = 0
mining-params = mmc:av=0&aesni=on&m=1024&donation-interval=25
mine = getwork://memorycoinrpc:changepassword@192.168.1.2:1925/mmc

3. Run the command below

tmux new-session -d './yam -c yam-mmc.cfg >> yam.out' \; detach

If everything works the way it should, yam.out should look like this

Code: [Select]
[2014-03-08 12:54:13.661017] MMC Agg. SPM: 22.010, HPM: 22.374; Rnds C/I: 12919/1744, Don. C/I: 158/32; Cfg/Wkr SPM: 22.010/1.3960, Cfg/Wkr HPM: 22.373/1.3983 13077 rnds AV=2, ART=42909
[2014-03-08 12:54:13.661094]   192.168.1.2: On-line, Shares Submitted 0, Accepted 0
[2014-03-08 12:54:14.612521] Found solution - 11687 / 1968 / 1031891111
[2014-03-08 12:54:16.363473] Found solution - 12773 / 1968 / 1956038710
[2014-03-08 12:54:17.168213] Found solution - 12816 / 1968 / 400115672

Depending on your total HPM when it finds a block the Shares Submitted 0, Accepted 0 will change to
Shares Submitted 1, Accepted 1

For example, I have an approximate total 470 HPM across 21 servers (dual 8 core) with this setup I managed to find 6 blocks in 3 days. It appears conclusive according to the mining calculator http://agran.net/memorycoin2_calc.html


Happy Mining
« Last Edit: April 19, 2014, 02:41:20 AM by toonces »

Offline Delinquency

  • CEO
  • Administrator
  • Epic Member
  • *********
  • Posts: 665
    • View Profile
  • Memorycoin Address:
    MVTEceoiVWsnyyWU69nNFCqcpqDjyChyEH
Re: [GUIDE] Solo mining MMC using multiple yam workers
« Reply #1 on: April 03, 2014, 04:25:13 PM »
Great tutorial.
I don't have that much HPM to run solo :\
How do you mine on a GPU miner?

Offline toonces

  • Registered Memorycoin Shareholder
  • Intermediate Member
  • *************
  • Posts: 46
    • View Profile
  • Memorycoin Address:
    MMM71E4XaXiTbeDf36Pq8PjMja8XusemSS
Re: [GUIDE] Solo mining MMC using multiple yam workers
« Reply #2 on: April 04, 2014, 12:56:11 AM »
I don't have any experience in GPU mining.  In theory if the mining software talk getwork protocol you can just point the mining software to the wallet instead of yam in the guide above.  The think with solo mining you need to have a lot of patient and need to run the worker/miner 24 hrs.

Offline kanes

  • Chief Support Officer
  • Fanatic Member
  • ***************
  • Posts: 144
    • View Profile
  • Memorycoin Address:
    MMCcso6SQ8oiEZzRmzooYCJK3iFGUqXBSM
Re: [GUIDE] Solo mining MMC using multiple yam workers
« Reply #3 on: April 04, 2014, 11:34:59 AM »
that is alot of servers. Just curiosity, Its your server or you have it at a cloud?
CSO Vote Address: MVTEcsoS5YnxyhAF4Dx4GB7VLKRF325JGa
Please send 0.00000001 MMC to vote for me as your new CSO!

Offline toonces

  • Registered Memorycoin Shareholder
  • Intermediate Member
  • *************
  • Posts: 46
    • View Profile
  • Memorycoin Address:
    MMM71E4XaXiTbeDf36Pq8PjMja8XusemSS
Re: [GUIDE] Solo mining MMC using multiple yam workers
« Reply #4 on: April 04, 2014, 02:26:03 PM »
Some bare metal server, some OpenStack cloud.  I'm using it for load testing.

Offline GarudaCoin

  • Novice
  • *
  • Posts: 23
  • I love MMC!
    • View Profile
  • Memorycoin Address:
    MQKMTFXvd34v35x3pitoQT9zE2s1LugLat
Re: [GUIDE] Solo mining MMC using multiple yam workers
« Reply #5 on: April 06, 2014, 09:33:22 AM »
thank you for tutorial..
i can try

Offline GarudaCoin

  • Novice
  • *
  • Posts: 23
  • I love MMC!
    • View Profile
  • Memorycoin Address:
    MQKMTFXvd34v35x3pitoQT9zE2s1LugLat
Re: [GUIDE] Solo mining MMC using multiple yam workers
« Reply #6 on: April 06, 2014, 09:34:39 AM »
can mining MMC with CPU ??

Offline toonces

  • Registered Memorycoin Shareholder
  • Intermediate Member
  • *************
  • Posts: 46
    • View Profile
  • Memorycoin Address:
    MMM71E4XaXiTbeDf36Pq8PjMja8XusemSS
Re: [GUIDE] Solo mining MMC using multiple yam workers
« Reply #7 on: April 06, 2014, 11:03:03 AM »
That is what mmc good for.  CPU and GPU about the same speed will yield the same result.
See for more detail http://memorycoin.org/technical/

you can take a look at this thread for the performance list
https://bitsharestalk.org/index.phptopic=1498.0
https://bitsharestalk.org/index.php?topic=2761.0 

Discussion about yam miner software https://bitsharestalk.org/index.php?topic=2609.0 the faster miner software for mmc
« Last Edit: April 06, 2014, 11:40:44 AM by toonces »

Offline GarudaCoin

  • Novice
  • *
  • Posts: 23
  • I love MMC!
    • View Profile
  • Memorycoin Address:
    MQKMTFXvd34v35x3pitoQT9zE2s1LugLat
Re: [GUIDE] Solo mining MMC using multiple yam workers
« Reply #8 on: April 06, 2014, 02:26:23 PM »
thank you for information....

Offline Delinquency

  • CEO
  • Administrator
  • Epic Member
  • *********
  • Posts: 665
    • View Profile
  • Memorycoin Address:
    MVTEceoiVWsnyyWU69nNFCqcpqDjyChyEH
Re: Solo mining MMC using multiple yam workers
« Reply #9 on: September 10, 2015, 11:29:36 PM »
I've discovered the issue on my Windows PC - IPV6 was enabled.
rpcallowip=::1 in your configuration file should do the trick if you can't access the Memorycoin Client from YAM.