2017年11月11日土曜日

マイニングって実際儲かるの?

こんにちはドリ助です。

私は8月からマイニングを始めたのですが、マイニングについて少し先が見えてきたかなと思うので、現在の状態を整理を兼ねて書いてみようかと思います。これから始めてみようかと思う人には参考になれば幸いです。

まずは1日当たりの電気料金ですか、GTX 1070x7 を稼働させるのに 1.05 kw で、私の家では 1kw あたり 21.38円で契約しているため、1.05 x 21.38 x 24 で1日あたり 539 円 の電気代がかかります。

 8月のスタートから11月7日までに稼働日数は87日で電気代は 539円 x 87日で 46893 円になります。

マイニング量は ETH 1.077, ZEC 2.567です。

仮想通貨のままで持っていますが、11月7日の時点で約 103912 円と出ています。
電気代を引いた額は 57019 円です。

すると1日あたりの浮き額は 655円 になります。マイニングマシンを作成するのに、約 40万円かかっているので、このままのマイニング量、仮想通貨価格が維持されるなら 2年かからずに元は取れると思います。

よく不動産の投資で言われるような年利回りで言うと60%くらいです。
正直な話投資話としてはかなりおいしいのかなと思いますが、今後マシンが壊れないか?通貨が急激な値下がりをしないか?今までの採掘量を維持できるのか?などトラブルの心配事はつきません。

仮想通貨自体は今後も続いていくと思うので、急激な値下がりは考えていません。採掘量についても徐々に難易度は上がっていくでしょうが、仮想通貨も徐々に一般的になるにつれ、値上がりしていくかな?と思っているので、心配はしていますが、そこまで大きなものではありません。やはり一番大きな心配事はマシンのトラブルかなと考えています。

ビデオカードの寿命は2~5年といわれていますが、マイニングのように 24 時間ハードに動かしている以上は寿命の低下は免れないでしょう。可能ならビデオカードを購入するときに保証期間を延ばせたりできるといいのかもしれません。またあまりカリカリにチューンして、寿命を縮めるよりは、そこそこ程度で安定稼働を目指したほうが良いのかな?と思います。今の季節はいいですが、夏は温度が上がりやすいため特にですね。

いずれにしろ、マイニングの投資としての魅力は利用するビデオカードの耐久性と店舗ごとの保証によってかなり変わってくるのかな?と思っています。2, 3000 円高かろうが、耐久性に定評のある機種を選ぶべきかなと思います。また、店舗の保証を 2, 3000 円でつけられるなら迷わず入ってよいのかな?と思っています。

これらを合わせて3年程度の耐久性を見込めるならかなり魅力的な案件かなと思います。

以上です。

2017年11月5日日曜日

Genesis Mining vs 自作マイニング環境

こんにちはドリ助です。

先日マイニング環境をレンタルできるジェネシスマイニングという広告をみました。これって実際自分でリグを動かすのと比べてどうなんだろ??と思ったので、簡単に計算してみたいと思います。

Genesis Mining の価格表は以下のとおりです。2年間の ETH(イーサリウム) のマイニングのハッシュレートを以下の金額で購入できるようです。

Genesis Mining の価格表
Small Middle Large
29.99 US$ 869 US$ 2799 US$
1M/s 30M/s 100M/s

1M/s が 30 US$ で 100M/s が 2800 US$ です。1US$ が今大体 114 円なので、1M/s が 3420 円、100M/s が 319,200 円になります。これが2年分の価格です。
これを私の環境と比較してみたいと思います。

私の環境では GTX1070 x7 で 32Mx7/s の 224M/s です。
GTX1070 が今約 45,000円で x7 で 315,000円、また電源やもろもろ込みで 50,000 円程度なので、370,000円程度です。電気代は 1090w/h で 1kw あたり 21.38 円(サニックス電気)なので、1日に 559.3 円になります。すると1年で、204,144.8 円なので、2年で 408.289.6 円になります。

すると。。。。
私の環境を2年間続けると 778,289 円ですね(ネット環境を別途用意する際にはさらに増えるかもしれません)。
ジェネシスマイニングでは 100M/s 319,200 円なので、224M/s を用意するには 715,008 円になります。

こんなんどうせボッタクリの値段だろっ!と思ってはじめた計算だけに結構いい値段でビックリです。。

騒音や、熱対策、場所の問題、またマシンのケアはしたくないけどマイニングはしてみたいという方にはかなりいい選択肢なのかもしれません。
逆に自前環境のメリットはイーサリウム以外にも気軽に変更できたり、マイニング環境を売り払ったりできるところでしょうか?また2年以降もマイニングを継続するなら、環境がそのまま残るため、継続して収益を増やすことが可能かもしれません。

どちらもメリット、デメリットがありますがパソコンをいじるのが好きな方なら自前環境がいいのかなという印象です。

以上ドリ助でした!

2017年10月28日土曜日

[ethOS] proxy の効果

こんにちは、ドリ助です。

以前 ETH + Sia で dual mining をしたときと、普通に ethOS 標準の ethminer を使って ETH を mining したときとで、ハッシュレートに若干開きが出たことがあり、それが気になっていました。

dual mining のハッシュレート写真、eth miner のハッシュレート写真

おそらく原因っぽいものを見つけたので紹介します。

おそらく原因はたぶんこれで、dual mining をしてるときは miner が直接 pool に繋いでいるのに対して、ethminer を使ってるときは自分のリグにサーバーを立てて、そこに繋いでいるのかと思います。最終的には自分のリグのサーバーが pool に繋ぐことになっているのかと思います。
  • dual mining のとき(ethOS 1.2.3 のときは 29.5 くらいだったような??)

miner -> pool
  • ethminer 



miner -> 自分のリグのサーバー -> pool

まぁなんで proxy を経由した方がいいのかはわからないんですけどね。。。
実際にどっちの方が儲かるかは難しいところですね。

2017年10月22日日曜日

[ethOS] 1.2.5 への update したときに必要な変更

こんにちはドリ助です。

私は最近は Zcash をマイニングしており ethOS 1.2.5 に変更してからも、特にトラブルもなく、順調にマイニングできていました。

ethOS 1.2.5 でHashrate あがってるかもしれないし、ETH も試しておこうと思い、ETH に切り替えると。。。。。




アイエエエ!なんかおかしなことに。。。Hashrate が 34 とかいってるのでオーバークロックしすぎてるような(ethOS 1.2.3 でこの設定では 31.65 くらいだった)?
ethOS 1.2.3 では不具合があって以前の設定でよかったけど不具合が直って以前の設定だと読まなくなったとか?ショッギョ・ムッジョ!

ethOS 1.2.3 で動いていた私の設定は以下です。
[local.conf]
globalcore 1000
globalmem  5100
globalpowertune 130
globalfan 85


もう一度よさげな値を探す必要がありそうです。
以前探した経験から ETH には globalcore(コアクロック) は変更してもあまり効果がないので、コメントアウトして放置。また globaltune(電圧) はあげると効果はあるのですが、使用電力が 1 割以上あがるし、カリカリにして寿命縮めたり、消費電力を上げるのはいやなので、130 から変更しません(実際は 150 まではあげれるはずです)。

そこで globalmem のみに照準を絞ります。

いくつか試して、、、ポクポクポクポク、チーン
と以下が安定して動きそうな設定です。一応 12h 動かして元気に動いているようなので、問題ないでしょう。

ethOS 1.2.5
[local.conf]
# globalcore 1000
globalmem  4500
globalpowertune 130
globalfan 85




と、無事設定完了。

ちなみに私は玄人志向の GTX 1070 を利用しています。他メーカさんのものならもっと良い値が設定できるのかもしれません。どこかに GTX 1070 が落ちてないかな~。w

----

追記 (17/10/22)
その後 globalmem を 4600, 4550 を試してみたところ 4600 は不安定で、4550 は安定して稼動していそうです。hashrate も 32.5 程度になり、いい感じです。

ethOS 1.2.5
[local.conf]
# globalcore 1000
globalmem  4550
globalpowertune 130
globalfan 85


追記2 (17/10/22)
globalmem 4550 にしてじっと観察してみたところ安定してそうに見えたのですが、一瞬 hashrate が落ちて、復帰したことがありました。まぁ復帰したならいいかなとも思うのですが、安定稼動が一番なので、globalmem 4500 で安定ですな。


2017年10月17日火曜日

[ethOS] 1.2.3 から 1.2.5 に OS update

こんにちはドリ助です。

ethOS 1.2.4, 1.2.5 の更新履歴を読んでみると、いろいろ細かい不具合が直っていそうなので、もしかしたら、もう少しいい感じにハッシュレートあがるかも?
ということで、ethOS update してみました。

ethOS の knowledge base の update 方法 を読んでみると、とりあえず再起動しろとのこと。

というわけで再起動です。

# r

その後に以下のコマンドを打てとのことなので、打ってみます。

# sudo ethos-update && sleep 5 && r

数分待つと再起動が走り、無事 OS update ができます。

あれ??まったくトラブルがないな。。。

実はあんまり文章読まずに、再起動しないで OS update のコマンドを打ったのですが、そのときには「再起動してから、OS update のコマンドを打ってください」とエラーメッセージがでました。いやぁ~、ありがたいですね。

正直 Linux は初心者にはハードル高いイメージあると思いますが、この ethOS はホントに簡単です。OS は 39 ドルなので、少しでもマイニングマシンの初期投資を抑えたい方は、こちらの OS を使うことをお勧めします。

2017年10月14日土曜日

[ethOS] 1.2.5 release

こんにちはドリ助です。

更新をサボっている間にマイニング専用 OS の ethOS の 1.2.5 もリリースされています。前回の ethOS 1.2.4 から2週間しか経ってないです。早い。もしかして 1.2.4 に大きめの不具合があったり??と邪推しながら確認してみます。

また例によって私の残念な英語読解能力で解読してみました。間違っていたら指摘していただけると嬉しいです。

ethOS 1.2.5 変更履歴 (2017年9月15日リリース)

  • 大きな変更点  
ethOS チームリーダが kotarius から sling00 に変わりました。
# お茶目ですな。
NVIDIA オーバークロックについての不具合修正、ユーザが指定した値が正確に適用されるようになりました。(お使いのオーバークロック値をチェックしてください。)

  • 不具合修正
1.2.4 にて入った、FGLRX エラーを修正。不具合は最後の GPU をオーバークロックすることでシステムに問題を起こすもの。
NVIDIA 9 シリーズが極端な条件のとき正しい core, memory clock を取れない問題を修正。
gpu-info が極端な条件(前回 timeout したとき)のデータ収集を刷新
極端な条件のときの信頼性向上のため NVIDIA オーバークロックを刷新
キーボードがあるとき CTRL+ALT+DELETE による再起動を有効に
マイニングソフトが停止状態にある場合、またはシステムが1時間以上稼働している場合に、ethos-update コマンドが update をを許可しないようにする。
AMDGPU オーバークロックに関連する不具合の修正、per-BIOS RX シリーズコンフィグ定義に対応する vlt オプションをサポート。
dwarfpool xmr, nanopool xmr に対応する poolemail コンフィグの追加
AMDGPU(RX) オーバークロックのよりよいサポートを追加
update 中に ethos-update コマンドが /etc/ssh/sshd_config と /etc/rc.local の上書きを許可しないようにする。
AMDGPU オーバークロックに関連するエラーの防止
NVIDIA オーバークロックに関連するエラーの防止

まぁたいした修正でもないようなので、以降の訳は気が向いたら。。
表面的な変更とクリーンアップ
Added better support for displaying correct hashrates if sgminer-gm-xmr hashrates are high.
Fixed cases where sgminer-gm-xmr would not display correct hashrates.
Fixed average GPU temperature calculation in ethosdistro.com stats panel.
Added more guides, examples, and sources to their respective locations.
Prevented ethosdistro.com stats panel from displaying bogus data if that data did not exist.
Prevented cosmetic errors from occurring on ethosdistro.com stats panel graphs when race conditions occurred.
Optimized ethosdistro.com stats panel graph data collection.
Migrated all historical graph data collection to a faster server.


 原文は以下の通りです。

ethOS 1.2.5 changelog (released September 15th 2017)

Major Changes
Changed ethOS team leader from kotarius to sling00 :)
Fixed NVIDIA overclocking to correctly apply user-defined memory overclocks (CHECK YOUR OVERCLOCK VALUES!)

Bug Fixes
Fixed the FGLRX error that was introduced in 1.2.4, which caused some systems to have issues with overclocking the last GPU.
Fixed edge cases where NVIDIA 9-series GPUs did not collect the correct number of core/memory clocks.
Refactored gpu-info datagather to work in edge cases where it would previously timeout.
Refactored NVIDIA overclocking to enhance reliability on edge cases.
Allowed CTRL+ALT+DELETE to reboot the rig if executed on a local keyboard.
Prevented ethos-update from allowing updates if miners are in a defunct state, or if system has been up for over one hour.
Fixed issues associated with AMDGPU overclocking when integrated GPU is enabled.
Added support for vlt option to apply correctly in per-BIOS RX series config definitions.
Added better support to poolemail config option to work better with certain pools (dwarfpool xmr and nanopool xmr).
Added better support for series-based AMDGPU (RX) overclocking.
Prevented ethos-update from overwriting /etc/ssh/sshd_config and /etc/rc.local during updates.
Prevented certain errors associated with AMDGPU overclocking.
Prevented certain errors associated with NVIDIA overclocking.

Cosmetic Changes and Cleanup
Added better support for displaying correct hashrates if sgminer-gm-xmr hashrates are high.
Fixed cases where sgminer-gm-xmr would not display correct hashrates.
Fixed average GPU temperature calculation in ethosdistro.com stats panel.
Added more guides, examples, and sources to their respective locations.
Prevented ethosdistro.com stats panel from displaying bogus data if that data did not exist.
Prevented cosmetic errors from occurring on ethosdistro.com stats panel graphs when race conditions occurred.
Optimized ethosdistro.com stats panel graph data collection.
Migrated all historical graph data collection to a faster server.

2017年10月9日月曜日

[ethOS] 1.2.4 release

こんにちはドリ助です。

だいぶ日があいてしまいました。マイニング専用 OS の ethOS の 1.2.4 がリリースされていましたので、リリースノートを見てみようかと思います。一応私の残念な英語読解能力で解読してみました。間違っていたら指摘していただけると嬉しいです。

ethOS 1.2.4 変更履歴 (2017年9月3日リリース)

  • 大きな変更点  
DAG 発生によるハッシュレート落ちを修正することで RX シリーズ のハッシュレート改善
RX シリーズに電圧設定機能を追加
ethosdistro.com stats panel に RX シリーズに電圧の項目を追加
# RX ユーザは嬉しいでしょうね〜。

NVIDIA 製品の core, memory のオーバークロックの値の指定に (+), (-) による指定を許可
# GTX ユーザとしては嬉しいです。

teamviewer (使用はオプションです) を追加、実装には変更が必要です。
# teamviewer はツールっぽいけど、使うにはなんか変更必要そうですね。

ethosdistro.com の時間履歴を専用サーバに移行

すべてのマイニングソフトを現時点での最新版に。
# 素晴らしい

GPU のファンの回転を上下させることで GPU を特定するツール find-gpu を追加 (example: find-gpu 2)

ethOS config からリグ毎に wallet を設定できるように (参照 http://ethosdistro.com/pool.txt)

ethOS config から pool のイベント通知のために poolemail 設定をできるように (参照 http://ethosdistro.com/pool.txt)

ethOS config からRX シリーズの電圧設定をできるように。 (参照 http://ethosdistro.com/pool.txt)
ethOS config から claymore dualminer の設定ができるように。 (参照 http://ethosdistro.com/pool.txt)

ccminer を ethOS に追加  (参照 http://ethosdistro.com/pool.txt)
cgminer-skein を ethOS に追加 (参照 http://ethosdistro.com/pool.txt)
ccminer から NVIDIA の Monero 向けの out-of-the-box のサポートを追加 (参照 http://ethosdistro.com/pool.txt)
  • 不具合修正
4.8.x カーネルの RX 電圧読み込み機能を追加
iGPU が NVIDIA にも可能に。P106-style GPUs が意図したとおりに動くように。
ターミナルプロンプトの表示されることからのドライバーナシ起動の防止の不具合を修正
NVIDIA の温度管理機能の改善
ethminer 設定に NVIDIA 向けの初期値を設定した
ewbf-zcach 向けに ethOS config から GPU 選択 sel コマンドを実装した
miner が始まる前に powertune を設定することによる NVIDIA のオーバークロックの不具合を修正
NVIDIA のオーバークロックがより効果的に効くように最適化することによる NVIDIA のオーバークロックの不具合を修正
amdmeminfo が正しく RX550 GPU を表示するように修正
Hynix MJR ディスプレイに正しく表示するように amdmeminfo を更新
ethminer の最新版をサポートするために、ハッシュレート 収集機能を修正
ewbf-zcash で正しい NVIDIA GPU を検索できるよう cuda-devices を ewbf-zcash に追加
# これは以前こちらで記事にした内容ですね。7 GPU 以上も自動で検出してくれるようになっているでしょう。
リブートによるファイルシステムの衝突防止のために、disk full の書き込みの監視
BIOS update server に BIOS の種類を追加
複数のリグが ethosdistro.com stats panel に表示されない従来からの不具合を修正
新しく追加した cgminer と ccminer に必要な依存ライブラリを追加
新しいカーネルビルドのために、カーネルモジュール、パッチを追加
kaveri APU を Black list にしたマイニングとリポートを邪魔するとを防止するために。


まぁたいした修正でもないようなので、以降の訳は気が向いたら。。
表面的な変更とクリーンアップ
Fixed bugs related to ethminer version gathering.
Added new command force-local to disable remote.conf
Prevented integated GPU from interfering with stats collection and display.
Prevented cosmetic errors from appearing if show miner is run soon after ethOS boot.
Prevented show miner from spamming with bogus data when miner is disallowed.
Fixed NVIDIA DPI issue that caused ethOS UI to appear incorrectly on large displays.
Added hardware error notification for NVIDIA-related crashes.
Added BIOSTAR ethOS theme for all BIOSTAR motherboards.
Prevented NVIDIA crashes from sending huge error messages to ethosdistro.com stats panel.
Reduced NVIDIA-related overclocking bug log file spamming.
Optimized NVIDIA-related stats collection to be less resource-intensive.
Audited all IRC support channel directions to point to the correct IRC channel.
Added simple redirects to various ethOS knowledge base sections.
Added "volts" column, added "Driver" column, and moved pool info color coding to "IP" in ethosdistro.com stats panel.
Optimized historical graph collection and serving on ethosdistro.com stats panel.
Optimized "IP list" serving on ethosdistro.com stats panel.
Removed possibility of potential log spamming associated with NVIDIA-related logs and crashing.
Added instructions for booting USB drives with UEFI mode to ethOS knowledge base (some motherboards require this).
Added instructions for imaging ethOS boot drives for OS X to ethOS knowledge base.
Added minimum/maximum watt (powertune) settings as a hover for NVIDIA GPU watts on ethosdistro.com stats panel.
Added dualminer hashes as a hover for "hashes" on ethosdistro.com stats panel.
Added historical graphs for NVIDIA watts to ethosdistro.com stats panel.
Added column for NVIDIA watts to ethosdistro.com stats panel.






 原文は以下の通りです。

ethOS 1.2.4 changelog (released September 3rd 2017)

Major Changes
Increased RX series hashrate by fixing hashrate drops caused by DAG growth.
Added ability to set voltage for RX series GPUs.
Added RX series voltage to ethosdistro.com stats panel.
Allowed NVIDIA-related overclocking for core and mem to be set by offset (+) or (-) values.
Added teamviewer (usage is optional) to ethOS and implemented required changes for it.
Moved ethosdistro.com historical graphs to dedicated server.
Updated all miners to their latest versions as of the date of this release.
Added find-gpu tool to find GPUs by revving its fan up and down (example: find-gpu 2)
Allowed per-rig wallet definition through ethOS config (see http://ethosdistro.com/pool.txt)
Allowed poolemail definition for pool event notifications through ethOS config (see http://ethosdistro.com/pool.txt)
Allowed RX series voltage to be controlled through ethOS config (see http://ethosdistro.com/pool.txt)
Allowed claymore dualminer definition through ethOS config (see http://ethosdistro.com/pool.txt)
Added ccminer to ethOS (see http://ethosdistro.com/pool.txt)
Added cgminer-skein to ethOS (see http://ethosdistro.com/pool.txt)
Added out-of-the-box support for Monero for NVIDIA through ccminer (see http://ethosdistro.com/pool.txt)

Bug Fixes
Added RX voltage reading ability for the 4.8.x kernel series.
Allowed iGPU to be enabled for NVIDIA, allowing P106-style GPUs to work as intended.
Fixed bug that prevented driverless boot from showing a terminal prompt.
Enhanced NVIDIA-related temperature throttling.
Set ethminer flags to known good defaults for NVIDIA.
Implemented sel GPU selection via ethOS config for ewbf-zcash.
Fixed NVIDIA-related overclocking bugs by setting powertune before miner startup.
Fixed NVIDIA-related overclocking bugs by refactoring NVIDIA overclocking to occur faster and more efficiently.
Fixed amdmeminfo to properly show RX 550 GPUs.
Updated amdmeminfo to latest version so that Hynix MJR displays correctly.
Fixed ethminer hashrate collection to support the latest version.
Added cuda-devices to ewbf-zcash so that it can better detect the total amount of connected NVIDIA GPUs.
Completed disk write audit for preventing possible filesystem corruption caused by reboots.
Added more stock and custom motherboard BIOSes to BIOS update server.
Fixed authentication bug that prevented some rigs from appearing in ethosdistro.com stats panel.
Added dependancies for newly added cgminer and ccminer.
Added kernel modules and patches for new kernel build.
Blacklisted kaveri APU to prevent interference with mining and reporting.

Cosmetic Changes and Cleanup
Fixed bugs related to ethminer version gathering.
Added new command force-local to disable remote.conf
Prevented integated GPU from interfering with stats collection and display.
Prevented cosmetic errors from appearing if show miner is run soon after ethOS boot.
Prevented show miner from spamming with bogus data when miner is disallowed.
Fixed NVIDIA DPI issue that caused ethOS UI to appear incorrectly on large displays.
Added hardware error notification for NVIDIA-related crashes.
Added BIOSTAR ethOS theme for all BIOSTAR motherboards.
Prevented NVIDIA crashes from sending huge error messages to ethosdistro.com stats panel.
Reduced NVIDIA-related overclocking bug log file spamming.
Optimized NVIDIA-related stats collection to be less resource-intensive.
Audited all IRC support channel directions to point to the correct IRC channel.
Added simple redirects to various ethOS knowledge base sections.
Added "volts" column, added "Driver" column, and moved pool info color coding to "IP" in ethosdistro.com stats panel.
Optimized historical graph collection and serving on ethosdistro.com stats panel.
Optimized "IP list" serving on ethosdistro.com stats panel.
Removed possibility of potential log spamming associated with NVIDIA-related logs and crashing.
Added instructions for booting USB drives with UEFI mode to ethOS knowledge base (some motherboards require this).
Added instructions for imaging ethOS boot drives for OS X to ethOS knowledge base.
Added minimum/maximum watt (powertune) settings as a hover for NVIDIA GPU watts on ethosdistro.com stats panel.
Added dualminer hashes as a hover for "hashes" on ethosdistro.com stats panel.
Added historical graphs for NVIDIA watts to ethosdistro.com stats panel.
Added column for NVIDIA watts to ethosdistro.com stats panel.