2018年4月26日木曜日

ConoHa for Windows Serverを試してみた。

こんにちは、はにおかさいです。

Conohaで前々からWindowsは追加されないのかなぁと思ってたのですが、ついに追加されましたね。



azureのようながちがちクラウドは私が大嫌いな部類ですが、それと比較してみるとどうでしょう。
この比較は厳密なものではありませんが、順位が逆転するほどの誤差はないと確認しています。
            料金        コア数  RAM 容量
conoha 1,800円/月 2コア   1GB   50GB
がちがちクラウド
GCE  $104.90 2コア 1.8GB 不明
azure ¥12,754 2コア 8GB  16GB
もちろん調べるまでもない価格差ですね。桁が違いますね。

コアの品質は加味していませんが、
いわゆるVPS
さくら 2,160円(初期費用3,240円)2コア 1GB 50GB
ablenet 1,981 (初期1,800円) 2コア 1GB 60GB

2コア1GBだと、conohaが国内では一番安そうな印象です。
それを狙っての価格設定かもしれませんね。

別のプランも比較してみましょう。

conoha 10,500円/月 6コア 8GB 50GB
さくら 11,880円(初期費用15,120円)6Core 8GB 300GB
ablenet 6,458円(初期7,800円)5コア 8GB 150GB

ablenetがどうも安すぎるのは気になりますが、これを比較してもやはりconohaの価格がさくらを下回っています。性能的にどっこいどっこいな両者は価格でさくらにリードしたいのではないでしょうか。


つくってみる
ログインしてから、
1,サーバー追加
2.Windows Server
3.プラン選択 後々変えられる。
4.SQLサーバーがいらなければそのまま
5.必要事項を記入
そして追加。


待ちます。

追加されました!早速、この写真で言えばまんなかのwin-2018なんとかを押してください。


ログインする

Windows純正のリモートデスクトップ接続を使うのがベターです。
 IPアドレスをメモってください、conohaのサーバーのページから。

それをここに打つ。接続。

 その他を押して、別のアカウント。

ユーザー名は  Administrator にしてください
パスワードは先ほど決めたもの。


おk。はい。


すると、デスクトップが表示されます。やったね!


ちなみに、



ディスクは 32.7GB/49.5GB(75.0%)
CPUは Xeon(R) CPU E5-2600 v3 2.60GHz 2.60GHz (2プロセッサ)
RAMは1GB

となっております。まぁ妥当でしょう。CPUのモデル名の真偽判断はしかねます。

まとめ
レイテンシを見るためにこんなものを。


いつしか聞いた話なのですが、親にパソコンを買うことを許してもらえず、VPSをパソコン代わりにしてる人がいるそうです。遅延は比較的ないので、そういう使い方にも。。。?

使ってみて、(D)DoSが怖くなければスペック的にも価格的にも満足できそうです。
昨今はMT4が流行りなので、そういうのを使うユーザーも少なからず流れてきそうですね、やり方記事書こうかな。






2018年2月18日日曜日

PocketMineのプラグインをLinuxのコマンドで作る!

こんにちは。久しぶりのはにおかさいです。
今回は、pmmpのdevtoolsでコマンドでプラグインのpharを作る方法を紹介します。
これを使えばjenkins等のciでもプラグインを生成できます。


#ゴミ掃除
rm -rf artifacts
rm -rf PocketMine-DevTools
rm -rf bin
rm -rf plugin
rm *x86-64_Linux*

#必要なら
git submodule update --init

#わざわざダウンロードする必要はありません。yaml_parse_file()の使えるphpがあればそれで構いません。
wget https://bintray.com/pocketmine/PocketMine/download_file?file_path=PHP_7.0.3_x86-64_Linux.tar.gz
tar zxvf *x86-64_Linux.tar.gz

#exec権限
chmod +x bin/php7/bin/php

#devtoolsの取得
git clone https://github.com/pmmp/PocketMine-DevTools

#保存場所
mkdir artifacts

#ビルド場所
mkdir plugin

#ビルドするファイルのコピー
rsync -a ./ plugin --exclude '*x86-64_Linux*' --exclude 'bin/' --exclude 'artifacts/'  --exclude 'plugin/'  --exclude 'PocketMine-DevTools/' --exclude '.git/'

#pharを作る。
./bin/php7/bin/php -dphar.readonly=0 PocketMine-DevTools/src/DevTools/ConsoleScript.php  --make ./plugin --out ./artifacts/プラグイン名.phar

とすると、artifactsフォルダにpharが生成されています。

いちいちpmmp立ち上げるのはだるいので、こんなかんじにするのがいいかなぁと、、、

2017年12月31日日曜日

BitZenyでのCPUマイニングに通信速度とpingは影響するのか

こんにちは。ping速度によるマイニング影響があるかどうか調べたくて、調べました。

ついでに、cpuminerのバイナリを作りました。

テスト方法
ping yahoo.co.jp  -c 3
ping mining.bunnymining.work -c 3
ping puripuripool.tk -c 3
ping lycheebit.com -c 3
wget -O /dev/null http://speedtest.dallas.linode.com/100MB-dallas.bin
wget -O /dev/null http://speedtest.tokyo.linode.com/100MB-tokyo.bin

そしてcpuminerで2プールを掘削。

 wget http://haniokasai.com/file/binary/cpuminer_zeny_linuxx64.tgz
tar zxvf c*
./cpuminer_zeny_bin/bin/minerd  -a yescrypt -o stratum+tcp:// .......

すべてVultrの1GBプラン。CentOS7で試しました。
ubuntuだと、
apt-get install build-essential libcurl4-openssl-dev libjansson-dev
をしてくださいね。


サーバー国 ping mining.bunnymining.work ping lycheebit.com wget USA wget Tokyo ハッシュレートbunnymining
東京 1.7ms 270ms 15.6 MB/s 66.3 MB/s 0.55khash/s
アムステルダム 268ms 6.2ms 20.1 MB/s 8.19 MB/s 0.55khash/s
ロンドン 229ms 4.348ms 21.3 MB/s 9.16 MB/s 0.45khash/s
ドイツ 250ms 17ms 7.76 MB/s 212 KB/s 0.58khash/s
フランス 273ms 16.8ms 17.6 MB/s 8.13 MB/s 0.60khash/s
アトランタ(アメリカ) 158ms 91ms 52.6 MB/s 12.1 MB/s 0.45khash/s

Vultr東京
速度テスト
[root@vultr ~]# ping yahoo.co.jp  -c 3
PING yahoo.co.jp (183.79.135.206) 56(84) bytes of data.
64 bytes from f1.top.vip.kks.yahoo.co.jp (183.79.135.206): icmp_seq=1 ttl=51 time=17.2 ms
64 bytes from f1.top.vip.kks.yahoo.co.jp (183.79.135.206): icmp_seq=2 ttl=51 time=16.0 ms
64 bytes from f1.top.vip.kks.yahoo.co.jp (183.79.135.206): icmp_seq=3 ttl=51 time=16.3 ms

--- yahoo.co.jp ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 16.022/16.527/17.243/0.540 ms
[root@vultr ~]# 
[root@vultr ~]# ping mining.bunnymining.work -c 3
PING mining.bunnymining.work (150.95.138.143) 56(84) bytes of data.
64 bytes from mining.bunnymining.work (150.95.138.143): icmp_seq=1 ttl=54 time=1.73 ms
64 bytes from mining.bunnymining.work (150.95.138.143): icmp_seq=2 ttl=54 time=1.66 ms
64 bytes from mining.bunnymining.work (150.95.138.143): icmp_seq=3 ttl=54 time=1.57 ms

--- mining.bunnymining.work ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 1.574/1.659/1.737/0.066 ms
[root@vultr ~]# 
[root@vultr ~]# ping puripuripool.tk -c 3
PING puripuripool.tk (150.95.131.87) 56(84) bytes of data.
64 bytes from v150-95-131-87.a07c.g.tyo1.static.cnode.io (150.95.131.87): icmp_seq=1 ttl=54 time=1.41 ms
64 bytes from v150-95-131-87.a07c.g.tyo1.static.cnode.io (150.95.131.87): icmp_seq=2 ttl=54 time=2.51 ms
64 bytes from v150-95-131-87.a07c.g.tyo1.static.cnode.io (150.95.131.87): icmp_seq=3 ttl=54 time=2.07 ms

--- puripuripool.tk ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 1.410/2.000/2.516/0.456 ms

[root@vultr ~]# ping lycheebit.com -c 3
PING lycheebit.com (92.222.48.122) 56(84) bytes of data.
64 bytes from 92.222.48.122 (92.222.48.122): icmp_seq=1 ttl=47 time=276 ms
64 bytes from 92.222.48.122 (92.222.48.122): icmp_seq=2 ttl=47 time=264 ms
64 bytes from 92.222.48.122 (92.222.48.122): icmp_seq=3 ttl=47 time=271 ms

--- lycheebit.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 11288ms
rtt min/avg/max/mdev = 264.165/270.735/276.259/4.992 ms

[root@vultr ~]# wget -O /dev/null http://speedtest.dallas.linode.com/100MB-dallas.bin
--2017-12-31 13:03:19--  http://speedtest.dallas.linode.com/100MB-dallas.bin
Resolving speedtest.dallas.linode.com (speedtest.dallas.linode.com)... 50.116.25.154, 2600:3c00::4b
Connecting to speedtest.dallas.linode.com (speedtest.dallas.linode.com)|50.116.25.154|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: ‘/dev/null’

100%[=========================================>] 104,857,600 18.0MB/s   in 6.4s   

2017-12-31 13:03:26 (15.6 MB/s) - ‘/dev/null’ saved [104857600/104857600]


[root@vultr ~]# wget -O /dev/null http://speedtest.tokyo.linode.com/100MB-tokyo.bin--2017-12-31 13:05:32--  http://speedtest.tokyo.linode.com/100MB-tokyo.bin
Resolving speedtest.tokyo.linode.com (speedtest.tokyo.linode.com)... 106.187.96.148, 2400:8900::4b
Connecting to speedtest.tokyo.linode.com (speedtest.tokyo.linode.com)|106.187.96.148|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: ‘/dev/null’

100%[=========================================>] 104,857,600 66.3MB/s   in 1.5s   

2017-12-31 13:05:34 (66.3 MB/s) - ‘/dev/null’ saved [104857600/104857600]


bunnymining
[2017-12-31 13:06:37] 1 miner threads started, using 'yescrypt' algorithm.
[2017-12-31 13:06:37] Starting Stratum on stratum+tcp://mining.bunnymining.work:19332
[2017-12-31 13:06:37] Stratum requested work restart
[2017-12-31 13:06:39] thread 0: 653 hashes, 0.53 khash/s
[2017-12-31 13:06:39] accepted: 1/1 (100.00%), 0.53 khash/s (yay!!!)
[2017-12-31 13:07:06] thread 0: 14940 hashes, 0.55 khash/s
[2017-12-31 13:07:06] accepted: 2/2 (100.00%), 0.55 khash/s (yay!!!)
[2017-12-31 13:07:14] thread 0: 4514 hashes, 0.56 khash/s
[2017-12-31 13:07:14] accepted: 3/3 (100.00%), 0.56 khash/s (yay!!!)
bitzenypool.work
[2017-12-31 13:07:34] 1 miner threads started, using 'yescrypt' algorithm.
[2017-12-31 13:07:34] Starting Stratum on stratum+tcp://bitzenypool.work:19666
[2017-12-31 13:07:34] Stratum requested work restart
[2017-12-31 13:07:42] thread 0: 4096 hashes, 0.60 khash/s
[2017-12-31 13:07:46] thread 0: 2451 hashes, 0.57 khash/s
[2017-12-31 13:07:46] accepted: 1/1 (100.00%), 0.57 khash/s (yay!!!)
[2017-12-31 13:07:59] thread 0: 7629 hashes, 0.59 khash/s
[2017-12-31 13:07:59] accepted: 2/2 (100.00%), 0.59 khash/s (yay!!!)
[2017-12-31 13:08:10] thread 0: 5983 hashes, 0.56 khash/s
[2017-12-31 13:08:10] accepted: 3/3 (100.00%), 0.56 khash/s (yay!!!)


Vultrアムステルダム
速度テスト
root@vultr:~# ping yahoo.co.jp  -c 3
PING yahoo.co.jp (183.79.135.206) 56(84) bytes of data.
64 bytes from f1.top.vip.kks.yahoo.co.jp (183.79.135.206): icmp_seq=1 ttl=52 time=268 ms
64 bytes from f1.top.vip.kks.yahoo.co.jp (183.79.135.206): icmp_seq=2 ttl=52 time=268 ms
64 bytes from f1.top.vip.kks.yahoo.co.jp (183.79.135.206): icmp_seq=3 ttl=52 time=268 ms

--- yahoo.co.jp ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 268.188/268.208/268.222/0.598 ms
root@vultr:~# 
root@vultr:~# ping mining.bunnymining.work -c 3
PING mining.bunnymining.work (150.95.138.143) 56(84) bytes of data.
64 bytes from mining.bunnymining.work (150.95.138.143): icmp_seq=1 ttl=51 time=257 ms
64 bytes from mining.bunnymining.work (150.95.138.143): icmp_seq=2 ttl=51 time=257 ms
64 bytes from mining.bunnymining.work (150.95.138.143): icmp_seq=3 ttl=51 time=257 ms

--- mining.bunnymining.work ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 257.442/257.473/257.519/0.586 ms


root@vultr:~# ping puripuripool.tk -c 3

PING puripuripool.tk (150.95.131.87) 56(84) bytes of data.
64 bytes from v150-95-131-87.a07c.g.tyo1.static.cnode.io (150.95.131.87): icmp_seq=1 ttl=51 time=266 ms
64 bytes from v150-95-131-87.a07c.g.tyo1.static.cnode.io (150.95.131.87): icmp_seq=2 ttl=51 time=266 ms
64 bytes from v150-95-131-87.a07c.g.tyo1.static.cnode.io (150.95.131.87): icmp_seq=3 ttl=51 time=267 ms

--- puripuripool.tk ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 266.935/266.975/267.036/0.598 ms
root@vultr:~# 
root@vultr:~# ping lycheebit.com -c 3
PING lycheebit.com (92.222.48.122) 56(84) bytes of data.
64 bytes from lycheebit.com (92.222.48.122): icmp_seq=1 ttl=57 time=6.20 ms
64 bytes from lycheebit.com (92.222.48.122): icmp_seq=2 ttl=57 time=6.24 ms
64 bytes from lycheebit.com (92.222.48.122): icmp_seq=3 ttl=57 time=6.25 ms

--- lycheebit.com ping statistics ---

3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 6.205/6.235/6.253/0.021 ms
root@vultr:~# 

root@vultr:~# wget -O /dev/null http://speedtest.dallas.linode.com/100MB-dallas.bin
--2017-12-31 10:59:25--  http://speedtest.dallas.linode.com/100MB-dallas.bin
Resolving speedtest.dallas.linode.com (speedtest.dallas.linode.com)... 50.116.25.154, 2600:3c00::4b
Connecting to speedtest.dallas.linode.com (speedtest.dallas.linode.com)|50.116.25.154|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: ‘/dev/null’
/dev/null                100%[===============================>] 100.00M  21.0MB/s    in 5.0s    
2017-12-31 10:59:31 (20.1 MB/s) - ‘/dev/null’ saved [104857600/104857600]
root@vultr:~# 
root@vultr:~# wget -O /dev/null http://speedtest.tokyo.linode.com/100MB-tokyo.bin

--2017-12-31 10:59:31--  http://speedtest.tokyo.linode.com/100MB-tokyo.bin
Resolving speedtest.tokyo.linode.com (speedtest.tokyo.linode.com)... 106.187.96.148, 2400:8900::4b
Connecting to speedtest.tokyo.linode.com (speedtest.tokyo.linode.com)|106.187.96.148|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: ‘/dev/null’

/dev/null                100%[===============================>] 100.00M  9.59MB/s    in 12s     


2017-12-31 10:59:43 (8.19 MB/s) - ‘/dev/null’ saved [104857600/104857600]

bunnymining
root@vultr:~# ./cpuminer_zeny_bin/bin/minerd  -a yescrypt -o stratum+tcp://mining.bunnymining.work:19332 -u @@@@@@ -p @@@@@
[2017-12-31 11:05:28] 1 miner threads started, using 'yescrypt' algorithm.
[2017-12-31 11:05:28] Starting Stratum on stratum+tcp://mining.bunnymining.work:19332
[2017-12-31 11:05:29] Stratum requested work restart
[2017-12-31 11:05:33] thread 0: 1726 hashes, 0.53 khash/s
[2017-12-31 11:05:34] accepted: 1/1 (100.00%), 0.53 khash/s (yay!!!)
[2017-12-31 11:05:52] thread 0: 10678 hashes, 0.58 khash/s
[2017-12-31 11:05:52] accepted: 2/2 (100.00%), 0.58 khash/s (yay!!!)
[2017-12-31 11:06:05] thread 0: 7903 hashes, 0.58 khash/s
[2017-12-31 11:06:05] accepted: 3/3 (100.00%), 0.58 khash/s (yay!!!)
[2017-12-31 11:06:17] thread 0: 7159 hashes, 0.58 khash/s
[2017-12-31 11:06:18] accepted: 4/4 (100.00%), 0.58 khash/s (yay!!!)
[2017-12-31 11:06:20] Stratum requested work restart
[2017-12-31 11:06:20] thread 0: 1430 hashes, 0.58 khash/s
[2017-12-31 11:06:21] thread 0: 920 hashes, 0.58 khash/s
[2017-12-31 11:06:22] accepted: 5/5 (100.00%), 0.58 khash/s (yay!!!)

bitzenypool.work
./cpuminer_zeny_bin/bin/minerd -a yescrypt -o stratum+tcp://bitzenypool.work:19666 -u @@@@@ -p @@@@
[2017-12-31 11:15:21] 1 miner threads started, using 'yescrypt' algorithm.
[2017-12-31 11:15:21] Starting Stratum on stratum+tcp://bitzenypool.work:19666
[2017-12-31 11:15:22] Stratum requested work restart
[2017-12-31 11:15:29] thread 0: 4096 hashes, 0.58 khash/s
[2017-12-31 11:15:30] Stratum requested work restart
[2017-12-31 11:15:30] thread 0: 676 hashes, 0.58 khash/s
[2017-12-31 11:15:35] Stratum requested work restart
[2017-12-31 11:15:35] thread 0: 2917 hashes, 0.58 khash/s
[2017-12-31 11:15:51] thread 0: 9550 hashes, 0.58 khash/s
[2017-12-31 11:15:52] accepted: 1/1 (100.00%), 0.58 khash/s (yay!!!)
[2017-12-31 11:16:11] thread 0: 11272 hashes, 0.57 khash/s
[2017-12-31 11:16:11] accepted: 2/2 (100.00%), 0.57 khash/s (yay!!!)


Vultr ロンドン
速度テスト
[root@vultr ~]# ping yahoo.co.jp  -c 3
PING yahoo.co.jp (182.22.59.229) 56(84) bytes of data.
64 bytes from f1.top.vip.ssk.yahoo.co.jp (182.22.59.229): icmp_seq=1 ttl=47 time=246 ms
64 bytes from f1.top.vip.ssk.yahoo.co.jp (182.22.59.229): icmp_seq=2 ttl=47 time=246 ms
64 bytes from f1.top.vip.ssk.yahoo.co.jp (182.22.59.229): icmp_seq=3 ttl=47 time=246 ms

--- yahoo.co.jp ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 246.944/246.966/246.997/0.406 ms
[root@vultr ~]# 
[root@vultr ~]# ping mining.bunnymining.work -c 3
PING mining.bunnymining.work (150.95.138.143) 56(84) bytes of data.
64 bytes from mining.bunnymining.work (150.95.138.143): icmp_seq=1 ttl=51 time=229 ms
64 bytes from mining.bunnymining.work (150.95.138.143): icmp_seq=2 ttl=51 time=228 ms
64 bytes from mining.bunnymining.work (150.95.138.143): icmp_seq=3 ttl=51 time=228 ms

--- mining.bunnymining.work ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2064ms
rtt min/avg/max/mdev = 228.943/229.005/229.094/0.396 ms
[root@vultr ~]# 
[root@vultr ~]# ping puripuripool.tk -c 3
PING puripuripool.tk (150.95.131.87) 56(84) bytes of data.
64 bytes from v150-95-131-87.a07c.g.tyo1.static.cnode.io (150.95.131.87): icmp_seq=1 ttl=51 time=246 ms
64 bytes from v150-95-131-87.a07c.g.tyo1.static.cnode.io (150.95.131.87): icmp_seq=2 ttl=51 time=246 ms
64 bytes from v150-95-131-87.a07c.g.tyo1.static.cnode.io (150.95.131.87): icmp_seq=3 ttl=51 time=246 ms

--- puripuripool.tk ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 246.299/246.365/246.424/0.408 ms
[root@vultr ~]# 
[root@vultr ~]# ping lycheebit.com -c 3
PING lycheebit.com (92.222.48.122) 56(84) bytes of data.
64 bytes from lycheebit.com (92.222.48.122): icmp_seq=1 ttl=56 time=4.26 ms
64 bytes from lycheebit.com (92.222.48.122): icmp_seq=2 ttl=56 time=4.41 ms
64 bytes from lycheebit.com (92.222.48.122): icmp_seq=3 ttl=56 time=4.37 ms

--- lycheebit.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 4.261/4.348/4.411/0.099 ms
[root@vultr ~]# 
[root@vultr ~]# wget -O /dev/null http://speedtest.dallas.linode.com/100MB-dallas.bin
--2017-12-31 11:23:35--  http://speedtest.dallas.linode.com/100MB-dallas.bin
Resolving speedtest.dallas.linode.com (speedtest.dallas.linode.com)... 50.116.25.154, 2600:3c00::4b
Connecting to speedtest.dallas.linode.com (speedtest.dallas.linode.com)|50.116.25.154|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: ‘/dev/null’

100%[=======================================================>] 104,857,600 24.4MB/s   in 4.7s   

2017-12-31 11:23:40 (21.3 MB/s) - ‘/dev/null’ saved [104857600/104857600]

[root@vultr ~]# 
[root@vultr ~]# wget -O /dev/null http://speedtest.tokyo.linode.com/100MB-tokyo.bin
--2017-12-31 11:23:42--  http://speedtest.tokyo.linode.com/100MB-tokyo.bin
Resolving speedtest.tokyo.linode.com (speedtest.tokyo.linode.com)... 106.187.96.148, 2400:8900::4b
Connecting to speedtest.tokyo.linode.com (speedtest.tokyo.linode.com)|106.187.96.148|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: ‘/dev/null’

100%[=======================================================>] 104,857,600 10.7MB/s   in 11s    

2017-12-31 11:23:54 (9.16 MB/s) - ‘/dev/null’ saved [104857600/104857600]

[root@vultr ~]# 


bunnymining
[2017-12-31 11:26:40] 1 miner threads started, using 'yescrypt' algorithm.
[2017-12-31 11:26:40] Starting Stratum on stratum+tcp://mining.bunnymining.work:19332
[2017-12-31 11:26:41] Stratum requested work restart
[2017-12-31 11:26:50] thread 0: 4057 hashes, 0.50 khash/s
[2017-12-31 11:26:51] accepted: 1/1 (100.00%), 0.50 khash/s (yay!!!)
[2017-12-31 11:26:55] thread 0: 1923 hashes, 0.45 khash/s
[2017-12-31 11:26:55] accepted: 2/2 (100.00%), 0.45 khash/s (yay!!!)
[2017-12-31 11:26:58] thread 0: 1243 hashes, 0.42 khash/s
[2017-12-31 11:26:58] accepted: 3/3 (100.00%), 0.42 khash/s (yay!!!)
[2017-12-31 11:27:01] thread 0: 2093 hashes, 0.57 khash/s

bitzenypool.work
[2017-12-31 11:28:14] 1 miner threads started, using 'yescrypt' algorithm.
[2017-12-31 11:28:14] Starting Stratum on stratum+tcp://bitzenypool.work:19666
[2017-12-31 11:28:15] Stratum requested work restart
[2017-12-31 11:28:24] thread 0: 4096 hashes, 0.47 khash/s
[2017-12-31 11:28:25] thread 0: 484 hashes, 0.57 khash/s
[2017-12-31 11:28:25] accepted: 1/1 (100.00%), 0.57 khash/s (yay!!!)
[2017-12-31 11:28:26] thread 0: 759 hashes, 0.57 khash/s
[2017-12-31 11:28:26] accepted: 2/2 (100.00%), 0.57 khash/s (yay!!!)

Vultrドイツ
速度テスト
[root@vultr ~]# ping yahoo.co.jp  -c 3
PING yahoo.co.jp (182.22.59.229) 56(84) bytes of data.
64 bytes from f1.top.vip.ssk.yahoo.co.jp (182.22.59.229): icmp_seq=1 ttl=50 time=254 ms
64 bytes from f1.top.vip.ssk.yahoo.co.jp (182.22.59.229): icmp_seq=2 ttl=50 time=254 ms
64 bytes from f1.top.vip.ssk.yahoo.co.jp (182.22.59.229): icmp_seq=3 ttl=50 time=254 ms

--- yahoo.co.jp ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2030ms
rtt min/avg/max/mdev = 254.350/254.516/254.637/0.595 ms
[root@vultr ~]# 
[root@vultr ~]# ping mining.bunnymining.work -c 3
PING mining.bunnymining.work (150.95.138.143) 56(84) bytes of data.
64 bytes from mining.bunnymining.work (150.95.138.143): icmp_seq=1 ttl=50 time=263 ms
64 bytes from mining.bunnymining.work (150.95.138.143): icmp_seq=2 ttl=50 time=243 ms
64 bytes from mining.bunnymining.work (150.95.138.143): icmp_seq=3 ttl=50 time=243 ms

--- mining.bunnymining.work ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 243.542/250.401/263.821/9.498 ms
[root@vultr ~]# 
[root@vultr ~]# ping puripuripool.tk -c 3
PING puripuripool.tk (150.95.131.87) 56(84) bytes of data.
64 bytes from v150-95-131-87.a07c.g.tyo1.static.cnode.io (150.95.131.87): icmp_seq=1 ttl=50 time=241 ms
64 bytes from v150-95-131-87.a07c.g.tyo1.static.cnode.io (150.95.131.87): icmp_seq=2 ttl=50 time=242 ms
64 bytes from v150-95-131-87.a07c.g.tyo1.static.cnode.io (150.95.131.87): icmp_seq=3 ttl=50 time=242 ms

--- puripuripool.tk ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 241.857/241.974/242.044/0.574 ms
[root@vultr ~]# 
[root@vultr ~]# ping lycheebit.com -c 3
PING lycheebit.com (92.222.48.122) 56(84) bytes of data.
64 bytes from lycheebit.com (92.222.48.122): icmp_seq=1 ttl=50 time=16.7 ms
64 bytes from lycheebit.com (92.222.48.122): icmp_seq=2 ttl=50 time=16.9 ms
64 bytes from lycheebit.com (92.222.48.122): icmp_seq=3 ttl=50 time=16.8 ms

--- lycheebit.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 16.781/16.851/16.902/0.117 ms
[root@vultr ~]# 
[root@vultr ~]# wget -O /dev/null http://speedtest.dallas.linode.com/100MB-dallas.bin
--2017-12-31 11:33:19--  http://speedtest.dallas.linode.com/100MB-dallas.bin
Resolving speedtest.dallas.linode.com (speedtest.dallas.linode.com)... 50.116.25.154, 2600:3c00::4b
Connecting to speedtest.dallas.linode.com (speedtest.dallas.linode.com)|50.116.25.154|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: ‘/dev/null’

100%[=======================================================>] 104,857,600 21.9MB/s   in 5.4s   

2017-12-31 11:33:25 (18.4 MB/s) - ‘/dev/null’ saved [104857600/104857600]

[root@vultr ~]# 
[root@vultr ~]# wget -O /dev/null http://speedtest.tokyo.linode.com/100MB-tokyo.bin
--2017-12-31 11:33:27--  http://speedtest.tokyo.linode.com/100MB-tokyo.bin
Resolving speedtest.tokyo.linode.com (speedtest.tokyo.linode.com)... 106.187.96.148, 2400:8900::4b
Connecting to speedtest.tokyo.linode.com (speedtest.tokyo.linode.com)|106.187.96.148|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: ‘/dev/null’

100%[=======================================================>] 104,857,600 9.08MB/s   in 13s    

2017-12-31 11:33:40 (7.76 MB/s) - ‘/dev/null’ saved [104857600/104857600]

[root@vultr ~]#  wget http://haniokasai.com/file/binary/cpuminer_zeny_linuxx64.tgz
--2017-12-31 11:33:42--  http://haniokasai.com/file/binary/cpuminer_zeny_linuxx64.tgz
Resolving haniokasai.com (haniokasai.com)... 104.27.143.118, 104.27.142.118, 2400:cb00:2048:1::681b:8f76, ...
Connecting to haniokasai.com (haniokasai.com)|104.27.143.118|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 151777 (148K) [application/x-gzip]
Saving to: ‘cpuminer_zeny_linuxx64.tgz’

100%[=======================================================>] 151,777      212KB/s   in 0.7s   

2017-12-31 11:33:44 (212 KB/s) - ‘cpuminer_zeny_linuxx64.tgz’ saved [151777/151777]

bunnymining
[2017-12-31 11:33:44] 1 miner threads started, using 'yescrypt' algorithm.
[2017-12-31 11:33:44] Starting Stratum on stratum+tcp://mining.bunnymining.work:19332
[2017-12-31 11:33:45] Stratum requested work restart
[2017-12-31 11:33:51] Stratum requested work restart
[2017-12-31 11:33:51] thread 0: 3184 hashes, 0.54 khash/s
[2017-12-31 11:34:22] Stratum requested work restart
[2017-12-31 11:34:22] thread 0: 15799 hashes, 0.53 khash/s
[2017-12-31 11:34:26] thread 0: 2446 hashes, 0.58 khash/s
[2017-12-31 11:34:26] accepted: 1/1 (100.00%), 0.58 khash/s (yay!!!)
[2017-12-31 11:34:37] Stratum requested work restart
[2017-12-31 11:34:37] thread 0: 5878 hashes, 0.54 khash/s
[2017-12-31 11:34:38] thread 0: 1104 hashes, 0.61 khash/s
[2017-12-31 11:34:39] accepted: 2/2 (100.00%), 0.61 khash/s (yay!!!)
[2017-12-31 11:34:50] thread 0: 6137 hashes, 0.54 khash/s
[2017-12-31 11:34:50] accepted: 3/3 (100.00%), 0.54 khash/s (yay!!!)

bitzenypool.work
[2017-12-31 11:35:28] 1 miner threads started, using 'yescrypt' algorithm.
[2017-12-31 11:35:28] Starting Stratum on stratum+tcp://bitzenypool.work:19666
[2017-12-31 11:35:29] Stratum requested work restart
[2017-12-31 11:35:31] Stratum requested work restart
[2017-12-31 11:35:31] thread 0: 801 hashes, 0.43 khash/s
[2017-12-31 11:36:22] thread 0: 24401 hashes, 0.47 khash/s
[2017-12-31 11:36:23] accepted: 1/1 (100.00%), 0.47 khash/s (yay!!!)
[2017-12-31 11:36:24] thread 0: 797 hashes, 0.59 khash/s
[2017-12-31 11:36:24] accepted: 2/2 (100.00%), 0.59 khash/s (yay!!!)
[2017-12-31 11:36:29] thread 0: 2952 hashes, 0.58 khash/s
[2017-12-31 11:36:29] accepted: 3/3 (100.00%), 0.58 khash/s (yay!!!)

Vultrフランス
速度テスト
[root@vultr ~]# ping yahoo.co.jp  -c 3
PING yahoo.co.jp (183.79.135.206) 56(84) bytes of data.
64 bytes from f1.top.vip.kks.yahoo.co.jp (183.79.135.206): icmp_seq=1 ttl=51 time=266 ms
64 bytes from f1.top.vip.kks.yahoo.co.jp (183.79.135.206): icmp_seq=2 ttl=51 time=258 ms

--- yahoo.co.jp ping statistics ---
3 packets transmitted, 2 received, 33% packet loss, time 2002ms
rtt min/avg/max/mdev = 258.930/262.713/266.496/3.783 ms
[root@vultr ~]# 
[root@vultr ~]# ping mining.bunnymining.work -c 3
PING mining.bunnymining.work (150.95.138.143) 56(84) bytes of data.
64 bytes from mining.bunnymining.work (150.95.138.143): icmp_seq=1 ttl=50 time=272 ms
64 bytes from mining.bunnymining.work (150.95.138.143): icmp_seq=2 ttl=50 time=272 ms
64 bytes from mining.bunnymining.work (150.95.138.143): icmp_seq=3 ttl=50 time=272 ms

--- mining.bunnymining.work ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2563ms
rtt min/avg/max/mdev = 272.866/272.913/272.979/0.605 ms
[root@vultr ~]# 
[root@vultr ~]# ping puripuripool.tk -c 3
PING puripuripool.tk (150.95.131.87) 56(84) bytes of data.
64 bytes from v150-95-131-87.a07c.g.tyo1.static.cnode.io (150.95.131.87): icmp_seq=1 ttl=50 time=272 ms
64 bytes from v150-95-131-87.a07c.g.tyo1.static.cnode.io (150.95.131.87): icmp_seq=2 ttl=50 time=272 ms
64 bytes from v150-95-131-87.a07c.g.tyo1.static.cnode.io (150.95.131.87): icmp_seq=3 ttl=50 time=272 ms

--- puripuripool.tk ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2061ms
rtt min/avg/max/mdev = 272.160/272.191/272.221/0.426 ms
[root@vultr ~]# 
[root@vultr ~]# ping lycheebit.com -c 3
PING lycheebit.com (92.222.48.122) 56(84) bytes of data.
64 bytes from lycheebit.com (92.222.48.122): icmp_seq=1 ttl=53 time=16.7 ms
64 bytes from lycheebit.com (92.222.48.122): icmp_seq=2 ttl=53 time=16.8 ms
64 bytes from lycheebit.com (92.222.48.122): icmp_seq=3 ttl=53 time=16.7 ms

--- lycheebit.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 16.748/16.782/16.811/0.108 ms
[root@vultr ~]# 
[root@vultr ~]# wget -O /dev/null http://speedtest.dallas.linode.com/100MB-dallas.bin
--2017-12-31 12:39:13--  http://speedtest.dallas.linode.com/100MB-dallas.bin
Resolving speedtest.dallas.linode.com (speedtest.dallas.linode.com)... 50.116.25.154, 2600:3c00::4b
Connecting to speedtest.dallas.linode.com (speedtest.dallas.linode.com)|50.116.25.154|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: ‘/dev/null’

100%[=======================================================>] 104,857,600 19.3MB/s   in 5.7s   

2017-12-31 12:39:19 (17.6 MB/s) - ‘/dev/null’ saved [104857600/104857600]

[root@vultr ~]# 
[root@vultr ~]# wget -O /dev/null http://speedtest.tokyo.linode.com/100MB-tokyo.bin
--2017-12-31 12:39:21--  http://speedtest.tokyo.linode.com/100MB-tokyo.bin
Resolving speedtest.tokyo.linode.com (speedtest.tokyo.linode.com)... 106.187.96.148, 2400:8900::4b
Connecting to speedtest.tokyo.linode.com (speedtest.tokyo.linode.com)|106.187.96.148|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: ‘/dev/null’

100%[=======================================================>] 104,857,600 9.37MB/s   in 12s    

2017-12-31 12:39:34 (8.13 MB/s) - ‘/dev/null’ saved [104857600/104857600]

[root@vultr ~]# 
bunnymining
[2017-12-31 12:42:04] 1 miner threads started, using 'yescrypt' algorithm.
[2017-12-31 12:42:04] Starting Stratum on stratum+tcp://mining.bunnymining.work:1933
[2017-12-31 12:42:05] Stratum requested work restart
[2017-12-31 12:42:13] thread 0: 4096 hashes, 0.58 khash/s
[2017-12-31 12:42:16] thread 0: 1678 hashes, 0.60 khash/s
[2017-12-31 12:42:16] accepted: 1/1 (100.00%), 0.60 khash/s (yay!!!)
[2017-12-31 12:42:19] thread 0: 2073 hashes, 0.60 khash/s
[2017-12-31 12:42:20] accepted: 2/2 (100.00%), 0.60 khash/s (yay!!!)
[2017-12-31 12:42:35] thread 0: 9347 hashes, 0.60 khash/s
[2017-12-31 12:42:35] accepted: 3/3 (100.00%), 0.60 khash/s (yay!!!)
[2017-12-31 12:42:40] thread 0: 3153 hashes, 0.60 khash/s
bitzenypool.work
[2017-12-31 12:46:43] 1 miner threads started, using 'yescrypt' algorithm.
[2017-12-31 12:46:43] Starting Stratum on stratum+tcp://bitzenypool.work:19666
[2017-12-31 12:46:44] Stratum requested work restart
[2017-12-31 12:46:46] thread 0: 214 hashes, 0.55 khash/s
[2017-12-31 12:46:46] accepted: 1/1 (100.00%), 0.55 khash/s (yay!!!)
[2017-12-31 12:46:55] thread 0: 5326 hashes, 0.59 khash/s
[2017-12-31 12:46:55] accepted: 2/2 (100.00%), 0.59 khash/s (yay!!!)
[2017-12-31 12:47:00] thread 0: 3150 hashes, 0.59 khash/s
[2017-12-31 12:47:00] accepted: 3/3 (100.00%), 0.59 khash/s (yay!!!)

Vultrアトランタ(アメリカ)
速度テスト
[root@vultr ~]# ping yahoo.co.jp  -c 3
PING yahoo.co.jp (183.79.135.206) 56(84) bytes of data.
64 bytes from f1.top.vip.kks.yahoo.co.jp (183.79.135.206): icmp_seq=1 ttl=51 time=167 ms
64 bytes from f1.top.vip.kks.yahoo.co.jp (183.79.135.206): icmp_seq=2 ttl=51 time=167 ms
64 bytes from f1.top.vip.kks.yahoo.co.jp (183.79.135.206): icmp_seq=3 ttl=51 time=167 ms

--- yahoo.co.jp ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 167.466/167.493/167.517/0.020 ms
[root@vultr ~]# 
[root@vultr ~]# ping mining.bunnymining.work -c 3
PING mining.bunnymining.work (150.95.138.143) 56(84) bytes of data.
64 bytes from mining.bunnymining.work (150.95.138.143): icmp_seq=1 ttl=51 time=158 ms
64 bytes from mining.bunnymining.work (150.95.138.143): icmp_seq=2 ttl=51 time=158 ms
64 bytes from mining.bunnymining.work (150.95.138.143): icmp_seq=3 ttl=51 time=158 ms

--- mining.bunnymining.work ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 158.644/158.703/158.818/0.467 ms
[root@vultr ~]# 
[root@vultr ~]# ping puripuripool.tk -c 3
PING puripuripool.tk (150.95.131.87) 56(84) bytes of data.
64 bytes from v150-95-131-87.a07c.g.tyo1.static.cnode.io (150.95.131.87): icmp_seq=1 ttl=51 time=158 ms
64 bytes from v150-95-131-87.a07c.g.tyo1.static.cnode.io (150.95.131.87): icmp_seq=2 ttl=51 time=158 ms
64 bytes from v150-95-131-87.a07c.g.tyo1.static.cnode.io (150.95.131.87): icmp_seq=3 ttl=51 time=160 ms

--- puripuripool.tk ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 158.782/159.486/160.734/0.997 ms
[root@vultr ~]# 
[root@vultr ~]# ping lycheebit.com -c 3
PING lycheebit.com (92.222.48.122) 56(84) bytes of data.
64 bytes from lycheebit.com (92.222.48.122): icmp_seq=1 ttl=52 time=91.3 ms
64 bytes from lycheebit.com (92.222.48.122): icmp_seq=2 ttl=52 time=91.2 ms
64 bytes from lycheebit.com (92.222.48.122): icmp_seq=3 ttl=52 time=91.2 ms

--- lycheebit.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 91.276/91.291/91.320/0.247 ms
[root@vultr ~]# 
[root@vultr ~]# wget -O /dev/null http://speedtest.dallas.linode.com/100MB-dallas.bin
--2017-12-31 12:50:07--  http://speedtest.dallas.linode.com/100MB-dallas.bin
Resolving speedtest.dallas.linode.com (speedtest.dallas.linode.com)... 50.116.25.154, 2600:3c00::4b
Connecting to speedtest.dallas.linode.com (speedtest.dallas.linode.com)|50.116.25.154|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: ‘/dev/null’

100%[=========================================>] 104,857,600 52.6MB/s   in 1.9s   

2017-12-31 12:50:09 (52.6 MB/s) - ‘/dev/null’ saved [104857600/104857600]

[root@vultr ~]# 
[root@vultr ~]# wget -O /dev/null http://speedtest.tokyo.linode.com/100MB-tokyo.bin--2017-12-31 12:50:24--  http://speedtest.tokyo.linode.com/100MB-tokyo.bin
Resolving speedtest.tokyo.linode.com (speedtest.tokyo.linode.com)... 106.187.96.148, 2400:8900::4b
Connecting to speedtest.tokyo.linode.com (speedtest.tokyo.linode.com)|106.187.96.148|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: ‘/dev/null’

100%[=========================================>] 104,857,600 14.3MB/s   in 8.2s   

2017-12-31 12:50:32 (12.1 MB/s) - ‘/dev/null’ saved [104857600/104857600]

[root@vultr ~]# 
bunnymining
[2017-12-31 12:51:42] 1 miner threads started, using 'yescrypt' algorithm.
[2017-12-31 12:51:42] Starting Stratum on stratum+tcp://mining.bunnymining.work:19332
[2017-12-31 12:51:43] Stratum requested work restart
[2017-12-31 12:51:53] thread 0: 4096 hashes, 0.39 khash/s
[2017-12-31 12:52:08] thread 0: 5652 hashes, 0.38 khash/s
[2017-12-31 12:52:08] accepted: 1/1 (100.00%), 0.38 khash/s (yay!!!)
[2017-12-31 12:52:11] thread 0: 1607 hashes, 0.59 khash/s
[2017-12-31 12:52:11] accepted: 2/2 (100.00%), 0.59 khash/s (yay!!!)
[2017-12-31 12:52:18] thread 0: 2704 hashes, 0.40 khash/s
[2017-12-31 12:52:18] accepted: 3/3 (100.00%), 0.40 khash/s (yay!!!)
bitzenypool.work
[2017-12-31 12:52:39] 1 miner threads started, using 'yescrypt' algorithm.
[2017-12-31 12:52:39] Starting Stratum on stratum+tcp://bitzenypool.work:19666
[2017-12-31 12:52:40] Stratum requested work restart
[2017-12-31 12:52:50] thread 0: 4096 hashes, 0.43 khash/s
[2017-12-31 12:52:50] thread 0: 327 hashes, 0.56 khash/s
[2017-12-31 12:52:51] accepted: 1/1 (100.00%), 0.56 khash/s (yay!!!)
[2017-12-31 12:53:02] thread 0: 4555 hashes, 0.40 khash/s
[2017-12-31 12:53:02] accepted: 2/2 (100.00%), 0.40 khash/s (yay!!!)
[2017-12-31 12:53:21] Stratum requested work restart
[2017-12-31 12:53:21] thread 0: 8700 hashes, 0.44 khash/s
[2017-12-31 12:53:26] Stratum requested work restart
[2017-12-31 12:53:26] thread 0: 2296 hashes, 0.46 khash/s
[2017-12-31 12:53:52] thread 0: 12137 hashes, 0.47 khash/s
[2017-12-31 12:53:52] accepted: 3/3 (100.00%), 0.47 khash/s (yay!!!)


Vultr テンプレ
速度テスト
bunnymining
bitzenypool.work



いかがだったでしょうか。
金が尽きるので短期間しかしていませんが、ハッシュレートに影響を与えませんでした。
つまり、世界のどこにサーバーを置いても、発掘ができるというわけです。

サーバーのコストが大きいですから、ヨーロッパの安価なサーバーを使えばいいわけです。みなさん愚行をしないでください。

お金、、、大好き、、、記事を気に入ったら。
BTC:1JgRLhR8QLagTKLscrYwFhNEbZwf4Zak9F
BitZeny:ZgeNVXgH3CE8u4xH8RUjiiNe8dAezQKDYT

レファレンス
https://webnetforce.net/ubuntu-with-bitzeny/

2017年12月24日日曜日

Android Googleplayでアプリを購入済みかチェックする

こんにちは。
Androidアプリを開発するにあたって、アプリが購入済みか、否かを調べる方法を探していました。
Githubにちょうどよいライブラリがありましたので、紹介します。

このPiracyCheckerと言うライブラリでは、GooglePlay,Amazon App Store等からダウンロードが正常に行われたかどうか、検証してくれます。


ライブラリ追加

app/build.gradle
・・・・
dependencies {
    compile 'com.github.javiersantos:PiracyChecker:1.1'
}
・・・・

上の層のbuild.gradle
・・・・
repositories {
    maven {
        url "https://jitpack.io"
    }
}
・・・・

Google Play Licensing(LvL)とやらで認証してみます
MainActivity




こんな感じで、ストアからアプリを取得したかどうかを確認することができます。


2017年12月3日日曜日

[MCPE] MinetをLinuxで動かしてみる!

たぶん、サーバーはlinux使うことが多いでしょうから、linux(ubuntu)で試してみます。


入れとくソフト
-git
-mono-xbuild
-nuget



1.monoの最新版を入れてください
ubuntu16.04ならば
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF echo "deb http://download.mono-project.com/repo/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/mono-official.list sudo apt-get update
sudo apt-get install mono-devel nuget


2.MiNetをダウンロードします

mkdir /work

cd /work

git clone https://github.com/NiclasOlofsson/MiNET.git minet   #ここで、githubからminetを取り寄せる

cd minet

3.セットアップ

msbuild src/MiNET/MiNET.sln /p:Configuration=Linux #コンパイルします



nuget restore src/MiNET/MiNET.sln #必要なライブラリをダウンロード

4.起動
cd src/MiNET/MiNET.Service/bin/Linux; mono MiNET.Service.exe#これで起動


起動しなかったら、server.confで作成済みのanvilのワールドを選択してください。


Win版との互換性は知りません。

一応動作テストは成功しました。(2017/12/3現在)


参考文献
https://github.com/NiclasOlofsson/MiNET/wiki/Running-MiNET-on-Linux
http://www.mono-project.com/download/#download-lin


nvmeの総書き込み(TBW)を調べる on Linux

nvmeのsmartから寿命を見るのは、Linuxでは多少の苦労を伴うようです。
しかし、2つのコマンドを駆使するとわかるようです。
自分の場合、書き込み量のsmartの結果がエラーで見れません。でも直すのも敷居が高そうなので、別の方法で読んでみます。

http://builds.smartmontools.org/ から適宜ツールをダウンロード

root@rv:/tmp/usr/local/sbin# nvme smart-log /dev/nvme0n1
Smart Log for NVME device:nvme0n1 namespace-id:ffffffff
critical_warning                    : 0
temperature                         : 34 C
available_spare                     : 100%
available_spare_threshold           : 4%
percentage_used                     : 4%
data_units_read                     : 2,591,389
data_units_written                  : 11,044,311
host_read_commands                  : 19,218,485
host_write_commands                 : 112,267,107
controller_busy_time                : 11,194
power_cycles                        : 7
power_on_hours                      : 1,074
unsafe_shutdowns                    : 1
media_errors                        : 0
num_err_log_entries                 : 0
Warning Temperature Time            : 0
Critical Composite Temperature Time : 0
Temperature Sensor 1                : 0 C
Temperature Sensor 2                : 0 C
Temperature Sensor 3                : 0 C
Temperature Sensor 4                : 0 C
Temperature Sensor 5                : 0 C
Temperature Sensor 6                : 0 C
Temperature Sensor 7                : 0 C
Temperature Sensor 8                : 0 C


root@rv:/tmp/usr/local/sbin# ./smartctl -x /dev/nvme0n1
smartctl 6.6 2017-08-08 r4433 [x86_64-linux-4.4.0-93-generic] (daily-20170914)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       *******
Serial Number:                      xxxxxxxx
Firmware Version:                   xxxxxxxx
PCI Vendor ID:                      xxxxx
PCI Vendor Subsystem ID:           xxxxx
IEEE OUI Identifier:                xxxxxx
Controller ID:                      0
Number of Namespaces:               1
Namespace 1 Size/Capacity:          256,060,514,304 [256 GB]
Namespace 1 Formatted LBA Size:     512
Local Time is:                      Fri Sep 15 22:18:20 2017 JST
Firmware Updates (0x14):            2 Slots, no Reset required
Optional Admin Commands (0x0017):   Security Format Frmw_DL *Other*
Optional NVM Commands (0x0016):     Wr_Unc DS_Mngmt Sav/Sel_Feat
Maximum Data Transfer Size:         32 Pages
Warning  Comp. Temp. Threshold:     85 Celsius
Critical Comp. Temp. Threshold:     88 Celsius

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
 0 +     8.25W    5.00W       -    0  0  0  0        0       0
 1 +     8.25W    3.50W       -    1  1  1  1        0       0
 2 +     8.25W    3.00W       -    2  2  2  2        0       0
 3 -   0.0500W       -        -    0  0  0  0    51000   10000
 4 -   0.0055W       -        -    0  0  0  0  1000000  100000

Supported LBA Sizes (NSID 0x1)
Id Fmt  Data  Metadt  Rel_Perf
 0 +     512       0         0
 1 -    4096       0         0

=== START OF SMART DATA SECTION ===
Read NVMe SMART/Health Information failed: NVMe Status 0x4002

公式

得られた情報から、赤いとこだけ抜き出します。

data_units_written × Namespace 1 Formatted LBA Size = 総書き込み量 [kb]

data_units_read × Namespace 1 Formatted LBA Size = 総読み込み量 [kb]

これにより、nvmeの書き込み量と総読み込み量が求められます。


参考

https://forums.lime-technology.com/topic/52072-nvme-gui-integration-partition-format-amp-smart-info/

idcf ベンチマークテスト  1022

idcf cloudのs1プランのベンチ。

root@hanio-1:~# wget -O /dev/null http://speedtest.dallas.linode.com/100MB-dallas.bin
--2016-08-04 20:36:23--  http://speedtest.dallas.linode.com/100MB-dallas.bin
Resolving speedtest.dallas.linode.com (speedtest.dallas.linode.com)... 50.116.25.154, 2600:3c00::4b
Connecting to speedtest.dallas.linode.com (speedtest.dallas.linode.com)|50.116.25.154|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: ‘/dev/null’

100%[======================================>] 104,857,600 7.44MB/s   in 12s

2016-08-04 20:36:36 (8.03 MB/s) - ‘/dev/null’ saved [104857600/104857600]

root@hanio-1:~# wget -O /dev/null http://speedtest.tokyo.linode.com/100MB-tokyo.bin
--2016-08-04 20:36:51--  http://speedtest.tokyo.linode.com/100MB-tokyo.bin
Resolving speedtest.tokyo.linode.com (speedtest.tokyo.linode.com)... 106.187.96.148, 2400:8900::4b
Connecting to speedtest.tokyo.linode.com (speedtest.tokyo.linode.com)|106.187.96.148|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: ‘/dev/null’

100%[======================================>] 104,857,600  105MB/s   in 0.9s

2016-08-04 20:36:52 (105 MB/s) - ‘/dev/null’ saved [104857600/104857600]

root@hanio-1:~#

root@hanio-1:~# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 58
model name      : Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz
stepping        : 0
microcode       : 0x427
cpu MHz         : 2799.999
cache size      : 25600 KB
physical id     : 0
siblings        : 1
core id         : 0
cpu cores       : 1
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts mmx fxsr sse sse2 ss syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts nopl xtopology tsc_reliable nonstop_tsc aperfmperf pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt aes xsave avx f16c rdrand hypervisor lahf_lm ida arat epb pln pts dtherm fsgsbase smep
bugs            :
bogomips        : 5599.99
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

root@hanio-1:~#

root@hanio-1:~# cat /proc/meminfo
MemTotal:        4038468 kB

root@hanio-1:~# dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync
16384+0 records in
16384+0 records out
1073741824 bytes (1.1 GB) copied, 4.53822 s, 237 MB/s




root@hanio-1:~/UnixBench/results# cat hani*
   BYTE UNIX Benchmarks (Version 5.1.3)

   System: hanio-1.cs1336idcfcloud.internal: GNU/Linux
   OS: GNU/Linux -- 4.2.0-36-generic -- #42~14.04.1-Ubuntu SMP Fri May 13 17:27:22 UTC 2016
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz (5600.0 bogomips)
          x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
   20:40:25 up 13 min,  1 user,  load average: 0.14, 0.15, 0.12; runlevel 2

------------------------------------------------------------------------
Benchmark Run: Thu Aug 04 2016 20:40:25 - 21:08:36
1 CPU in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       31163222.6 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     3793.0 MWIPS (10.3 s, 7 samples)
Execl Throughput                               2992.4 lps   (29.8 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks       1032265.2 KBps  (30.1 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          302399.7 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       2276904.9 KBps  (30.0 s, 2 samples)
Pipe Throughput                             2056524.5 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 317445.8 lps   (10.0 s, 7 samples)
Process Creation                              11704.8 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   5615.2 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    626.6 lpm   (60.0 s, 2 samples)
System Call Overhead                        3954171.6 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   31163222.6   2670.4
Double-Precision Whetstone                       55.0       3793.0    689.6
Execl Throughput                                 43.0       2992.4    695.9
File Copy 1024 bufsize 2000 maxblocks          3960.0    1032265.2   2606.7
File Copy 256 bufsize 500 maxblocks            1655.0     302399.7   1827.2
File Copy 4096 bufsize 8000 maxblocks          5800.0    2276904.9   3925.7
Pipe Throughput                               12440.0    2056524.5   1653.2
Pipe-based Context Switching                   4000.0     317445.8    793.6
Process Creation                                126.0      11704.8    929.0
Shell Scripts (1 concurrent)                     42.4       5615.2   1324.3
Shell Scripts (8 concurrent)                      6.0        626.6   1044.4
System Call Overhead                          15000.0    3954171.6   2636.1
                                                                   ========
System Benchmarks Index Score                                        1475.5

ConoHa for Windows Serverを試してみた。

こんにちは、はにおかさいです。 Conohaで前々からWindowsは追加されないのかなぁと思ってたのですが、ついに追加されましたね。 azureのようながちがちクラウドは私が大嫌いな部類ですが、それと比較してみるとどうでしょう。 この比較は厳密な...