[hetzner]2.49€ 20T流量vps测试

hetzner不用过多介绍了吧,世界一流大厂,大厂中的大厂,以便宜的拍卖机(独立服务器)和超级稳的服务闻名。

他家vps都是20T流量,只计入站不计出战,可以按小时支付(也就是说流量跑完可以删机重建),不过博主不推荐这么玩,容易被制裁。这家最狠的就是你可以一直跑满G口直到用光流量,完全不会限制。不过如果你超了20T流量账号的小鸡就会被一直限速百兆,只有一次解除限速的机会,所以还是多注意注意流量的状况,别不小心超了。

废话少说,直接开始跑分,博主买的是他家最便宜的2.49€的vps,是intel cpu的。

cpu性能属于intel正常水平,这个硬盘io可太猛了,而且网络竟然还是10G口的。

root@ubuntu-2gb-fsn1-1:~# curl -s https://raw.githubusercontent.com/masonr/yet-another-bench-script/master/yabs.sh | bash
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
#              Yet-Another-Bench-Script              #
#                     v2020-12-29                    #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #

Mon 12 Apr 2021 01:46:53 PM CEST

Basic System Information:
---------------------------------
Processor  : Intel Xeon Processor (Skylake, IBRS)
CPU cores  : 1 @ 2294.608 MHz
AES-NI     : ✔ Enabled
VM-x/AMD-V : ❌ Disabled
RAM        : 1.9 GiB
Swap       : 0.0 KiB
Disk       : 18.7 GiB

fio Disk Speed Tests (Mixed R/W 50/50):
---------------------------------
Block Size | 4k            (IOPS) | 64k           (IOPS)
  ------   | ---            ----  | ----           ---- 
Read       | 121.29 MB/s  (30.3k) | 1.21 GB/s    (18.9k)
Write      | 121.61 MB/s  (30.4k) | 1.22 GB/s    (19.0k)
Total      | 242.90 MB/s  (60.7k) | 2.43 GB/s    (38.0k)
           |                      |                     
Block Size | 512k          (IOPS) | 1m            (IOPS)
  ------   | ---            ----  | ----           ---- 
Read       | 2.37 GB/s     (4.6k) | 2.45 GB/s     (2.3k)
Write      | 2.49 GB/s     (4.8k) | 2.61 GB/s     (2.5k)
Total      | 4.87 GB/s     (9.5k) | 5.06 GB/s     (4.9k)

iperf3 Network Speed Tests (IPv4):
---------------------------------
Provider        | Location (Link)           | Send Speed      | Recv Speed     
                |                           |                 |                
Clouvider       | London, UK (10G)          | 2.93 Gbits/sec  | 5.13 Gbits/sec 
Online.net      | Paris, FR (10G)           | 6.80 Gbits/sec  | 5.16 Gbits/sec 
WorldStream     | The Netherlands (10G)     | busy            | busy           
Biznet          | Jakarta, Indonesia (1G)   | 887 Mbits/sec   | 92.0 Mbits/sec 
Clouvider       | NYC, NY, US (10G)         | 1.45 Gbits/sec  | 2.01 Gbits/sec 
Velocity Online | Tallahassee, FL, US (10G) | 1.80 Gbits/sec  | 1.62 Gbits/sec 
Clouvider       | Los Angeles, CA, US (10G) | 1.14 Gbits/sec  | 1.09 Gbits/sec 
Iveloz Telecom  | Sao Paulo, BR (2G)        | busy            | busy           

iperf3 Network Speed Tests (IPv6):
---------------------------------
Provider        | Location (Link)           | Send Speed      | Recv Speed     
                |                           |                 |                
Clouvider       | London, UK (10G)          | 5.26 Gbits/sec  | 5.67 Gbits/sec 
Online.net      | Paris, FR (10G)           | busy            | 4.65 Gbits/sec 
WorldStream     | The Netherlands (10G)     | busy            | busy           
Clouvider       | NYC, NY, US (10G)         | 1.86 Gbits/sec  | 1.83 Gbits/sec 
Clouvider       | Los Angeles, CA, US (10G) | 1.13 Gbits/sec  | 1.06 Gbits/sec 

Geekbench 5 Benchmark Test:
---------------------------------
Test            | Value                         
                |                               
Single Core     | 664                           
Multi Core      | 662                           
Full Test       | https://browser.geekbench.com/v5/cpu/7385063

还不错,不过hz到国内不像netcup那样有直连,估计实际使用体验不会那么好。

 Superbench.sh -- https://www.oldking.net/350.html
 Mode  : [0;32mStandard[0m    Version : [0;32m1.1.7
 Usage : wget -qO- sb.oldking.net | bash
----------------------------------------------------------------------
 CPU Model            : Intel Xeon Processor (Skylake, IBRS)
 CPU Cores            : 1 Cores 2294.608 MHz x86_64
 CPU Cache            : 16384 KB 
 OS                   : Debian GNU/Linux 10 (64 Bit) KVM
 Kernel               : 4.19.0-14-amd64
 Total Space          : 1.6 GB / 19.1 GB 
 Total RAM            : 55 MB / 1947 MB (449 MB Buff)
 Total SWAP           : 0 MB / 0 MB
 Uptime               : 0 days 0 hour 23 min
 Load Average         : 0.31, 0.23, 0.17
----------------------------------------------------------------------
 CPU Model             : Intel Xeon Processor (Skylake, IBRS)
 CPU Cores             : 1
 CPU Frequency         : 2294.608 MHz
 CPU Cache             : 16384 KB
 Total Disk            : 19.1 GB (1.6 GB Used)
 Total Mem             : 1947 MB (54 MB Used)
 Total Swap            : 0 MB (0 MB Used)
 System uptime         : 0 days, 0 hour 24 min
 Load average          : 0.28, 0.23, 0.18
 OS                    : Debian GNU/Linux 10
 Arch                  : x86_64 (64 Bit)
 Kernel                : 4.19.0-14-amd64
 TCP CC                : cubic
 Virtualization        : KVM
 Organization          : AS24940 Hetzner Online GmbH
 Location              : Karlsruhe / DE
 Region                : Baden-Württemberg
----------------------------------------------------------------------
 I/O Speed(1st run)    : 695 MB/s
 I/O Speed(2nd run)    : 1.0 GB/s
 I/O Speed(3rd run)    : 806 MB/s
 Average I/O speed     : 841.7 MB/s
----------------------------------------------------------------------
 Node Name        Upload Speed      Download Speed      Latency     
 Speedtest.net    235.31 Mbps       5041.08 Mbps        23.66 ms    
 Shanghai   CT    139.01 Mbps       3197.29 Mbps        211.86 ms   
 Shanghai   CU    1.09 Mbps         1497.48 Mbps        202.30 ms   
 Guangzhou  CT    12.64 Mbps        442.25 Mbps         210.90 ms   
 Shenzhen   CU    525.98 Mbps       1796.63 Mbps        178.78 ms   
 Hongkong   CN    49.60 Mbps        1463.52 Mbps        199.03 ms   
 Singapore  SG    365.11 Mbps       3162.14 Mbps        242.12 ms   
 Tokyo      JP    115.02 Mbps       32.25 Mbps          264.22 ms   
----------------------------------------------------------------------

[Hosthatch]芝加哥VPS测试

上一年黑五上车了他家1c1g10g的芝加哥VPS,他家VPS的特色就是可以组内网,互联不计算流量。另外他家芝加哥的VPS都带40G的ddos防御。

Preparing to unpack .../screen_4.6.2-3+deb10u1_amd64.deb ...
Velocity Online | Tallahassee, FL, US (10G) | 3.40 Gbits/sec  | 951 Mbits/sec
Clouvider       | Los Angeles, CA, US (10G) | 3.41 Gbits/sec  | 952 Mbits/sec
Iveloz Telecom  | Sao Paulo, BR (2G)        | 807 Mbits/sec   | 465 Mbits/sec

iperf3 Network Speed Tests (IPv6):
---------------------------------
Provider        | Location (Link)           | Send Speed      | Recv Speed
                |                           |                 |
Clouvider       | London, UK (10G)          | 1.91 Gbits/sec  | 1.22 Gbits/sec
Online.net      | Paris, FR (10G)           | 1.96 Gbits/sec  | 1.70 Gbits/sec
WorldStream     | The Netherlands (10G)     | 1.66 Gbits/sec  | 871 Mbits/sec
Clouvider       | NYC, NY, US (10G)         | 3.47 Gbits/sec  | 3.68 Gbits/sec
Clouvider       | Los Angeles, CA, US (10G) | 3.42 Gbits/sec  | 2.24 Gbits/sec

Geekbench 5 Benchmark Test:
---------------------------------
Test            | Value                         
                |                               
Single Core     | 602                           
Multi Core      | 584                           
Full Test       | https://browser.geekbench.com/v5/cpu/7342681

root@dragonfsk:~# wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash
----------------------------------------------------------------------
 Superbench.sh -- https://www.oldking.net/350.html
 Mode  : Standard    Version : 1.1.7
 Usage : wget -qO- sb.oldking.net | bash
----------------------------------------------------------------------
 CPU Model            : Intel(R) Xeon(R) CPU E5-2690 v2 @ 3.00GHz
 CPU Cores            : 1 Cores 2999.998 MHz x86_64
 CPU Cache            : 16384 KB 
 OS                   : Debian GNU/Linux 10 (64 Bit) KVM
 Kernel               : 4.19.0-6-amd64
 Total Space          : 1.7 GB / 9.7 GB 
 Total RAM            : 100 MB / 987 MB (70 MB Buff)
 Total SWAP           : 51 MB / 127 MB
 Uptime               : 28 days 7 hour 41 min
 Load Average         : 0.16, 0.45, 0.35
 TCP CC               : bbr
 ASN & ISP            : AS63473, HostHatch
 Organization         : HostHatch LLC
 Location             : Chicago, United States / US
 Region               : Illinois
----------------------------------------------------------------------
 I/O Speed( 1.0GB )   : 628 MB/s
 I/O Speed( 1.0GB )   : 1.0 GB/s
 I/O Speed( 1.0GB )   : 983 MB/s
 Average I/O Speed    : 878.3 MB/s
----------------------------------------------------------------------
 Node Name        Upload Speed      Download Speed      Latency     
 Speedtest.net    3307.46 Mbit/s    969.34 Mbit/s       3.15 ms     
 Fast.com         0.00 Mbit/s       171.7 Mbit/s        -           
 Nanjing 5G   CT  348.23 Mbit/s     816.77 Mbit/s       253.61 ms   
 Hefei 5G     CT  356.61 Mbit/s     653.23 Mbit/s       230.27 ms   
 Guangzhou 5G CT  1.17 Mbit/s       74.83 Mbit/s        238.42 ms   
 Shanghai 5G  CU  278.34 Mbit/s     669.20 Mbit/s       280.52 ms   
----------------------------------------------------------------------
 Finished in  : 3 min 2 sec
 Timestamp    : 2021-04-09 21:19:21 GMT+8
 Results      : ./superbench.log
----------------------------------------------------------------------
 Share result:
 · https://www.speedtest.net/result/c/c19350d8-b5f9-4126-abc7-5825bac1ce80
 · https://paste.ubuntu.com/p/Rx8T2Zvtnw/
----------------------------------------------------------------------

[Buyvm]拉斯维加斯VPS测试

buyvm是老商家了,性价比可以,特色就是无限流量+可以加储存块 每256G 1.25美元,用支付宝支付是加元结算的,性价比不错。

博主有一款他家最便宜的月付2刀的VPS(支付宝支付是2加元,大概每月10块左右)

以下是GeekBench5.sh、bench.sh测评,io性能还可以。国内速度看着还不错的,不知道脚本测试的准不准。

root@localhost:~# curl -s https://raw.githubusercontent.com/masonr/yet-another-bench-script/master/yabs.sh | bash

# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
#              Yet-Another-Bench-Script              #
#                     v2020-12-29                    #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #

Fri 09 Apr 2021 08:32:16 PM CST

Basic System Information:
---------------------------------
Processor  : AMD Ryzen 9 3900X 12-Core Processor
CPU cores  : 1 @ 3792.870 MHz
AES-NI     : ✔ Enabled
VM-x/AMD-V : ✔ Enabled
RAM        : 483.2 MiB
Swap       : 512.0 MiB
Disk       : 9.3 GiB

Generating fio test file...
fio Disk Speed Tests (Mixed R/W 50/50):
---------------------------------
Block Size | 4k            (IOPS) | 64k           (IOPS)
  ------   | ---            ----  | ----           ---- 
Read       | 192.12 MB/s  (48.0k) | 1.92 GB/s    (30.0k)
Write      | 192.63 MB/s  (48.1k) | 1.93 GB/s    (30.2k)
Total      | 384.76 MB/s  (96.1k) | 3.86 GB/s    (60.3k)
           |                      |                     
Block Size | 512k          (IOPS) | 1m            (IOPS)
  ------   | ---            ----  | ----           ---- 
Read       | 2.00 GB/s     (3.9k) | 2.39 GB/s     (2.3k)
Write      | 2.11 GB/s     (4.1k) | 2.55 GB/s     (2.4k)
Total      | 4.12 GB/s     (8.0k) | 4.95 GB/s     (4.8k)

iperf3 Network Speed Tests (IPv4):
---------------------------------
Provider        | Location (Link)           | Send Speed      | Recv Speed     
                |                           |                 |                
Clouvider       | London, UK (10G)          | 1.01 Gbits/sec  | 237 Mbits/sec  
Online.net      | Paris, FR (10G)           | 876 Mbits/sec   | 202 Mbits/sec  
WorldStream     | The Netherlands (10G)     | busy            | busy           
Biznet          | Jakarta, Indonesia (1G)   | 544 Mbits/sec   | 90.7 Mbits/sec 
Clouvider       | NYC, NY, US (10G)         | 1.08 Gbits/sec  | 205 Mbits/sec  
Velocity Online | Tallahassee, FL, US (10G) | 1.06 Gbits/sec  | 307 Mbits/sec  
Clouvider       | Los Angeles, CA, US (10G) | 1.10 Gbits/sec  | 459 Mbits/sec  
Iveloz Telecom  | Sao Paulo, BR (2G)        | 484 Mbits/sec   | 91.9 Mbits/sec 

Geekbench 5 Benchmark Test:
---------------------------------
Test            | Value                         
                |                               
Single Core     | 688                           
Multi Core      | 690                           
Full Test       | https://browser.geekbench.com/v5/cpu/7342246
----------------------------------------------------------------------
 CPU Model             : AMD Ryzen 9 3900X 12-Core Processor
 CPU Cores             : 1
 CPU Frequency         : 3792.870 MHz
 CPU Cache             : 512 KB
 Total Disk            : 9.3 GB (3.7 GB Used)
 Total Mem             : 483 MB (67 MB Used)
 Total Swap            : 511 MB (44 MB Used)
 System uptime         : 1 days, 20 hour 27 min
 Load average          : 0.00, 0.11, 0.12
 OS                    : Debian GNU/Linux 10
 Arch                  : x86_64 (64 Bit)
 Kernel                : 4.19.0-16-amd64
 TCP CC                : bbr
 Virtualization        : KVM
 Organization          : AS53667 FranTech Solutions
 Location              : Las Vegas / US
 Region                : Nevada
----------------------------------------------------------------------
 I/O Speed(1st run)    : 1.1 GB/s
 I/O Speed(2nd run)    : 1.1 GB/s
 I/O Speed(3rd run)    : 1.0 GB/s
 Average I/O speed     : 1092.3 MB/s
----------------------------------------------------------------------
 Node Name        Upload Speed      Download Speed      Latency     
 Speedtest.net    1090.06 Mbps      256.32 Mbps         56.99 ms    
 Shanghai   CT    144.78 Mbps       485.96 Mbps         149.07 ms   
 Shanghai   CU    325.92 Mbps       425.92 Mbps         210.93 ms   
 Guangzhou  CT    2.71 Mbps         205.45 Mbps         166.96 ms   
 Shenzhen   CU    403.94 Mbps       371.04 Mbps         182.94 ms   
 Hongkong   CN    377.38 Mbps       551.20 Mbps         190.44 ms   
 Singapore  SG    392.22 Mbps       502.75 Mbps         192.75 ms   
 Tokyo      JP    199.29 Mbps       7.16 Mbps           115.58 ms   
----------------------------------------------------------------------

[Pulsed Media]SeedBox评测

前几天在let看见一款seedboox促销。

这是促销地址:https://www.lowendtalk.com/discussion/170669/pulsed-media-value1000-seedboxes-lets-try-this-again-6tb-for-just-6-99-mo-4tb-4-99-month/p1

什么是SeedBox呢?

SeedBox其实就是一台共享的独立服务器(而且只有一个共享的IP),大家都用同一个系统,用不同的用户登录(没有root权限)。SeedBox商家会预装各种下载软件(例如deluge、utorrent)给用户下载种子,而且也会提供从seedbox上下载资源回本地的功能。

Seedbox有啥好处呢?

1、抗投诉,可以随意的玩BT下载,不会因为蜜罐版权投诉而停机。

2、网络连通性好,到各大数据中心的延迟和速度都不错,下载东西很舒服。

SeedBox的缺点

1、IP一般是共享的,国内的PT站不允许使用共享IP盒子(外站报备下IP就行)。

2、资源争夺严重,邻居都是各种下载折腾的猛男,iowait有时候会很高,还有直接用Seedbox进行视频转码的邻居。

3、硬盘基本都是RAID0的,虽然每TB硬盘的价格的价格很香,但容易随时数据火葬场,不能用作网盘。

趁机上车试试水,买了一款最便宜的,看着还挺不错的>.<。

V1000 M: 6TB Storage, 6GB rTorrent Ram, 1Gbps, Unlimited* External Traffic, Unlimited Internal Traffic: 13.99€ 6.99€ Per Month

试了好几个国内测速的脚本都跑不全=.=机房应该在华沙那边,线路应该都不咋地的,带宽还挺足的。

以下是 bench.sh、nench.sh和geekbench.sh跑分的情况

 国内测速wget -qO- bench.sh | bash
----------------------------------------------------------------------
 CPU Model             : Six-Core AMD Opteron(tm) Processor 2419 EE
 CPU Cores             : 6
 CPU Frequency         : 1000.000 MHz
 CPU Cache             : 512 KB
 Total Disk            : 29724.0 GB (13316.6 GB Used)
 Total Mem             : 48295 MB (20218 MB Used)
 Total Swap            : 5723 MB (842 MB Used)
 System uptime         : 12 days, 20 hour 16 min
 Load average          : 1.92, 2.37, 2.80
 OS                    : Debian GNU/Linux 10
 Arch                  : x86_64 (64 Bit)
 Kernel                : 4.19.0-14-amd64
 TCP CC                : 
 Virtualization        : Dedicated
 Organization          : AS203003 Magna Capax Finland Oy
 Location              : Helsinki / FI
 Region                : Uusimaa
----------------------------------------------------------------------
 I/O Speed(1st run)    : 292 MB/s
 I/O Speed(2nd run)    : 250 MB/s
 I/O Speed(3rd run)    : 233 MB/s
----------------------------------------------------------------------
 CPU Model             : Six-Core AMD Opteron(tm) Processor 2419 EE
 CPU Cores             : 6
 CPU Frequency         : 1800.000 MHz
 CPU Cache             : 512 KB
 Total Disk            : 29724.0 GB (13316.6 GB Used)
 Total Mem             : 48295 MB (20289 MB Used)
 Total Swap            : 5723 MB (848 MB Used)
 System uptime         : 12 days, 20 hour 22 min
 Load average          : 2.12, 2.44, 2.70
 OS                    : Debian GNU/Linux 10
 Arch                  : x86_64 (64 Bit)
 Kernel                : 4.19.0-14-amd64
 TCP CC                : 
 Virtualization        : Dedicated
 Organization          : AS203003 Magna Capax Finland Oy
 Location              : Helsinki / FI
 Region                : Uusimaa
----------------------------------------------------------------------
 I/O Speed(1st run)    : 286 MB/s
 I/O Speed(2nd run)    : 220 MB/s
 I/O Speed(3rd run)    : 194 MB/s
 Average I/O speed     : 233.3 MB/s
----------------------------------------------------------------------
 Node Name        Upload Speed      Download Speed      Latency     
 Speedtest.net    862.60 Mbps       930.97 Mbps         0.77 ms     
 Shanghai   CT    101.81 Mbps       942.38 Mbps         245.69 ms   
 Guangzhou  CT    8.67 Mbps         475.79 Mbps         225.75 ms   
 Hongkong   CN    446.98 Mbps       957.71 Mbps         212.69 ms   
 Tokyo      JP    260.18 Mbps       5.89 Mbps           162.12 ms   
----------------------------------------------------------------------
国际测速+全面跑分(curl -s wget.racing/nench.sh | bash; curl -s wget.racing/nench.sh | bash) 2>&1 | tee nench.log

-------------------------------------------------
 nench.sh v2019.07.20 -- https://git.io/nench.sh
 benchmark timestamp:    2021-04-09 12:25:53 UTC
-------------------------------------------------

Processor:    Six-Core AMD Opteron(tm) Processor 2419 EE
CPU cores:    6
Frequency:    1000.000 MHz
RAM:          47Gi
bash: line 156: swapon: command not found
Swap:         -
Kernel:       Linux 4.19.0-14-amd64 x86_64

Disks:
sda    7.3T  HDD
sdb    7.3T  HDD
sdc    7.3T  HDD
sdd    7.3T  HDD

CPU: SHA256-hashing 500 MB
    6.098 seconds
CPU: bzip2-compressing 500 MB
    11.628 seconds
CPU: AES-encrypting 500 MB
    8.596 seconds

ioping: seek rate
    min/avg/max/mdev = 80.2 us / 447.1 us / 102.4 ms / 2.64 ms
ioping: sequential read speed
    generated 1.90 k requests in 5.03 s, 474 MiB, 376 iops, 94.2 MiB/s

dd: sequential write speed
    1st run:    267.98 MiB/s
    2nd run:    227.93 MiB/s
    3rd run:    247.96 MiB/s
    average:    247.96 MiB/s

IPv4 speedtests
    your IPv4:    185.148.3.xxxx

    Cachefly CDN:         56.27 MiB/s
    Leaseweb (NL):        86.31 MiB/s
    Softlayer DAL (US):   7.88 MiB/s
    Online.net (FR):      77.47 MiB/s
    OVH BHS (CA):         19.60 MiB/s

No IPv6 connectivity detected
-------------------------------------------------

-------------------------------------------------
 nench.sh v2019.07.20 -- https://git.io/nench.sh
 benchmark timestamp:    2021-04-09 12:27:06 UTC
-------------------------------------------------

Processor:    Six-Core AMD Opteron(tm) Processor 2419 EE
CPU cores:    6
Frequency:    1000.000 MHz
RAM:          47Gi
bash: line 156: swapon: command not found
Swap:         -
Kernel:       Linux 4.19.0-14-amd64 x86_64

Disks:
sda    7.3T  HDD
sdb    7.3T  HDD
sdc    7.3T  HDD
sdd    7.3T  HDD

CPU: SHA256-hashing 500 MB
    6.138 seconds
CPU: bzip2-compressing 500 MB
    11.531 seconds
CPU: AES-encrypting 500 MB
    8.685 seconds

ioping: seek rate
    min/avg/max/mdev = 78.6 us / 321.0 us / 56.3 ms / 1.55 ms
ioping: sequential read speed
    generated 1.39 k requests in 5.00 s, 347 MiB, 277 iops, 69.4 MiB/s

dd: sequential write speed
    1st run:    281.33 MiB/s
    2nd run:    212.67 MiB/s
    3rd run:    205.04 MiB/s
    average:    233.01 MiB/s

IPv4 speedtests
    your IPv4:    185.148.3.xxxx

    Cachefly CDN:         93.63 MiB/s
    Leaseweb (NL):        86.15 MiB/s
    Softlayer DAL (US):   8.68 MiB/s
    Online.net (FR):      77.53 MiB/s
    OVH BHS (CA):         19.39 MiB/s

No IPv6 connectivity detected
-------------------------------------------------
dragonfs@3-178solange:~/git/AutoRclone/accounts/fclone-v0.4.1-linux-amd64$ curl -s https://raw.githubusercontent.com/masonr/yet-another-bench-script/master/yabs.sh | bash
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
#              Yet-Another-Bench-Script              #
#                     v2020-12-29                    #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #

Fri 09 Apr 2021 03:34:43 PM EEST

Basic System Information:
---------------------------------
Processor  : Six-Core AMD Opteron(tm) Processor 2419 EE
CPU cores  : 6 @ 1000.000 MHz
AES-NI     : � Disabled
VM-x/AMD-V : � Enabled
RAM        : 47.2 GiB
Swap       : 5.6 GiB
Disk       : 28.9 TiB

fio Disk Speed Tests (Mixed R/W 50/50):
---------------------------------
Block Size | 4k            (IOPS) | 64k           (IOPS)
  ------   | ---            ----  | ----           ---- 
Read       | 1.77 MB/s      (442) | 25.31 MB/s     (395)
Write      | 1.79 MB/s      (448) | 25.83 MB/s     (403)
Total      | 3.56 MB/s      (890) | 51.14 MB/s     (798)
           |                      |                     
Block Size | 512k          (IOPS) | 1m            (IOPS)
  ------   | ---            ----  | ----           ---- 
Read       | 120.60 MB/s    (235) | 142.13 MB/s    (138)
Write      | 127.01 MB/s    (248) | 151.60 MB/s    (148)
Total      | 247.61 MB/s    (483) | 293.73 MB/s    (286)

iperf3 Network Speed Tests (IPv4):
---------------------------------
Provider        | Location (Link)           | Send Speed      | Recv Speed     
                |                           |                 |                
Clouvider       | London, UK (10G)          | 845 Mbits/sec   | 926 Mbits/sec  
Online.net      | Paris, FR (10G)           | 854 Mbits/sec   | 925 Mbits/sec  
WorldStream     | The Netherlands (10G)     | busy            | busy           
Biznet          | Jakarta, Indonesia (1G)   | 625 Mbits/sec   | 271 Mbits/sec
Clouvider       | NYC, NY, US (10G)         | 565 Mbits/sec   | 890 Mbits/sec
Velocity Online | Tallahassee, FL, US (10G) | 782 Mbits/sec   | 870 Mbits/sec
Clouvider       | Los Angeles, CA, US (10G) | 328 Mbits/sec   | 850 Mbits/sec
Iveloz Telecom  | Sao Paulo, BR (2G)        | 728 Mbits/sec   | 17.2 Mbits/sec

Geekbench 5 Benchmark Test:
---------------------------------
Test            | Value
                |
Single Core     | 271
Multi Core      | 1256
Full Test       | https://browser.geekbench.com/v5/cpu/7342323

Netcup 最低配 VPS 200 G8 1.84€

这款正常价格价是2.69€/月,这次的活动价是1.84€,这款的折扣价超级难抢,上次他们圣诞活动价是1.79€,活动开始15s就被抢光了,幸好这次是随机的让我给撞到了一个。

netcup家的特点就是很稳,带ddos防御,然后到国内有电信163直连,线路其实还算可以,但是这款机cpu的性能就一般般了,感觉输个啥简单的命令cpu都要跳起来。

VPS 200 G8

  • 1个vCore
  • 2 GB内存
  • 20 GB固态硬盘(RAID10)
  • 40 TB流量
  • 快照(写时复制)
  • 远程控制台以及更多…
  • 每月€0.004 /小时:€2.69

试了好几个脚本都是跑了一半就停了,而且跑的时候cpu很容易就100了,看来这玩意的cpu确实有点不行呀.

以下是superspeed和geekbench跑分,cpu性能确实有点拉了。

root@v2202104114634148661:~# wget https://raw.githubusercontent.com/oooldking/script/master/superspeed.sh && chmod +x superspeed.sh && ./superspeed.sh
#############################################################
# Description: Test your server's network with Speedtest    #
# Intro:  https://www.oldking.net/305.html                  #
# Author: Oldking <oooldking@gmail.com>                     #
# Github: https://github.com/oooldking                      #
----------------------------------------------------------------------
 CPU Model             : QEMU Virtual CPU version 2.5+
 CPU Cores             : 1
 CPU Frequency         : 2397.194 MHz
 CPU Cache             : 16384 KB
 Total Disk            : 9.8 GB (1.4 GB Used)
 Total Mem             : 1995 MB (50 MB Used)
 Total Swap            : 0 MB (0 MB Used)
 System uptime         : 0 days, 0 hour 27 min
 Load average          : 0.37, 0.16, 0.05
 OS                    : Debian GNU/Linux 10
 Arch                  : x86_64 (64 Bit)
 Kernel                : 4.19.0-16-amd64
 TCP CC                : cubic
 Virtualization        : KVM
 Organization          : AS197540 netcup GmbH
 Location              : Aßlar / DE
 Region                : Hesse
----------------------------------------------------------------------
 I/O Speed(1st run)    : 388 MB/s
 I/O Speed(2nd run)    : 561 MB/s
 I/O Speed(3rd run)    : 574 MB/s
 Average I/O speed     : 507.7 MB/s
----------------------------------------------------------------------
 Node Name        Upload Speed      Download Speed      Latency     
 Speedtest.net    695.88 Mbps       566.50 Mbps         4.00 ms     
 Beijing    CU    3.84 Mbps         135.75 Mbps         265.68 ms   
 Shanghai   CT    1.11 Mbps         449.23 Mbps         226.47 ms   
 Shanghai   CU    3.67 Mbps         459.21 Mbps         178.46 ms   
 Guangzhou  CT    9.50 Mbps         281.46 Mbps         210.05 ms   
 Guangzhou  CU    13.79 Mbps        391.62 Mbps         203.59 ms   
 Shenzhen   CU    25.37 Mbps        342.85 Mbps         191.97 ms   
 Hongkong   CN    619.94 Mbps       562.13 Mbps         223.11 ms   
 Singapore  SG    376.56 Mbps       438.16 Mbps         253.89 ms   
 Tokyo      JP    76.28 Mbps        58.61 Mbps          257.50 ms   
----------------------------------------------------------------------
oot@v2202104114634148661:~# curl -s https://raw.githubusercontent.com/masonr/yet-another-bench-script/master/yabs.sh | bash
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
#              Yet-Another-Bench-Script              #
#                     v2020-12-29                    #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #

Fri 09 Apr 2021 02:32:41 PM CEST

Basic System Information:
---------------------------------
Processor  : QEMU Virtual CPU version 2.5+
CPU cores  : 1 @ 2397.194 MHz
AES-NI     : ✔ Enabled
VM-x/AMD-V : ❌ Disabled
RAM        : 1.9 GiB
Swap       : 0.0 KiB

Disk       : 9.7 GiB

fio Disk Speed Tests (Mixed R/W 50/50):
---------------------------------
Block Size | 4k            (IOPS) | 64k           (IOPS)
  ------   | ---            ----  | ----           ---- 
Read       | 58.79 MB/s   (14.6k) | 508.79 MB/s   (7.9k)
Write      | 58.90 MB/s   (14.7k) | 511.47 MB/s   (7.9k)
Total      | 117.69 MB/s  (29.4k) | 1.02 GB/s    (15.9k)
           |                      |                     
Block Size | 512k          (IOPS) | 1m            (IOPS)
  ------   | ---            ----  | ----           ---- 
Read       | 1.02 GB/s     (2.0k) | 1.30 GB/s     (1.2k)
Write      | 1.08 GB/s     (2.1k) | 1.38 GB/s     (1.3k)
Total      | 2.10 GB/s     (4.1k) | 2.69 GB/s     (2.6k)

iperf3 Network Speed Tests (IPv4):
---------------------------------
Provider        | Location (Link)           | Send Speed      | Recv Speed     
                |                           |                 |                
Clouvider       | London, UK (10G)          | 645 Mbits/sec   | 447 Mbits/sec  
Online.net      | Paris, FR (10G)           | 695 Mbits/sec   | 424 Mbits/sec  
WorldStream     | The Netherlands (10G)     | busy            | busy           
Biznet          | Jakarta, Indonesia (1G)   | 613 Mbits/sec   | 147 Mbits/sec  
Clouvider       | NYC, NY, US (10G)         | 278 Mbits/sec   | 381 Mbits/sec  
Velocity Online | Tallahassee, FL, US (10G) | 758 Mbits/sec   | 252 Mbits/sec  
Clouvider       | Los Angeles, CA, US (10G) | 534 Mbits/sec   | 357 Mbits/sec  
Iveloz Telecom  | Sao Paulo, BR (2G)        | busy            | busy           

iperf3 Network Speed Tests (IPv6):
---------------------------------
Provider        | Location (Link)           | Send Speed      | Recv Speed     
                |                           |                 |                
Clouvider       | London, UK (10G)          | 726 Mbits/sec   | 453 Mbits/sec  
Online.net      | Paris, FR (10G)           | 763 Mbits/sec   | 413 Mbits/sec  
WorldStream     | The Netherlands (10G)     | busy            | busy           
Clouvider       | NYC, NY, US (10G)         | 686 Mbits/sec   | 362 Mbits/sec  
Clouvider       | Los Angeles, CA, US (10G) | 626 Mbits/sec   | 63.8 Mbits/sec 

Geekbench 5 Benchmark Test:
---------------------------------
Test            | Value                         
                |                               
Single Core     | 430                           
Multi Core      | 439                           
Full Test       | https://browser.geekbench.com/v5/cpu/7342332

Netcup 2021 复活节活动

netcup复活节找彩蛋活动又来了,这次的性价比也很不错。

快速找彩蛋教程

1.必须得是pc端才显示彩蛋

2.语言必须是德语

3.搜索的时候直接f12,在页面元素中直接搜索 nc-e-image 可以快速地找到彩蛋

所有彩蛋一览(无法直接点开,你必须在首页找到它才能正常点开):

所有可用的鸡蛋:

AKTION .de-Domain 14 Cent OST21
0.14€
顺序:https//www.netcup.eu/bestellen/produkt.php?produkt = 2729


------------

AKTION .ch域OST21
0.42€
顺序:https//www.netcup.eu/bestellen/produkt.php?produkt = 2730


------------

AKTION .li-Domain OST21
0.42€
顺序:https//www.netcup.eu/bestellen/produkt.php?produkt = 2731


------------

AKTION .eu域OST21
0.42€
顺序:https//www.netcup.eu/bestellen/produkt.php?produkt = 2732


------------

AKTION .at-Domain OST21
0.83€
顺序:https//www.netcup.eu/bestellen/produkt.php?produkt = 2733


------------

VPS Ostern S OST21
1.84€
顺序:https//www.netcup.eu/bestellen/produkt.php?produkt = 2734


------------

VPS Ostern M OST21
4.32€
顺序:https//www.netcup.eu/bestellen/produkt.php?produkt = 2735


------------

VPS Ostern L OST21
4.56€
订单:https//www.netcup.eu/bestellen/produkt.php?produkt = 2736


------------

VPS Ostern XL OST21
7.89€
订单:https//www.netcup.eu/bestellen/produkt.php?produkt = 2737


------------

VPS有趣的兔子OST21
12.34€
订单:https//www.netcup.eu/bestellen/produkt.php?produkt = 2738


------------

网页寄存1000 SE OST21
1.00€
顺序:https//www.netcup.eu/bestellen/produkt.php?produkt = 2739


------------

网页寄存2000 SE OST21
2.34€
订单:https//www.netcup.eu/bestellen/produkt.php?produkt = 2740


------------

虚拟主机4000 SE OST21
3.45€
顺序:https//www.netcup.eu/bestellen/produkt.php?produkt = 2741


------------

虚拟主机Power Egg OST21
5.67€
顺序:https//www.netcup.eu/bestellen/produkt.php?produkt = 2742


------------

RS Ostern S OST21
10.36€
顺序:https//www.netcup.eu/bestellen/produkt.php?produkt = 2743


------------

RS Ostern M OST21
11.49€
顺序:https//www.netcup.eu/bestellen/produkt.php?produkt = 2744


------------

RS Ostern L OST21
16.61€
顺序:https//www.netcup.eu/bestellen/produkt.php?produkt = 2745


------------

RS Ostern XL OST21
25.52€
顺序:https//www.netcup.eu/bestellen/produkt.php?produkt = 2746


------------

RS Ostern XXL OST21
30.99€
顺序:https//www.netcup.eu/bestellen/produkt.php?produkt = 2747


------------

云vLAN Giga OST21
6.14€
订单:https//www.netcup.eu/bestellen/produkt.php?produkt = 2749


------------

云vLAN 2,5 Gbit / s OST21
10.25€
订单:https//www.netcup.eu/bestellen/produkt.php?produkt = 2750


------------

转销商B级OST21
9.50€
顺序:https//www.netcup.eu/bestellen/produkt.php?produkt = 2751


------------

ZusätzlicheIPv4 OST21
0.80€
顺序:https//www.netcup.eu/bestellen/produkt.php?produkt = 2752


------------

故障转移IPv4-地址OST21
3.00€
顺序:https//www.netcup.eu/bestellen/produkt.php?produkt = 2753


------------

上网本Twinbook OST21
0.00€
顺序:https//www.netcup.eu/bestellen/produkt.php?produkt = 2754

复活节兔子刚跳过去,告诉我们,他今年将再次在我们的网站上隐藏一些复活节彩蛋,并进行了大量促销。

下周日,复活节兔子将在我们的网站上分发虚拟复活节彩蛋。任何发现其中一个隐藏的复活节彩蛋的人都可以向我们订购特别优惠。一旦发现鸡蛋,复活节兔子便将其隐藏在另一处。因此,您随时可以在我们的网站上找到新的复活节彩蛋。请注意,出于公平的考虑,复活节彩蛋只能在网站的桌面版和较大的平板电脑上使用。

经验表明,特别受欢迎的报价将很快售罄。因此,您应该提早进行复活节彩蛋狩猎,以发现所有优惠。有很多很棒的藏身点-复活节彩蛋可以藏在两侧!

注意SPOILER警报!复活节兔子已经给了您一些展望:

  • 虚拟主机从1.00欧元/月
  • 域名每月0.14欧元起
  • 根服务器从10.36欧元/月起
  • VPS每月1.84欧元起
  • vLAN大大减少
  • IP地址大大减少
  • netcup Twinbook(限量版)

新用户5欧元优惠券分享 下单的时候填写新用户可以立减5欧元

Voucher codeTypeCreated onValidDelete
36nc16061348969Gutschein 5 Euro (fuer Neukunden, keine Domains)23.11.2020Unlimited validity
36nc16061348968Gutschein 5 Euro (fuer Neukunden, keine Domains)23.11.2020Unlimited validity
36nc16061348967Gutschein 5 Euro (fuer Neukunden, keine Domains)23.11.2020Unlimited validity
36nc16061348966Gutschein 5 Euro (fuer Neukunden, keine Domains)23.11.2020Unlimited validity
36nc16061348965Gutschein 5 Euro (fuer Neukunden, keine Domains)23.11.2020Unlimited validity
36nc16061348964Gutschein 5 Euro (fuer Neukunden, keine Domains)23.11.2020Unlimited validity
36nc16061348963Gutschein 5 Euro (fuer Neukunden, keine Domains)23.11.2020Unlimited validity
36nc16061348962Gutschein 5 Euro (fuer Neukunden, keine Domains)23.11.2020Unlimited validity
36nc16061348961Gutschein 5 Euro (fuer Neukunden, keine Domains)23.11.2020Unlimited validity
36nc16061348960Gutschein 5 Euro (fuer Neukunden, keine Domains)23.11.2020Unlimited validity
36nc16006580653Gutschein 5 Euro (fuer Neukunden, keine Domains)21.09.2020Unlimited validity
36nc16006580652Gutschein 5 Euro (fuer Neukunden, keine Domains)21.09.2020Unlimited validity
36nc16006580651Gutschein 5 Euro (fuer Neukunden, keine Domains)21.09.2020Unlimited validity
36nc16006580650Gutschein 5 Euro (fuer Neukunden, keine Domains)21.09.2020Unlimited validity

SpringBoot使用Mybatis逆向工程小记

1.新建立SpringBoot项目(当然在原有的项目添加也行),添加依赖和build插件,主要是下面这一段。

        <plugin>
            <groupId>org.mybatis.generator</groupId>
            <artifactId>mybatis-generator-maven-plugin</artifactId>
            <version>1.3.7</version>
            <configuration>
                <configurationFile>src/main/resources/config.xml</configurationFile>
                <overwrite>true</overwrite>
                <includeCompileDependencies>true</includeCompileDependencies>
            </configuration>
        </plugin>

这是我的新springboot项目添加后的pom.xml

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.4.4</version>
		<relativePath/> <!-- lookup parent from repository -->
	</parent>
	<groupId>com.example</groupId>
	<artifactId>demo</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<name>demo</name>
	<description>Demo project for Spring Boot</description>
	<properties>
		<java.version>8</java.version>
	</properties>
	<dependencies>
		<dependency>
			<groupId>org.mybatis.spring.boot</groupId>
			<artifactId>mybatis-spring-boot-starter</artifactId>
			<version>2.1.4</version>
		</dependency>

		<dependency>
			<groupId>mysql</groupId>
			<artifactId>mysql-connector-java</artifactId>
		</dependency>
		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.mybatis.generator</groupId>
				<artifactId>mybatis-generator-maven-plugin</artifactId>
				<version>1.3.7</version>
				<configuration>
					<configurationFile>src/main/resources/config.xml</configurationFile>
					<overwrite>true</overwrite>
					<includeCompileDependencies>true</includeCompileDependencies>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
			</plugin>
		</plugins>
	</build>

</project>

2.配置模板,来自https://juejin.cn/post/6844903982582743048这里有超详细的教程

<?xml version="1.0" encoding="UTF-8" ?>
<!--mybatis的代码生成器相关配置-->
<!DOCTYPE generatorConfiguration
        PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
        "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">

<generatorConfiguration>
    <!-- 引入配置文件 -->
    <properties resource="application-dev.properties"/>

    <!-- 一个数据库一个context,context的子元素必须按照它给出的顺序
        property*,plugin*,commentGenerator?,jdbcConnection,javaTypeResolver?,
        javaModelGenerator,sqlMapGenerator?,javaClientGenerator?,table+
    -->
    <context id="myContext" targetRuntime="MyBatis3" defaultModelType="flat">

        <!-- 这个插件给生成的Java模型对象增加了equals和hashCode方法 -->
        <!--<plugin type="org.mybatis.generator.plugins.EqualsHashCodePlugin"/>-->

        <!-- 注释 -->
        <commentGenerator>
            <!-- 是否不生成注释 -->
            <property name="suppressAllComments" value="true"/>
            <!-- 不希望生成的注释中包含时间戳 -->
            <!--<property name="suppressDate" value="true"/>-->
            <!-- 添加 db 表中字段的注释,只有suppressAllComments为false时才生效-->
            <!--<property name="addRemarkComments" value="true"/>-->
        </commentGenerator>


        <!-- jdbc连接 -->
        <jdbcConnection driverClass="${spring.datasource.driverClassName}"
                        connectionURL="${spring.datasource.url}"
                        userId="${spring.datasource.username}"
                        password="${spring.datasource.password}">
            <!--高版本的 mysql-connector-java 需要设置 nullCatalogMeansCurrent=true-->
            <property name="nullCatalogMeansCurrent" value="true"/>
        </jdbcConnection>

        <!-- 类型转换 -->
        <javaTypeResolver>
            <!--是否使用bigDecimal,默认false。
                false,把JDBC DECIMAL 和 NUMERIC 类型解析为 Integer
                true,把JDBC DECIMAL 和 NUMERIC 类型解析为java.math.BigDecimal-->
            <property name="forceBigDecimals" value="true"/>
            <!--默认false
                false,将所有 JDBC 的时间类型解析为 java.util.Date
                true,将 JDBC 的时间类型按如下规则解析
                    DATE	                -> java.time.LocalDate
                    TIME	                -> java.time.LocalTime
                    TIMESTAMP               -> java.time.LocalDateTime
                    TIME_WITH_TIMEZONE  	-> java.time.OffsetTime
                    TIMESTAMP_WITH_TIMEZONE	-> java.time.OffsetDateTime
                -->
            <!--<property name="useJSR310Types" value="false"/>-->
        </javaTypeResolver>

        <!-- 生成实体类地址 -->
        <javaModelGenerator targetPackage="com.wqlm.boot.user.po" targetProject="src/main/java">
            <!-- 是否让 schema 作为包的后缀,默认为false -->
            <!--<property name="enableSubPackages" value="false"/>-->
            <!-- 是否针对string类型的字段在set方法中进行修剪,默认false -->
            <property name="trimStrings" value="true"/>
        </javaModelGenerator>


        <!-- 生成Mapper.xml文件 -->
        <sqlMapGenerator targetPackage="mapper" targetProject="src/main/resources">
            <!--<property name="enableSubPackages" value="false"/>-->
        </sqlMapGenerator>

        <!-- 生成 XxxMapper.java 接口-->
        <javaClientGenerator targetPackage="com.wqlm.boot.user.dao" targetProject="src/main/java" type="XMLMAPPER">
            <!--<property name="enableSubPackages" value="false"/>-->
        </javaClientGenerator>


        <!-- schema为数据库名,oracle需要配置,mysql不需要配置。
             tableName为对应的数据库表名
             domainObjectName 是要生成的实体类名(可以不指定,默认按帕斯卡命名法将表名转换成类名)
             enableXXXByExample 默认为 true, 为 true 会生成一个对应Example帮助类,帮助你进行条件查询,不想要可以设为false
             -->
        <table schema="" tableName="user" domainObjectName="User"
               enableCountByExample="false" enableDeleteByExample="false" enableSelectByExample="false"
               enableUpdateByExample="false" selectByExampleQueryId="false">
            <!--是否使用实际列名,默认为false-->
            <!--<property name="useActualColumnNames" value="false" />-->
        </table>
    </context>
</generatorConfiguration>

3.运行

命令行执行 mvn mybatis-generator:generate -e 即可运行,如果是idea的话可以直接在maven插件中双击该插件运行.

如果提示找不到jdbc对应的驱动类,请检查是否将mysql-connector的scope设置为runtime了

实习(摸鱼)十天随记

不知不觉已经来10天了,感觉做开发工作是真的苦逼。每天从早上到下午就是对着个电脑,还特么每周要加班!!!!!不知道是不是上了贼船了。

我们这些实习生本身就是地方研发中心的,这次是来总部实习。不知道是不是因为以后也不会待在总部,所以总部研发部的人也不怎么管我们,就让我们随便弄弄学点东西。

这几天跟着写了一下简单的接口,感觉自己的水平确实是欠佳,虽然说是真的学过也接触过很多东西,但是大多都是浅尝辄止,没有深入的理解底层的一些东西和优化,甚至连用也用的不精,很多新工具都不了解,只会玩各种教程学习视频那些老一套。

所以,我决定每过几天就把学到的或者之前花很多时间搜索才得到结果的东西都写进博客,顺便水一水文章数量,之前本来想着自己用react写个简单的博客,不知道以后会不会进展,做这一行还是得多学学,学的多工资才多。

学习!!!!!!!!!!!!!!!!!!

qexw美国三期9929线路评测分享

没啥技术分享,只能用VPS评测凑凑数了。

前几天上车了企鹅小屋家的9929预售机,虽然之前一直有听说这家风评很差(主要是在随意封禁用户、退款周期长、工单支持垃圾这些),不过还是架不住有便宜的9929路线,所以上车一台99年付的。

首先就是大家都关心的线路测试了,竟然还真是从cera拿的母鸡,不知道带不带防御,如果带防御的话甚至还能反代网站玩。看样子是三网联通9929回程,有个别测速节点拉跨,不知道是不是触发了流控机制。性能测试就懒得做了,反正这玩意也干不了啥大事,就是图个线路好。

wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash
--------------------------------------------------------------------------------------------------------------------------------------------
 Superbench.sh -- https://www.oldking.net/350.html
 Mode  : Standard    Version : 1.1.7
 Usage : wget -qO- sb.oldking.net | bash
----------------------------------------------------------------------
 CPU Model            : Intel(R) Xeon(R) CPU E5-2678 v3 @ 2.50GHz
 CPU Cores            : 1 Cores 2499.998 MHz x86_64
 CPU Cache            : 30720 KB
 OS                   : Debian GNU/Linux 10 (64 Bit) KVM
 Kernel               : 4.19.0-5-amd64
 Total Space          : 1.3 GB / 9.6 GB
 Total RAM            : 69 MB / 483 MB (381 MB Buff)
 Total SWAP           : 1 MB / 255 MB
 Uptime               : 1 days 3 hour 43 min
 Load Average         : 0.00, 0.00, 0.00
 TCP CC               : bbr
 ASN & ISP            : AS40065, Cnservers LLC
 Organization         : CloudRadium L.L.C
 Location             : Los Angeles, United States / US
 Region               : California
----------------------------------------------------------------------
 I/O Speed( 1.0GB )   : 271 MB/s
 I/O Speed( 1.0GB )   : 336 MB/s
 I/O Speed( 1.0GB )   : 378 MB/s
 Average I/O Speed    : 328.3 MB/s
----------------------------------------------------------------------
 Node Name        Upload Speed      Download Speed      Latency
 Speedtest.net    148.41 Mbit/s     377.97 Mbit/s       (*)64.42 ms
 Fast.com         0.00 Mbit/s       135.6 Mbit/s        -
 Nanjing 5G   CT  149.52 Mbit/s     285.06 Mbit/s       155.85 ms
 Hefei 5G     CT  146.13 Mbit/s     235.75 Mbit/s       159.14 ms
 Guangzhou 5G CT  27.81 Mbit/s      155.56 Mbit/s       154.62 ms
 TianJin 5G   CU  149.49 Mbit/s     231.72 Mbit/s       151.24 ms
 Shanghai 5G  CU  150.11 Mbit/s     359.05 Mbit/s       150.43 ms
 Guangzhou 5G CU  149.45 Mbit/s     264.86 Mbit/s       166.61 ms
 Tianjin 5G   CM  18.84 Mbit/s      199.74 Mbit/s       178.93 ms
 Wuxi 5G      CM  142.46 Mbit/s     202.02 Mbit/s       160.32 ms
 Nanjing 5G   CM  28.70 Mbit/s      42.12 Mbit/s        166.80 ms
 Hefei 5G     CM  139.31 Mbit/s     226.26 Mbit/s       163.31 ms
 Changsha 5G  CM  146.99 Mbit/s     324.79 Mbit/s       164.26 ms
----------------------------------------------------------------------
 Finished in  : 6 min 36 sec
 Timestamp    : 2021-03-26 23:05:22 GMT+8
 Results      : ./superbench.log
----------------------------------------------------------------------
 Share result:
 · https://www.speedtest.net/result/c/152cc59c-7b47-4298-9b95-c7e1df63a397
 · https://paste.ubuntu.com/p/qxTVwNbtqQ/
----------------------------------------------------------------------

树莓派4B 安装Emby/Jellyfin服务端 开启硬件解码

第一步.安装Emby/Jellyfin

直接安装

安装Emby

https://emby.media/linux-server.html选择你树莓派对应的发行版,直接复制命令安装

安装好后,命令行输入下面命令

systemctl start emby-server.service //启动embyserver
systemctl enbale emby-server.service //设置开机启动
systemctl status emby-server.service //查看embyserver服务状态

启动成功后即可在 http://ServerIP:8096 访问,ServerIP是树莓派的IP地址。

安装Jellyfin

https://jellyfin.org/docs/general/administration/installing.html中根据你的发行版按照文档安装

systemctl start jellyfin.service //启动jellyfin
systemctl enbale jellyfin.service //设置开机启动
systemctl status jellyfin.service //查看jellyfin服务状态

Docker安装 除了镜像名字不同其他的都一样

Docker安装Emby

先安装Docker,然后去Dockerhub找到emby-server镜像 linuxserver/emby

#拉取docker镜像 会自动按照操作系统拉取相应的镜像 无论系统是32位还是64位
docker pull   linuxserver/emby 

#运行镜像  不要直接复制粘贴 先看下面的传入参数解释 按需修改 
#传参说明 例如 -v /a:/b 左边的/a是你系统中的实际路径,右边的/b是映射到容器中的路径
,docker run -d \
  --name=emby \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Asia/Shanghai \
  -p 8096:8096 \
  -p 8920:8920 `#optional` \
  -v /path/to/config:/config \
  -v /path/to/tvshows:/data/tvshows \
  -v /path/to/movies:/data/movies \
  -v /opt/vc/lib:/opt/vc/lib `#optional` \
  --device /dev/dri:/dev/dri `#optional` \
  --device /dev/vchiq:/dev/vchiq `#optional` \
  --device /dev/video10:/dev/video10 `#optional` \
  --device /dev/video11:/dev/video11 `#optional` \
  --device /dev/video12:/dev/video12 `#optional` \
  --restart unless-stopped \
  linuxserver/emby

Docker安装Jellyfin 除了镜像名字不同其他的都一样

#拉取docker镜像 会自动按照操作系统拉取相应的镜像 无论系统是32位还是64位
docker pull   linuxserver/jellyfin 

#运行镜像  不要直接复制粘贴 先看下面的传入参数解释 按需修改 
#传参说明 例如 -v /a:/b 左边的/a是你系统中的实际路径,右边的/b是映射到容器中的路径
,docker run -d \
  --name=emby \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Asia/Shanghai \
  -p 8096:8096 \
  -p 8920:8920 `#optional` \
  -v /path/to/config:/config \
  -v /path/to/tvshows:/data/tvshows \
  -v /path/to/movies:/data/movies \
  -v /opt/vc/lib:/opt/vc/lib `#optional` \
  --device /dev/dri:/dev/dri `#optional` \
  --device /dev/vchiq:/dev/vchiq `#optional` \
  --device /dev/video10:/dev/video10 `#optional` \
  --device /dev/video11:/dev/video11 `#optional` \
  --device /dev/video12:/dev/video12 `#optional` \
  --restart unless-stopped \
  linuxserver/jellyfin

运行成功后即可在 http://ServerIP:8096 访问,ServerIP是树莓派的IP地址。

docker传入参数详解

参数功能
-p 8096Http WebUI。
-p 8920Https webUI(您需要设置自己的证书)。
-e PUID=1000用于UserID-指定用户ID 用于解决权限问题
-e PGID=1000用于GroupID-指定组ID 用于解决权限问题
-e TZ=Asia/Shanghai指定时区 默认是上海
-v /config配置文件位置。这可能会变得非常大,对于一个大型集合,可能会达到50gb +。
-v /data/tvshows媒体在这里。添加尽可能多的需要例如/data/movies/data/tv等等。
-v /data/movies媒体在这里。添加尽可能多的需要例如/data/movies/data/tv等等。
-v /opt/vc/libRaspberry Pi OpenMAX的路径libs可选
--device /dev/dri仅当您要使用Intel或AMD GPU进行硬件加速视频编码(vaapi)时才需要。
--device /dev/vchiq仅当您要使用Raspberry Pi OpenMax视频编码(Bellagio)时才需要。
--device /dev/video10仅在要使用Raspberry Pi V4L2视频编码时才需要。
--device /dev/video11仅在要使用Raspberry Pi V4L2视频编码时才需要。
--device /dev/video12仅在要使用Raspberry Pi V4L2视频编码时才需要。
参数作用

PUID和PGID可以用来指定用户ID和组ID,可以解决-v传入目录时权限不足的问题,将其传入为目录拥有者ID即可 查询可以使用下面的命令 比如我的目录拥有者ID是dragonfsky 当然也可以都设置成0 即拥有root权限 但这可能会导致安全问题.

[dragonfsky@dragonfsky-mi ~]$ id dragonfsky
用户id=1000(dragonfsky) 组id=1001(dragonfsky) 组=1001(dragonfsky),998(wheel),991(lp),3(sys),90(network),98(power),1000(autologin)

树莓派硬件解码方式有两种

OpenMAX(Raspberry Pi)

Raspberry Pi OpenMAX的硬件加速用户需要通过在运行或创建容器时传递以下选项,将/ dev / vchiq视频设备安装在容器中以及系统OpenMax库中:

--device=/dev/vchiq:/dev/vchiq
-v /opt/vc/lib:/opt/vc/lib

V4L2(Raspberry Pi)

Raspberry Pi V4L2的硬件加速用户将需要在运行或创建容器时通过传递以下选项来将其/ dev / video1X设备安装在容器内:

--device=/dev/video10:/dev/video10
--device=/dev/video11:/dev/video11
--device=/dev/video12:/dev/video12

第二步.增加GPU内存

要使用硬件加速,我们需要给树莓派GPU分配更多的内存。修改/boot/config.txt中的gpu_mem字段,如果没有的话就增加。我使用的发行版是Manjaro arm 64位,默认的设置gpu_mem=96,我将其改成gpu_mem=320。当然如果你内存够多的话可以考虑加多一点。

#这是我修改后的显示
[root@dragonfsky ~]# cat /boot/config.txt
# See /boot/overlays/README for all available options

gpu_mem=320
initramfs initramfs-linux.img followkernel
kernel=kernel8.img
arm_64bit=1
enable_gic=1
disable_overscan=1

#enable sound
dtparam=audio=on
hdmi_drive=2

#enable vc4
dtoverlay=vc4-fkms-v3d
max_framebuffers=2

改完以后重启即可生效。接下来就可以直接在emby/jellyfin中开启硬件转码加速

emby-点击设置-服务器-转码
emby-开启硬件加速
jellyfin-设置-控制台-播放

选择开启硬件加速即可,我这里把临时转码改到了USB硬盘上,默认路径是在config文件夹下,建议尽量把这个保存路径放在外置硬盘上。如果是SD卡装系统的话也尽量把SWAP关掉,开启了反而会让系统变卡并且消耗SD卡寿命。

总结

其实树莓派这性能就算开启了硬件加速也很难流畅的转码,经常CPU就跑满了 O(∩_∩)O哈哈哈~。如果不需要硬件转码可以直接在 用户 设置中,把允许转码取消。

emby-用户
jellyfin-用户