Bitcoin2014/01/01 16:38

BitcoinがAWSのGPGPUで採掘出来るか確かめています。採掘プログラムはpythonを利用しているようだが他のプログラムは無いのか?

Bitcoinの説明
http://www.bitcoin.co.jp/index.html

口座開設
https://blockchain.info/ja/wallet/

取引(Mt. Gox)
https://www.mtgox.com/

採掘開始手順
https://bitcointalk.org/index.php?topic=2636

プログラム入手先
http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.8.6/
https://pypi.python.org/pypi/python-jsonrpc
https://github.com/CFSworks/poclbm-mmp/tree/master

g2.2xlarge2014/01/03 23:25

cg1.4xlargeは$2.1/Hと高いので、g2.2xlargeを試そうとしております。ちなみに$0.65/H。USでしか今は使えない様ですね。

【AWS発表】 3Dストリーミングアプリケーション構築に最適なEC2 G2インスタンスタイプを追加
http://aws.typepad.com/aws_japan/2013/11/build-3d-streaming-applications-with-ec2s-new-g2-instance-type.html

Amazon Linux AMI with NVIDIA GRID GPU Driver
https://aws.amazon.com/marketplace/pp/B00FYCDDTE

Amazon Linux AMI 2013.09 Release Notes
http://aws.amazon.com/jp/amazon-linux-ami/2013.09-release-notes/

Amazon Linux AMI
http://aws.amazon.com/jp/amazon-linux-ami/

root ではなく ec2-user でログイン
http://memo-off.blogspot.jp/2010/10/amazon-linux-ami.html

Litecoin2014/01/05 20:04

Bitcoinが良いのですがなかなか採掘出来ないと言うので、Litecoinの環境を整えようとしております。
「Amazon Linux AMI with NVIDIA GRID GPU Driver」はデフォルトでNVIDIAとcudaの環境が整っている様なので、この設定は抜かして良さそうです。
以下の様にしたらコンパイル出来ました。cudaは5.0でなく最新版の5.5で大丈夫の様です。

sudo su -
yum update
yum install wget git kernel-devel gcc make curl-devel gcc-c++
yum install automake
git clone https://github.com/cbuchner1/CudaMiner
cd CudaMiner
export LD_LIBRARY_PATH="/opt/nvidia/cuda/lib64:/opt/nvidia/cuda/lib"
./autogen.sh
./configure
make
ll cudaminer
-rwxr-xr-x 1 root root 2683541 Jan 5 09:58 cudaminer

参考サイト
https://litecointalk.org/index.php?topic=3231.0
http://www.kevintaber.com/2013/12/05/compile-cudaminer-centos-6-5-minimal/
https://github.com/cbuchner1/CudaMiner/issues/60

Unix ドライバ (NVIDIA)
http://www.nvidia.co.jp/object/unix-jp.html
CUDA Downloads (NVIDIA)
https://developer.nvidia.com/cuda-downloads

実行結果の例:
以下の様になっておりますが、詳細不明

[root@ip-10-0-0-210 CudaMiner]# ./cudaminer -d 0 -i 0 --benchmark
*** CudaMiner for nVidia GPUs by Christian Buchner ***
This is version 2013-12-18 (beta)
based on pooler-cpuminer 2.3.2 (c) 2010 Jeff Garzik, 2012 pooler
Cuda additions Copyright 2013 Christian Buchner
My donation address: LKS1WDKGED647msBQfLBHV3Ls8sveGncnm

[2014-01-05 11:27:48] 1 miner threads started, using 'scrypt' algorithm.
[2014-01-05 11:27:59] GPU #0: GRID K520 with compute capability 3.0
[2014-01-05 11:27:59] GPU #0: interactive: 0, tex-cache: 0 , single-alloc: 0
[2014-01-05 11:27:59] GPU #0: Performing auto-tuning (Patience...)
[2014-01-05 11:27:59] GPU #0: maximum warps: 977

アプリ実行不可2014/01/05 21:33

OS X 10.8 にしたら、DLファイルが実行出来なくなっていました。以下の様にcontrolキーを押しながら、クリックし、開くを選択すると、それが解消出来ます。

Mac App Store と確認済みの開発元からのアプリケーションを許可
http://support.apple.com/kb/ht5290?viewlocale=ja_JP&locale=ja_JP

/usr/bin/cc2014/01/06 14:20

OSを10.7から10.8に上げたら、ccが使えない事が分かりました。調べたら、以下の情報を得ました。OSの問題ではなくXcodeを5.0.2にした為の様です。別途、コマンドラインツールをインストールする必要が有る様です。インストールしたら、使えるようになりました。まずは目出たし目出たし。

https://discussionsjapan.apple.com/message/100770952#100770952

xz2014/01/06 15:05

xzは最近良く見る圧縮ファイルの拡張子ですが、portを使えばインストール出来るので、インストールしました。

手順:
sudo port selfupdate
port outdated
sudo port upgrade outdated
sudo port install xz

参考サイト:
http://ja.wikipedia.org/wiki/Xz_(%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%83%95%E3%82%A9%E3%83%BC%E3%83%9E%E3%83%83%E3%83%88)
https://litecoin.info/Bootstrap.dat
http://blog.asial.co.jp/371

Out of Sync2014/01/06 20:39

Litecoin-Qtですが、インストールしたのですが、Out of Syncが消えません。
https://litecoin.org/ja

TCPの9333ポートを開けろと有るのですが、開けても消えません。
https://litecointalk.org/index.php?topic=7793.0
http://www.akakagemaru.info/port/3800.html

bootstrap.datをDLして、所定のディレクトリに配置しても、消えません。
https://litecoin.info/Main_Page
https://litecoin.info/Bootstrap.dat

bootstrap.datを所定に位置に配置して、Litecoin-Qtがそのファイルを読み込み、ネットワークで同調が終わったら、Out of Syncが消えました。

ポートが開けたのが良かったのか、bootstrap.datを配置したのが良かったのか、不明ですが、良かったです。

まずはLitecoin-Qtをインストールするだけでなく、bootstrap.datを所定の位置に配置するのが良さそうです。

Litecoin mining2014/01/06 22:28

Litecoinの採掘に成功しました。レートは約230kHash/sです、高いのか低いのか判断がつきません。一位の人は約1900kHash/sです。どのようなマシンを使っているのでしょうね。ちなみに2chpoolを使ってます。

参考:
http://2chpool.com/
http://2chpool.com/account.html
http://2chpool.com/soft.html
GPU性能比較
https://litecoin.info/Mining_hardware_comparison

コマンド:
cudaminer -o stratum+tcp://ltc.2chpool.com:3333 -u user_id.worker_id -p worker_password

ログ:
*** CudaMiner for nVidia GPUs by Christian Buchner ***
This is version 2013-12-18 (beta)
based on pooler-cpuminer 2.3.2 (c) 2010 Jeff Garzik, 2012 pooler
Cuda additions Copyright 2013 Christian Buchner
My donation address: LKS1WDKGED647msBQfLBHV3Ls8sveGncnm

[2014-01-06 12:13:41] 1 miner threads started, using 'scrypt' algorithm.
[2014-01-06 12:13:41] Starting Stratum on stratum+tcp://ltc.2chpool.com:3333
[2014-01-06 12:13:44] Stratum detected new block
[2014-01-06 12:13:45] GPU #0: GRID K520 with compute capability 3.0
[2014-01-06 12:13:45] GPU #0: interactive: 0, tex-cache: 0 , single-alloc: 0
[2014-01-06 12:13:45] GPU #0: Performing auto-tuning (Patience...)
[2014-01-06 12:13:45] GPU #0: maximum warps: 977
[2014-01-06 12:14:38] Stratum detected new block
[2014-01-06 12:17:19] Stratum detected new block
[2014-01-06 12:17:58] Stratum detected new block
[2014-01-06 12:20:08] Stratum detected new block
[2014-01-06 12:20:14] GPU #0: 233.72 khash/s with configuration K24x32
[2014-01-06 12:20:14] GPU #0: using launch configuration K24x32
[2014-01-06 12:20:14] GPU #0: GRID K520, 0.06 khash/s
[2014-01-06 12:20:14] GPU #0: GRID K520, 112.86 khash/s
[2014-01-06 12:20:33] GPU #0: GRID K520, 224.30 khash/s
[2014-01-06 12:20:33] accepted: 1/1 (100.00%), 224.30 khash/s (yay!!!)
[2014-01-06 12:20:49] GPU #0: GRID K520, 224.09 khash/s
[2014-01-06 12:20:49] accepted: 2/2 (100.00%), 224.09 khash/s (yay!!!)
[2014-01-06 12:20:58] Stratum detected new block
[2014-01-06 12:20:59] GPU #0: GRID K520, 223.20 khash/s
[2014-01-06 12:21:07] GPU #0: GRID K520, 222.80 khash/s
[2014-01-06 12:21:07] accepted: 3/3 (100.00%), 222.80 khash/s (yay!!!)
[2014-01-06 12:21:38] GPU #0: GRID K520, 224.82 khash/s
[2014-01-06 12:21:38] accepted: 4/4 (100.00%), 224.82 khash/s (yay!!!)

cpuminer2014/01/07 12:20

cpuminer を試してみました。こっちの方は簡単に出来ました。

手順1:
sudo yum install gcc make curl-devel
wget http://sourceforge.net/projects/cpuminer/files/pooler-cpuminer-2.3.2.tar.gz
tar xzf pooler-cpuminer-2.3.2.tar.gz
cd cpuminer-2.3.2/
./configure CFLAGS="-O3"
make

minerd が出来上がる。

手順2:
sudo yum install gcc make curl-devel
wget http://sourceforge.net/projects/cpuminer/files/pooler-cpuminer-2.3.2-linux-x86_64.tar.gz
tar xzf pooler-cpuminer-2.3.2-linux-x86_64.tar.gz

minerd が出て来る。

実行:
./minerd -a scrypt -o stratum+tcp://ltc.2chpool.com:3333 -u user_id.worker_id -p worker_password

ログ:
[2014-01-07 02:44:33] Binding thread 5 to cpu 5
[2014-01-07 02:44:33] Binding thread 3 to cpu 3
[2014-01-07 02:44:33] Starting Stratum on stratum+tcp://ltc.2chpool.com:3333
[2014-01-07 02:44:33] Binding thread 0 to cpu 0
[2014-01-07 02:44:33] Binding thread 1 to cpu 1
[2014-01-07 02:44:33] Binding thread 2 to cpu 2
[2014-01-07 02:44:33] Binding thread 7 to cpu 7
[2014-01-07 02:44:33] Binding thread 6 to cpu 6
[2014-01-07 02:44:33] Binding thread 4 to cpu 4
[2014-01-07 02:44:33] 8 miner threads started, using 'scrypt' algorithm.
[2014-01-07 02:44:34] Stratum detected new block
[2014-01-07 02:44:35] thread 2: 4104 hashes, 5.06 khash/s
[2014-01-07 02:44:35] thread 0: 4104 hashes, 5.06 khash/s
[2014-01-07 02:44:35] thread 1: 4104 hashes, 5.05 khash/s
[2014-01-07 02:44:35] thread 3: 4104 hashes, 5.04 khash/s
[2014-01-07 02:44:35] thread 6: 4104 hashes, 4.99 khash/s
[2014-01-07 02:44:35] thread 5: 4104 hashes, 4.97 khash/s
[2014-01-07 02:44:35] thread 7: 4104 hashes, 4.98 khash/s
[2014-01-07 02:44:35] thread 4: 4104 hashes, 4.97 khash/s
[2014-01-07 02:45:14] thread 5: 179928 hashes, 4.64 khash/s
[2014-01-07 02:45:14] accepted: 1/1 (100.00%), 39.79 khash/s (yay!!!)
[2014-01-07 02:45:39] thread 3: 302520 hashes, 4.76 khash/s
[2014-01-07 02:45:39] thread 2: 303780 hashes, 4.78 khash/s
[2014-01-07 02:45:39] thread 0: 303576 hashes, 4.77 khash/s
[2014-01-07 02:45:39] thread 1: 302904 hashes, 4.75 khash/s
[2014-01-07 02:45:39] thread 4: 298200 hashes, 4.66 khash/s
[2014-01-07 02:45:39] thread 6: 299652 hashes, 4.66 khash/s
[2014-01-07 02:45:39] thread 7: 298548 hashes, 4.63 khash/s
[2014-01-07 02:46:12] thread 7: 147888 hashes, 4.52 khash/s
[2014-01-07 02:46:12] accepted: 2/2 (100.00%), 37.55 khash/s (yay!!!)

参考サイト:
http://2chpool.com/soft.html#cpuminer
https://bitcointalk.org/index.php?topic=55038.0
http://sourceforge.net/projects/cpuminer/files/

AWSのインスタンス2014/01/07 18:25

AWSには様々な仮想ハードがあります。それの解説ページを載せました。

概要及び費用
http://aws.amazon.com/jp/ec2/

ちょっと詳しく、プロセッサ情報、intel AES-NI/AVX/Turbo
http://aws.amazon.com/jp/ec2/instance-types/

もっと詳しく(ハード抜き書き)
http://aws.amazon.com/jp/ec2/instance-types/instance-details/
Google
WWW このブログ内