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東京
速度テスト
[[email protected] ~]# 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
[[email protected] ~]# 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
[[email protected] ~]# 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

[[email protected] ~]# 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

[[email protected] ~]# 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]


[[email protected] ~]# 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アムステルダム
速度テスト
[email protected]:~# 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
[email protected]:~# 
[email protected]:~# 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


[email protected]:~# 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
[email protected]:~# 
[email protected]:~# 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
[email protected]:~# 

[email protected]:~# 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]
[email protected]:~# 
[email protected]:~# 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
[email protected]:~# ./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 ロンドン
速度テスト
[[email protected] ~]# 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
[[email protected] ~]# 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
[[email protected] ~]# 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
[[email protected] ~]# 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
[[email protected] ~]# 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]

[[email protected] ~]# 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]



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ドイツ
速度テスト
[[email protected] ~]# 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
[[email protected] ~]# 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
[[email protected] ~]# 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
[[email protected] ~]# 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
[[email protected] ~]# 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]

[[email protected] ~]# 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]

[[email protected] ~]#  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フランス
速度テスト
[[email protected] ~]# 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
[[email protected] ~]# 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
[[email protected] ~]# 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
[[email protected] ~]# 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
[[email protected] ~]# 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]

[[email protected] ~]# 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]

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アトランタ(アメリカ)
速度テスト
[[email protected] ~]# 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
[[email protected] ~]# 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
[[email protected] ~]# 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
[[email protected] ~]# 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
[[email protected] ~]# 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]

[[email protected] ~]# 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]

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/ から適宜ツールをダウンロード

[email protected]:/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


[email protected]:/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プランのベンチ。

[email protected]:~# 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]

[email protected]:~# 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]

[email protected]:~#

[email protected]:~# 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:

[email protected]:~#

[email protected]:~# cat /proc/meminfo
MemTotal:        4038468 kB

[email protected]:~# 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




[email protected]:~/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

PQi Air Pen /proc/集

/procの一覧です。

~ # cat /proc/cpuinfo
system type             : Atheros AR9330 (Hornet)
processor               : 0
cpu model               : MIPS 24Kc V7.4
BogoMIPS                : 232.96
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 16
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0000, 0x0258, 0x0ff8, 0x0c13]
ASEs implemented        : mips16
shadow register sets    : 1
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

~ # ]

~ # cat /proc/meminfo
MemTotal:          29208 kB
MemFree:           19468 kB
Buffers:              60 kB
Cached:             2400 kB
SwapCached:            0 kB
Active:             1912 kB
Inactive:           1564 kB
Active(anon):       1024 kB
Inactive(anon):        0 kB
Active(file):        888 kB
Inactive(file):     1564 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 0 kB
Writeback:             0 kB
AnonPages:          1048 kB
Mapped:             1408 kB
Slab:               4392 kB
SReclaimable:        364 kB
SUnreclaim:         4028 kB
PageTables:          160 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:       14604 kB
Committed_AS:       3236 kB
VmallocTotal:    1048404 kB
VmallocUsed:        1404 kB
VmallocChunk:    1045032 kB

~ # cat /proc/diskstats
   1       0 ram0 0 0 0 0 0 0 0 0 0 0 0
  31       0 mtdblock0 0 0 0 0 0 0 0 0 0 0 0
  31       1 mtdblock1 0 0 0 0 0 0 0 0 0 0 0
  31       2 mtdblock2 0 0 0 0 0 0 0 0 0 0 0
  31       3 mtdblock3 4 1 40 4 2 2 32 60 0 64 64
  31       4 mtdblock4 0 0 0 0 0 0 0 0 0 0 0
  31       5 mtdblock5 9964 43621 107170 37112 0 0 0 0 0 37060 37068
  31       6 mtdblock6 0 0 0 0 0 0 0 0 0 0 0
  31       7 mtdblock7 0 0 0 0 0 0 0 0 0 0 0
  31       8 mtdblock8 0 0 0 0 0 0 0 0 0 0 0
   8       0 sda 1345 6 1414 37860 204 209 18823 44660 0 5192 82520
   8       1 sda1 1343 3 1374 37840 204 209 18823 44660 0 5172 82500
~ # cat /proc/mtd      
dev:    size   erasesize  name
mtd0: 00040000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00010000 00010000 "ART"
mtd3: 00010000 00010000 "NVRAM"
mtd4: 00140000 00010000 "uImage"
mtd5: 00280000 00010000 "rootfs"
mtd6: 00140000 00010000 "uImage2"
mtd7: 00280000 00010000 "rootfs2"
mtd8: 00010000 00010000 "CONF"


~ # cat /proc/modules     
umac 576480 0 - Live 0xc02b6000
ath_dev 207072 1 umac, Live 0xc01c3000 (P)
ath_rate_atheros 20032 1 ath_dev, Live 0xc0174000 (P)
ath_hal 371936 2 umac,ath_dev, Live 0xc010b000 (P)
adf 9904 3 umac,ath_dev,ath_hal, Live 0xc0096000
asf 6816 3 umac,ath_dev,ath_hal, Live 0xc0089000 (P)
athrs_gmac 49616 0 - Live 0xc0072000
usb_storage 38400 1 - Live 0xc003e000
ehci_hcd 32928 0 - Live 0xc001d000

~ # ls /
bin         lib         mnt         sbin        usr
dev         linuxrc     proc        sys         var
etc         lost+found  root        tmp         version

~ # cat version
V0.1.22

~ # ls /lib
ld-uClibc-0.9.30.so   libutil-0.9.30.so     libxt_length.so
ld-uClibc.so.0        libutil.so.0          libxt_limit.so
libc.so.0             libxt_CLASSIFY.so     libxt_mac.so
libcrypt-0.9.30.so    libxt_CONNMARK.so     libxt_mark.so
libcrypt.so.0         libxt_CONNSECMARK.so  libxt_multiport.so
libdl-0.9.30.so       libxt_DSCP.so         libxt_owner.so
libdl.so.0            libxt_MARK.so         libxt_physdev.so
libgcc_s.so           libxt_NFLOG.so        libxt_pkttype.so
libgcc_s.so.1         libxt_NFQUEUE.so      libxt_quota.so
libipt_DNAT.so        libxt_NOTRACK.so      libxt_rateest.so
libipt_MASQUERADE.so  libxt_RATEEST.so      libxt_sctp.so
libm-0.9.30.so        libxt_SECMARK.so      libxt_standard.so
libm.so.0             libxt_TCPMSS.so       libxt_state.so
libnsl-0.9.30.so      libxt_TCPOPTSTRIP.so  libxt_statistic.so
libnsl.so.0           libxt_TOS.so          libxt_string.so
libntfs-3g.so         libxt_TRACE.so        libxt_tcp.so
libntfs-3g.so.52      libxt_comment.so      libxt_tcpmss.so
libntfs-3g.so.52.0.0  libxt_connbytes.so    libxt_time.so
libnvram.so           libxt_connlimit.so    libxt_tos.so
libpthread-0.9.30.so  libxt_connmark.so     libxt_u32.so
libpthread.so.0       libxt_conntrack.so    libxt_udp.so
libresolv-0.9.30.so   libxt_dccp.so         libxtables.so
libresolv.so.0        libxt_dscp.so         libxtables.so.0
librt-0.9.30.so       libxt_esp.so          libxtables.so.0.0.0
librt.so.0            libxt_hashlimit.so    modules
libsutil.so           libxt_helper.so
libuClibc-0.9.30.so   libxt_iprange.so
~ # ls /lib/modules
2.6.31
~ # ls /lib/modules/2.6.31
net  usb
~ # ls /lib/modules/2.6.31/net
adf.ko               ath_hal.ko           led0.ko
asf.ko               ath_rate_atheros.ko  umac.ko
ath_dev.ko           athrs_gmac.ko
~ # ls /lib/modules/2.6.31/usb
ehci-hcd.ko     usb-storage.ko
~ # 

~ # ls /bin
ash           dmesg         kill          mv            su
backup        echo          ln            ntfs-3g       sync
busybox       egrep         login         ping          tar
cat           ethdebug      ls            ps            touch
cfg           ethreg        md            pwd           true
chgrp         factoryreset  mkdir         rm            umount
chmod         false         mknod         rmdir         uname
cp            fgrep         mktemp        sed           vi
date          getopt        mm            sh
dd            grep          more          shttpd
df            iproute       mount         sleep


~ # mount -l
mount: invalid option -- l
/dev/mtdblock5 on / type squashfs (ro,relatime)
/proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
none on /tmp type ramfs (rw,relatime)
/sys on /sys type sysfs (rw,relatime)
udev on /dev type ramfs (rw,relatime)
/dev/pts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/sda1 on /tmp/www/ftp/sda1 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=utf8,errors=remount-ro)

/dev/sda1(mmcblk0でない)がsdカードで、/tmp/www/ftp/sda1がsdカード共有dirらしい

~ # touch a
touch: a: Read-only file system

/sbin # ls
80211stats      init            reg             version
backupPS        insmod          rmmod           vsftpd
brctl           iptables        route           wdog
dnsmasq         iwconfig        sparkling       wlanconfig
dumpregs        iwlist          udevcontrol     wpa_cli
fdisk           iwpriv          udevd           wpa_supplicant
flash_erase     lsmod           udevsettle      wps_pbc
fwUpgrade       modprobe        udevstart       wpscli_ap
getty           mountUSB        udevtrigger     wpscli_sta
hostapd         nvram           udhcpc
hostapd_cli     rc              umountUSB
ifconfig        reboot          vconfig

/sbin # ls /etc
ath              host.conf        rc.d             udhcpd.conf
backup.script    hosts            resolv.conf      udhcpd_br0.conf
chkcfg           inittab          securetty        vsftpd.conf
connect.sh       issue            services         wep_def.conf
connect1.sh      nsswitch.conf    shadow           wpa.conf
dnsmasq.conf     nvram.deft       udev             wpa_def.conf
fstab            nvram.update     udhcpc.script
group            passwd           udhcpc2.script

/sbin # ls /usr/bin
[        dirname  expr     id       passwd   telnet   tty
arping   du       find     killall  strings  test     wc
cut      env      hexdump  md5sum   tail     tftp     xargs
/sbin # ls /usr/sbin
httpd    telnetd  udhcpd   wdog
/sbin # ls /usr/www 
cgi-bin             frame1.html         page.html
cmd.html            images              page2.html
configuration.html  index.html          style.css
empty.html          login.html          styleSheet.css
/sbin # ls /usr/lib
libcrypt-0.9.30.so  libcrypt.so.0
/sbin # 

/sbin # tar
BusyBox v1.01 (2013.01.03-08:27+0000) multi-call binary

Usage: tar -[czxtvO] [-f TARFILE] [-C DIR] [FILE(s)] ...

Create, extract, or list files from a tar file.

Options:
        c               create
        x               extract
        t               list

Archive format selection:
        z               Filter the archive through gzip

File selection:
        f               name of TARFILE or "-" for stdin
        O               extract to stdout
        C               change to directory DIR before operation
        v               verbosely list files processed

/sbin #


/tmp # ls
dnsmasq.pid     mtd_nvram       secbr0          wpa.conf
hostapd         rc.pid          staState        wpa_supplicant
mnt             rc_state        udhcpd.pid      www
/tmp # cat wpa.conf
ctrl_interface=/tmp/wpa_supplicant
update_config=1
ap_scan=1

 network={
       scan_ssid=1
       priority=1

ssid="F660T-hVCv-G"
key_mgmt=WPA-PSK
psk="kXsWEsXu"
}
/tmp # cat staState
Connected
/tmp # cat secbr0  
interface=ath0
bridge=br0
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
dtim_period=2
max_num_sta=255
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wme_enabled=0
ieee8021x=0
eapol_key_index_workaround=0
eap_server=1

/tmp # cat rc_stat
cat: rc_stat: No such file or directory
/tmp # cat rc_state
0

/tmp # 

~ # cat /proc/version
Linux version 2.6.31.AirPen_V0.1.22-g5eca71a ([email protected]) (gcc version 4.3.3 (GCC) ) #319 Thu Jan 3 16:27:02 CST 2013

~ #


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

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