scalewayの30分無料お試しARMサーバーを使ってみた(RPi2より少し早い)

## 参考

* [scalewayの30分無料お試しARMサーバーでRを動かす - Technically, technophobic.](http://notchained.hatenablog.com/entry/2015/04/11/203839)
* [【NEWS】ひとつの物理サーバのパワーを仮想化で切り分けて提供するのでなく、最初から超安価な専用サーバをユーザに提供するScaleway | 株式会社ハイスコア](https://www.highscore.co.jp/archives/3834)
* [公式Twitter](https://twitter.com/scaleway?lang=ja)

## 概要

* [Instant Cloud - Instant BareMetal SSD cloud server.](http://instantcloud.io/server)から何度でも30分間お試しできました。

![scw2.png](https://qiita-image-store.s3.amazonaws.com/0/25728/7eb256b6-f37a-5623-ba68-71058240411c.png)

* SSH可。
* 日本までpingが252msかかる。
* GlobalIP 1つ割り振られます。apache入れればWebページ表示されます。

![scw.png](https://qiita-image-store.s3.amazonaws.com/0/25728/7bad1990-625b-3919-0b2c-22c92215b868.png)

## スペック

### DISK

```bash:DISK
# df -h -T
Filesystem     Type      Size  Used Avail Use% Mounted on
none           devtmpfs 1008M  8.0K 1008M   1% /dev
tmpfs          tmpfs     203M  1.5M  201M   1% /run
/dev/nbd0      ext4       46G  668M   43G   2% /
none           tmpfs     4.0K     0  4.0K   0% /sys/fs/cgroup
none           tmpfs     5.0M     0  5.0M   0% /run/lock
none           tmpfs    1012M     0 1012M   0% /run/shm
none           tmpfs     100M     0  100M   0% /run/user
```

### メモリ

```bash:
$ free -m
             total       used       free     shared    buffers     cached
Mem:          2022        345       1676          1         53        225
-/+ buffers/cache:         67       1955
Swap:            0          0          0
```

### CPU

```bash:CPU
$ cat /proc/cpuinfo 
processor	: 0
model name	: ARMv7 Processor rev 2 (v7l)
BogoMIPS	: 1332.01
Features	: half thumb fastmult vfp edsp thumbee vfpv3 tls idiva idivt vfpd32 lpae 
CPU implementer	: 0x56
CPU architecture: 7
CPU variant	: 0x2
CPU part	: 0x584
CPU revision	: 2

processor	: 1
model name	: ARMv7 Processor rev 2 (v7l)
BogoMIPS	: 1332.01
Features	: half thumb fastmult vfp edsp thumbee vfpv3 tls idiva idivt vfpd32 lpae 
CPU implementer	: 0x56
CPU architecture: 7
CPU variant	: 0x2
CPU part	: 0x584
CPU revision	: 2

processor	: 2
model name	: ARMv7 Processor rev 2 (v7l)
BogoMIPS	: 1332.01
Features	: half thumb fastmult vfp edsp thumbee vfpv3 tls idiva idivt vfpd32 lpae 
CPU implementer	: 0x56
CPU architecture: 7
CPU variant	: 0x2
CPU part	: 0x584
CPU revision	: 2

processor	: 3
model name	: ARMv7 Processor rev 2 (v7l)
BogoMIPS	: 1332.01
Features	: half thumb fastmult vfp edsp thumbee vfpv3 tls idiva idivt vfpd32 lpae 
CPU implementer	: 0x56
CPU architecture: 7
CPU variant	: 0x2
CPU part	: 0x584
CPU revision	: 2

Hardware	: Marvell Armada 370/XP (Device Tree)
Revision	: 0000
Serial		: 0000000000000000
```

## RPi2との比較

* RPi2のCPUクロックを最高(1000MHz)に設定
* 他参考: [UnixBench計測した - Qiita](http://qiita.com/tukiyo3/items/680888014256a1eb785a)

### saclewayのUnixBench

```bash:UnixBench(scaleway)
   BYTE UNIX Benchmarks (Version 5.1.3)

   System: instantcloud: GNU/Linux
   OS: GNU/Linux -- 3.19.1-181 -- #1 SMP Thu Mar 12 15:57:27 UTC 2015
   Machine: armv7l (armv7l)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: ARMv7 Processor rev 2 (v7l) (0.0 bogomips)
          
   CPU 1: ARMv7 Processor rev 2 (v7l) (0.0 bogomips)
          
   CPU 2: ARMv7 Processor rev 2 (v7l) (0.0 bogomips)
          
   CPU 3: ARMv7 Processor rev 2 (v7l) (0.0 bogomips)
          
   00:21:38 up 49 min,  1 user,  load average: 0.22, 0.06, 0.06; runlevel 2

------------------------------------------------------------------------
Benchmark Run: Tue Sep 08 2015 00:21:38 - 00:30:40
4 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables        3771181.1 lps   (10.0 s, 2 samples)
Double-Precision Whetstone                      549.8 MWIPS (9.9 s, 2 samples)
Execl Throughput                                754.0 lps   (29.0 s, 1 samples)
File Copy 1024 bufsize 2000 maxblocks        116387.0 KBps  (30.0 s, 1 samples)
File Copy 256 bufsize 500 maxblocks           28253.0 KBps  (30.0 s, 1 samples)
File Copy 4096 bufsize 8000 maxblocks        261436.0 KBps  (30.0 s, 1 samples)
Pipe Throughput                              262511.8 lps   (10.0 s, 2 samples)
Pipe-based Context Switching                  41483.0 lps   (10.0 s, 2 samples)
Process Creation                               1565.0 lps   (30.0 s, 1 samples)
Shell Scripts (1 concurrent)                   1322.0 lpm   (60.0 s, 1 samples)
Shell Scripts (8 concurrent)                    284.1 lpm   (60.2 s, 1 samples)
System Call Overhead                         743264.6 lps   (10.0 s, 2 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0    3771181.1    323.2
Double-Precision Whetstone                       55.0        549.8    100.0
Execl Throughput                                 43.0        754.0    175.3
File Copy 1024 bufsize 2000 maxblocks          3960.0     116387.0    293.9
File Copy 256 bufsize 500 maxblocks            1655.0      28253.0    170.7
File Copy 4096 bufsize 8000 maxblocks          5800.0     261436.0    450.8
Pipe Throughput                               12440.0     262511.8    211.0
Pipe-based Context Switching                   4000.0      41483.0    103.7
Process Creation                                126.0       1565.0    124.2
Shell Scripts (1 concurrent)                     42.4       1322.0    311.8
Shell Scripts (8 concurrent)                      6.0        284.1    473.5
System Call Overhead                          15000.0     743264.6    495.5
                                                                   ========
System Benchmarks Index Score                                         232.9

------------------------------------------------------------------------
Benchmark Run: Tue Sep 08 2015 00:30:40 - 00:40:24
4 CPUs in system; running 4 parallel copies of tests

Dhrystone 2 using register variables        7653218.7 lps   (10.0 s, 2 samples)
Double-Precision Whetstone                     2194.3 MWIPS (10.0 s, 2 samples)
Execl Throughput                               1297.1 lps   (29.9 s, 1 samples)
File Copy 1024 bufsize 2000 maxblocks        100481.0 KBps  (30.0 s, 1 samples)
File Copy 256 bufsize 500 maxblocks           23312.0 KBps  (30.0 s, 1 samples)
File Copy 4096 bufsize 8000 maxblocks        262370.0 KBps  (30.0 s, 1 samples)
Pipe Throughput                              437393.0 lps   (10.0 s, 2 samples)
Pipe-based Context Switching                  83262.5 lps   (10.0 s, 2 samples)
Process Creation                               2406.1 lps   (30.0 s, 1 samples)
Shell Scripts (1 concurrent)                   2172.5 lpm   (60.0 s, 1 samples)
Shell Scripts (8 concurrent)                    282.0 lpm   (60.6 s, 1 samples)
System Call Overhead                        1354400.0 lps   (10.0 s, 2 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0    7653218.7    655.8
Double-Precision Whetstone                       55.0       2194.3    399.0
Execl Throughput                                 43.0       1297.1    301.7
File Copy 1024 bufsize 2000 maxblocks          3960.0     100481.0    253.7
File Copy 256 bufsize 500 maxblocks            1655.0      23312.0    140.9
File Copy 4096 bufsize 8000 maxblocks          5800.0     262370.0    452.4
Pipe Throughput                               12440.0     437393.0    351.6
Pipe-based Context Switching                   4000.0      83262.5    208.2
Process Creation                                126.0       2406.1    191.0
Shell Scripts (1 concurrent)                     42.4       2172.5    512.4
Shell Scripts (8 concurrent)                      6.0        282.0    470.0
System Call Overhead                          15000.0    1354400.0    902.9
                                                                   ========
System Benchmarks Index Score                                         354.0
```


### RaspberryPi2のUnixBench

```bash:UnixBench(RaspberryPi2)
   BYTE UNIX Benchmarks (Version 5.1.3)

   System: rpi2: GNU/Linux
   OS: GNU/Linux -- 3.18.11-v7+ -- #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015
   Machine: armv7l (unknown)
   Language: en_US.utf8 (charmap="ANSI_X3.4-1968", collate="ANSI_X3.4-1968")
   CPU 0: ARMv7 Processor rev 5 (v7l) (0.0 bogomips)
          
   CPU 1: ARMv7 Processor rev 5 (v7l) (0.0 bogomips)
          
   CPU 2: ARMv7 Processor rev 5 (v7l) (0.0 bogomips)
          
   CPU 3: ARMv7 Processor rev 5 (v7l) (0.0 bogomips)
          
   22:18:24 up 6 days, 13:41,  1 user,  load average: 0.47, 0.15, 0.09; runlevel 2

------------------------------------------------------------------------
Benchmark Run: 月  9月 07 2015 22:18:24 - 22:47:02
4 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables        1990720.6 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                      331.3 MWIPS (10.0 s, 7 samples)
Execl Throughput                                360.8 lps   (29.6 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks         48808.6 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           13594.0 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        135335.4 KBps  (30.0 s, 2 samples)
Pipe Throughput                              111945.8 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  22432.2 lps   (10.0 s, 7 samples)
Process Creation                                913.7 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                    867.4 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    240.2 lpm   (60.2 s, 2 samples)
System Call Overhead                         269369.9 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0    1990720.6    170.6
Double-Precision Whetstone                       55.0        331.3     60.2
Execl Throughput                                 43.0        360.8     83.9
File Copy 1024 bufsize 2000 maxblocks          3960.0      48808.6    123.3
File Copy 256 bufsize 500 maxblocks            1655.0      13594.0     82.1
File Copy 4096 bufsize 8000 maxblocks          5800.0     135335.4    233.3
Pipe Throughput                               12440.0     111945.8     90.0
Pipe-based Context Switching                   4000.0      22432.2     56.1
Process Creation                                126.0        913.7     72.5
Shell Scripts (1 concurrent)                     42.4        867.4    204.6
Shell Scripts (8 concurrent)                      6.0        240.2    400.4
System Call Overhead                          15000.0     269369.9    179.6
                                                                   ========
System Benchmarks Index Score                                         122.1

------------------------------------------------------------------------
Benchmark Run: 月  9月 07 2015 22:47:02 - 23:15:45
4 CPUs in system; running 4 parallel copies of tests

Dhrystone 2 using register variables        7950660.0 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     1324.7 MWIPS (10.0 s, 7 samples)
Execl Throughput                                982.9 lps   (29.5 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks         80331.6 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           22233.5 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        228864.1 KBps  (30.0 s, 2 samples)
Pipe Throughput                              442335.3 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  86314.1 lps   (10.0 s, 7 samples)
Process Creation                               2104.3 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   1927.7 lpm   (60.1 s, 2 samples)
Shell Scripts (8 concurrent)                    253.9 lpm   (60.6 s, 2 samples)
System Call Overhead                        1038609.8 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0    7950660.0    681.3
Double-Precision Whetstone                       55.0       1324.7    240.9
Execl Throughput                                 43.0        982.9    228.6
File Copy 1024 bufsize 2000 maxblocks          3960.0      80331.6    202.9
File Copy 256 bufsize 500 maxblocks            1655.0      22233.5    134.3
File Copy 4096 bufsize 8000 maxblocks          5800.0     228864.1    394.6
Pipe Throughput                               12440.0     442335.3    355.6
Pipe-based Context Switching                   4000.0      86314.1    215.8
Process Creation                                126.0       2104.3    167.0
Shell Scripts (1 concurrent)                     42.4       1927.7    454.6
Shell Scripts (8 concurrent)                      6.0        253.9    423.2
System Call Overhead                          15000.0    1038609.8    692.4
                                                                   ========
System Benchmarks Index Score                                         306.5
```

### RaspberryPi Model B+ のUnixBench

```bash:
   BYTE UNIX Benchmarks (Version 5.1.3)

   System: raspberrypi: GNU/Linux
   OS: GNU/Linux -- 3.6.11+ -- #538 PREEMPT Fri Aug 30 20:42:08 BST 2013
   Machine: armv6l (unknown)
   Language: en_US.utf8 (charmap="ANSI_X3.4-1968", collate="ANSI_X3.4-1968")
   06:59:26 up 81 days, 20:20,  1 user,  load average: 0.78, 0.60, 0.28; runlevel 2

------------------------------------------------------------------------
Benchmark Run: 水  6月 25 2014 06:59:26 - 07:28:45
0 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables        1678481.9 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                      269.2 MWIPS (10.0 s, 7 samples)
Execl Throughput                                258.3 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks         44789.8 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           14636.4 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        101968.5 KBps  (30.0 s, 2 samples)
Pipe Throughput                              182395.4 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  22734.4 lps   (10.0 s, 7 samples)
Process Creation                                830.5 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                    461.2 lpm   (60.1 s, 2 samples)
Shell Scripts (8 concurrent)                     58.4 lpm   (60.6 s, 2 samples)
System Call Overhead                         388688.3 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0    1678481.9    143.8
Double-Precision Whetstone                       55.0        269.2     48.9
Execl Throughput                                 43.0        258.3     60.1
File Copy 1024 bufsize 2000 maxblocks          3960.0      44789.8    113.1
File Copy 256 bufsize 500 maxblocks            1655.0      14636.4     88.4
File Copy 4096 bufsize 8000 maxblocks          5800.0     101968.5    175.8
Pipe Throughput                               12440.0     182395.4    146.6
Pipe-based Context Switching                   4000.0      22734.4     56.8
Process Creation                                126.0        830.5     65.9
Shell Scripts (1 concurrent)                     42.4        461.2    108.8
Shell Scripts (8 concurrent)                      6.0         58.4     97.3
System Call Overhead                          15000.0     388688.3    259.1
                                                                   ========
System Benchmarks Index Score                                         100.9
```