VPSのお引越し

ablenet VPSの更新日が来たので止めるか更新するか迷ってましたが、SSDで更新することにしました。今までのVPSは4年位使っていて、性能が相対的に見劣りしてきたのと、プログラムがかなり遅くなってストレスを感じたこともあって、自宅のサーバを強化したほうがメリットがあるという状況での選択になりました。自宅サーバは動的IPアドレスなので、途切れないようにするのがまた大変ですが、天秤にかけた結果なので受け入れるしかありません。データベースを走らせるとメモリの増強が必要になりVPSだと割高になってしまいます。メモリを増強しなければスワップを使うのでシステム全体が遅くなって使えないという状況になります。

自宅サーバを強化しようと思ったのは、前回の記事にも書きましたが、TV BOXに入れたarmbianがなかなか使えるということがありました。TV BOXは省エネのわりにインテルPCにかなわないものの高性能です。

引っ越しが一段落ついたので、新旧の性能を比較してみました。驚いたことに性能が倍も違いました。CPUがかなり良くなっていました。以下、結果を掲載します。

旧VPS)

stress-ng --cpu 1 --cpu-method matrixprod  --metrics-brief --perf -t 60
stress-ng: info:  [18708] dispatching hogs: 1 cpu
stress-ng: info:  [18708] successful run completed in 60.32s (1 min, 0.32 secs)
stress-ng: info:  [18708] stressor       bogo ops real time  usr time  sys time   bogo ops/s   bogo ops/s
stress-ng: info:  [18708]                           (secs)    (secs)    (secs)   (real time) (usr+sys time)
stress-ng: info:  [18708] cpu                6188     60.32     56.74      1.47       102.59       106.30
stress-ng: info:  [18708] cpu:
stress-ng: info:  [18708]             58,545,714,621 CPU Clock                       0.97 B/sec
stress-ng: info:  [18708]             58,559,574,231 Task Clock                      0.97 B/sec
stress-ng: info:  [18708]                        195 Page Faults Total               3.23 /sec 
stress-ng: info:  [18708]                        195 Page Faults Minor               3.23 /sec 
stress-ng: info:  [18708]                          0 Page Faults Major               0.00 /sec 
stress-ng: info:  [18708]                      8,008 Context Switches              132.76 /sec 
stress-ng: info:  [18708]                          0 CPU Migrations                  0.00 /sec 
stress-ng: info:  [18708]                          0 Alignment Faults                0.00 /sec 
stress-ng: info:  [18708]                          0 Emulation Faults                0.00 /sec 
stress-ng: info:  [18708]                        194 Page Faults User                3.22 /sec 
stress-ng: info:  [18708]                          1 Page Faults Kernel              0.02 /sec 
stress-ng: info:  [18708]                         85 System Call Enter               1.41 /sec 
stress-ng: info:  [18708]                         84 System Call Exit                1.39 /sec 
stress-ng: info:  [18708]                          2 TLB Flushes                     0.03 /sec 
stress-ng: info:  [18708]                        519 Kmalloc                         8.60 /sec 
stress-ng: info:  [18708]                      1,340 Kmalloc Node                   22.21 /sec 
stress-ng: info:  [18708]                      2,351 Kfree                          38.98 /sec 
stress-ng: info:  [18708]                     10,316 Kmem Cache Alloc              171.02 /sec 
stress-ng: info:  [18708]                      1,180 Kmem Cache Alloc Node          19.56 /sec 
stress-ng: info:  [18708]                      7,679 Kmem Cache Free               127.30 /sec 
stress-ng: info:  [18708]                        210 MM Page Alloc                   3.48 /sec 
stress-ng: info:  [18708]                        205 MM Page Free                    3.40 /sec 
stress-ng: info:  [18708]                     48,424 RCU Utilization               802.79 /sec 
stress-ng: info:  [18708]                          0 Sched Migrate Task              0.00 /sec 
stress-ng: info:  [18708]                          0 Sched Move NUMA                 0.00 /sec 
stress-ng: info:  [18708]                      8,950 Sched Wakeup                  148.38 /sec 
stress-ng: info:  [18708]                          0 Sched Proc Exec                 0.00 /sec 
stress-ng: info:  [18708]                          0 Sched Proc Exit                 0.00 /sec 
stress-ng: info:  [18708]                          0 Sched Proc Fork                 0.00 /sec 
stress-ng: info:  [18708]                          1 Sched Proc Free                 0.02 /sec 
stress-ng: info:  [18708]                          0 Sched Proc Hang                 0.00 /sec 
stress-ng: info:  [18708]                          0 Sched Proc Wait                 0.00 /sec 
stress-ng: info:  [18708]                      8,008 Sched Switch                  132.76 /sec 
stress-ng: info:  [18708]                         62 Signal Generate                 1.03 /sec 
stress-ng: info:  [18708]                          1 Signal Deliver                  0.02 /sec 
stress-ng: info:  [18708]                     18,477 IRQ Entry                     306.32 /sec 
stress-ng: info:  [18708]                     18,477 IRQ Exit                      306.32 /sec 
stress-ng: info:  [18708]                     22,416 Soft IRQ Entry                371.62 /sec 
stress-ng: info:  [18708]                     22,416 Soft IRQ Exit                 371.62 /sec 
stress-ng: info:  [18708]                          0 Writeback Dirty Inode           0.00 /sec 
stress-ng: info:  [18708]                          0 Writeback Dirty Page            0.00 /sec 
stress-ng: info:  [18708]                          0 Migrate MM Pages                0.00 /sec 
stress-ng: info:  [18708]                      4,874 SKB Consume                    80.80 /sec 
stress-ng: info:  [18708]                      1,353 SKB Kfree                      22.43 /sec 
stress-ng: info:  [18708]                          0 IOMMU IO Page Fault             0.00 /sec 
stress-ng: info:  [18708]                          0 IOMMU Map                       0.00 /sec 
stress-ng: info:  [18708]                          0 IOMMU Unmap                     0.00 /sec
7z b

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,1 CPU Intel(R) Xeon(R) CPU E5-2640 v2 @ 2.00GHz (623),ASM)

Intel(R) Xeon(R) CPU E5-2640 v2 @ 2.00GHz (623)
CPU Freq:  1931  1939  2000  1854  1960  1960  1956  2011  2009

RAM size:     483 MB,  # CPU hardware threads:   1
RAM usage:    435 MB,  # Benchmark threads:      1

                       Compressing  |                  Decompressing
Dict     Speed Usage    R/U Rating  |      Speed Usage    R/U Rating
         KiB/s     %   MIPS   MIPS  |      KiB/s     %   MIPS   MIPS

22:       1556    86   1763   1514  |      21931    98   1909   1872
23:       1501    87   1756   1530  |      21476    98   1892   1859
24:       1444    89   1748   1553  |      21001    98   1879   1844

新VPS)

stress-ng --cpu 1 --cpu-method matrixprod  --metrics-brief --perf -t 60
 stress-ng: info:  [11464] dispatching hogs: 1 cpu
 stress-ng: info:  [11464] successful run completed in 60.52s (1 min, 0.52 secs)
 stress-ng: info:  [11464] stressor       bogo ops real time  usr time  sys time   bogo ops/s   bogo ops/s
 stress-ng: info:  11464    (secs)    (secs)   (real time) (usr+sys time)
 stress-ng: info:  [11464] cpu               11793     60.52     59.57      0.22       194.86       197.24
 stress-ng: info:  [11464] cpu:
 stress-ng: info:  [11464]             59,805,848,847 CPU Clock                       0.99 B/sec
 stress-ng: info:  [11464]             59,807,276,902 Task Clock                      0.99 B/sec
 stress-ng: info:  [11464]                        197 Page Faults Total               3.26 /sec 
 stress-ng: info:  [11464]                        197 Page Faults Minor               3.26 /sec 
 stress-ng: info:  [11464]                          0 Page Faults Major               0.00 /sec 
 stress-ng: info:  [11464]                      2,545 Context Switches               42.05 /sec 
 stress-ng: info:  [11464]                          0 CPU Migrations                  0.00 /sec 
 stress-ng: info:  [11464]                          0 Alignment Faults                0.00 /sec 
 stress-ng: info:  [11464]                          0 Emulation Faults                0.00 /sec 
 stress-ng: info:  [11464]                        196 Page Faults User                3.24 /sec 
 stress-ng: info:  [11464]                          1 Page Faults Kernel              0.02 /sec 
 stress-ng: info:  [11464]                         85 System Call Enter               1.40 /sec 
 stress-ng: info:  [11464]                         84 System Call Exit                1.39 /sec 
 stress-ng: info:  [11464]                          2 TLB Flushes                     0.03 /sec 
 stress-ng: info:  [11464]                        152 Kmalloc                         2.51 /sec 
 stress-ng: info:  [11464]                         39 Kmalloc Node                    0.64 /sec 
 stress-ng: info:  [11464]                        722 Kfree                          11.93 /sec 
 stress-ng: info:  [11464]                      2,311 Kmem Cache Alloc               38.18 /sec 
 stress-ng: info:  [11464]                         36 Kmem Cache Alloc Node           0.59 /sec 
 stress-ng: info:  [11464]                      3,061 Kmem Cache Free                50.58 /sec 
 stress-ng: info:  [11464]                        191 MM Page Alloc                   3.16 /sec 
 stress-ng: info:  [11464]                        150 MM Page Free                    2.48 /sec 
 stress-ng: info:  [11464]                     36,352 RCU Utilization               600.65 /sec 
 stress-ng: info:  [11464]                          0 Sched Migrate Task              0.00 /sec 
 stress-ng: info:  [11464]                          0 Sched Move NUMA                 0.00 /sec 
 stress-ng: info:  [11464]                      3,595 Sched Wakeup                   59.40 /sec 
 stress-ng: info:  [11464]                          0 Sched Proc Exec                 0.00 /sec 
 stress-ng: info:  [11464]                          0 Sched Proc Exit                 0.00 /sec 
 stress-ng: info:  [11464]                          0 Sched Proc Fork                 0.00 /sec 
 stress-ng: info:  [11464]                          2 Sched Proc Free                 0.03 /sec 
 stress-ng: info:  [11464]                          0 Sched Proc Hang                 0.00 /sec 
 stress-ng: info:  [11464]                          0 Sched Proc Wait                 0.00 /sec 
 stress-ng: info:  [11464]                      2,545 Sched Switch                   42.05 /sec 
 stress-ng: info:  [11464]                          2 Signal Generate                 0.03 /sec 
 stress-ng: info:  [11464]                          1 Signal Deliver                  0.02 /sec 
 stress-ng: info:  [11464]                      4,422 IRQ Entry                      73.06 /sec 
 stress-ng: info:  [11464]                      4,422 IRQ Exit                       73.06 /sec 
 stress-ng: info:  [11464]                     17,725 Soft IRQ Entry                292.87 /sec 
 stress-ng: info:  [11464]                     17,725 Soft IRQ Exit                 292.87 /sec 
 stress-ng: info:  [11464]                          0 Writeback Dirty Inode           0.00 /sec 
 stress-ng: info:  [11464]                          0 Writeback Dirty Page            0.00 /sec 
 stress-ng: info:  [11464]                          0 Migrate MM Pages                0.00 /sec 
 stress-ng: info:  [11464]                      1,844 SKB Consume                    30.47 /sec 
 stress-ng: info:  [11464]                        423 SKB Kfree                       6.99 /sec 
 stress-ng: info:  [11464]                          0 IOMMU IO Page Fault             0.00 /sec 
 stress-ng: info:  [11464]                          0 IOMMU Map                       0.00 /sec 
 stress-ng: info:  [11464]                          0 IOMMU Unmap                     0.00 /sec
7z b

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,64 bits,1 CPU Intel(R) Xeon(R) CPU E5-2667 v3 @ 3.20GHz (6FB),ASM)

Intel(R) Xeon(R) CPU E5-2667 v3 @ 3.20GHz (6FB)
CPU Freq:  3192  3264  3312  3356  3315  3348  3329  3302  3320

RAM size:     483 MB,  # CPU hardware threads:   1
RAM usage:    435 MB,  # Benchmark threads:      1

                       Compressing  |                  Decompressing
Dict     Speed Usage    R/U Rating  |      Speed Usage    R/U Rating
         KiB/s     %   MIPS   MIPS  |      KiB/s     %   MIPS   MIPS

22:       3155    98   3120   3070  |      39255   100   3359   3352
23:       2923    97   3075   2979  |      38185   100   3311   3305
24:       2641    96   2953   2841  |      37295    99   3302   3274
25: 


ERROR: Can't allocate required memory!

TV BOX

結構健闘しています。

7z b

7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=C,Utf16=off,HugeFiles=on,64 bits,4 CPUs LE)

LE
CPU Freq:  1194  1180  1190  1193  1194  1193  1194  1191  1192

RAM size:    1806 MB,  # CPU hardware threads:   4
RAM usage:    882 MB,  # Benchmark threads:      4

                       Compressing  |                  Decompressing
Dict     Speed Usage    R/U Rating  |      Speed Usage    R/U Rating
         KiB/s     %   MIPS   MIPS  |      KiB/s     %   MIPS   MIPS

22:       1652   270    596   1608  |      37933   292   1108   3236
23:       1641   269    621   1673  |      37199   291   1105   3219
24:       1670   277    649   1796  |      38145   305   1099   3349
25:       1602   282    648   1829  |      35279   287   1095   3140
----------------------------------  | ------------------------------
Avr:             275    628   1726  |              294   1102   3236
Tot:             284    865   2481