IKOULA RASPBERRY Pi 4 MICRO SERVER (ipv6)测评

官方简介

Raspberry Pi 4 是 Raspberry Pi 基金会推出的最新型微型服务器。这些微型服务器(或纳米计算机)最初是为技术爱好者设计的利基产品,其目的是使电子产品更具吸引力且价格适中,其后迅速获得成功,如今成为真正的经典产品。价格合理,体积小巧,用户使用一台微型计算机就可以整合许多项目,无论是媒体中心这样的个人项目,还是网站托管、应用程序托管等专业项目,甚至还可用于远程备份。

在功能方面,这款全新的 Raspberry Pi 4 极具吸引力,其处理器速度比以前的版本快得多,带有千兆端口、USB3 接口,还可安装多达 4 GB 的运行内存 RAM。

配置

正好自己这个月买了一台树莓派4B,ikoula家这个月也是测评这款机器。

这款树莓派的配置如下:

CPU是@1,5GHz ARM v8架构的处理器。默认给的是ipv6地址,ipv4为可选项目。内存为4 GB DDR4。存储可选16 GB SD Card 或 120 GB SSD,给我的测评机器为16 GB的SD Card。带宽也是很实在的给到了1 Gbit/s

如果看了文章对这款RASPBERRY PI 4有兴趣的朋友,可以点击以下链接选购:

RASPBERRY PI 4机器链接

ssh连接

因为默认给的是ipv6的地址,所以我们连接服务器的时候需要我们本地支持ipv6.

如果本地支持ipv6的话,那么我们直接连接就可以了,如果像我一样,本地没有ipv6,那就需要找一些办法了。其中最简单的办法就是手机开启热点,然后电脑连接手机的热点,因为手机的流量是自带ipv6的,所以我们用电脑连接手机热点就可以支持ipv6了。

更改dns64使ipv6访问ipv4资源

首先编辑/etc/resolv.conf,删除现有的nameserver,添加以下nameserver。这是为了能访问v4地址。

nameserver 2001:67c:2b0::4

nameserver 2001:67c:2b0::6

bench.sh

测试如下

----------------------------------------------------------------------
 CPU Model             : ARMv7 Processor rev 3 (v7l)
 CPU Cores             : 4
 CPU Frequency         :  MHz
 CPU Cache             : 
 Total Disk            : 15.2 GB (2.3 GB Used)
 Total Mem             : 3906 MB (219 MB Used)
 Total Swap            : 99 MB (0 MB Used)
 System uptime         : 2 days, 0 hour 4 min
 Load average          : 0.00, 0.00, 0.00
 OS                    : Raspbian GNU/Linux 10
 Arch                  : armv7l (32 Bit)
 Kernel                : 4.19.75-v7l+
 TCP CC                : cubic
 Virtualization        : Dedicated
 Organization          : AS29432 TREX Regional Exchanges Oy
 Location              : Tampere / FI
 Region                : Pirkanmaa
----------------------------------------------------------------------
 I/O Speed(1st run)    : 11.0 MB/s
 I/O Speed(2nd run)    : 13.3 MB/s
 I/O Speed(3rd run)    : 19.0 MB/s
 Average I/O speed     : 14.4 MB/s
----------------------------------------------------------------------

虽然是SD卡,但这个io还是有点低啊。

接下来我们换个测试的工具试一试

hdparm测试硬盘读性能

安装hdparm

sudo apt-get install hdparm

测试存储缓存和存储的读取速度

root@frhb53059ds:~# hdparm -Tt /dev/mmcblk0

/dev/mmcblk0:
 Timing cached reads:   1702 MB in  2.00 seconds = 851.65 MB/sec
 HDIO_DRIVE_CMD(identify) failed: Invalid argument
 Timing buffered disk reads: 130 MB in  3.00 seconds =  43.33 MB/sec

直接测试存储的读性能

root@frhb53059ds:~# hdparm -Tt --direct /dev/mmcblk0

/dev/mmcblk0:
 Timing O_DIRECT cached reads:    82 MB in  2.03 seconds =  40.48 MB/sec
 HDIO_DRIVE_CMD(identify) failed: Invalid argument
 Timing O_DIRECT disk reads: 122 MB in  3.02 seconds =  40.39 MB/sec

这里可以看到io其实并没有前面测试的那么低,但是也不是很高,对于一张SD的卡来说,只能算是中规中矩。

因为我测试的只是带SD卡的,SSD硬盘的我也没有办法测试。

LemonBench

LemonBench Server Test Tookit 20201005 Intl BetaVersion (C)iLemonrain. All Rights Reserved.
========================================================================================== 
 [Info] Bench Start Time: 2020-12-25 16:57:52
 [Info] Test Mode: Fast Mode
 

 -> System Information

 OS Release:            Raspbian GNU/Linux "Buster" 10.1 (armv7l)
 CPU Model:             ARMv7 Processor rev 3 (v7l)  0.00 GHz
 CPU Cache Size:        None
 CPU Number:            4 Cores
 VirtReady:             No
 Virt Type:             Dedicated with  BIOS
 Memory Usage:          258.71 MB / 3.81 GB
 Swap Usage:            0 KB / 100.00 MB
 Boot Device:           /dev/root
 Disk Usage:            2.25 GB / 15.02 GB
 CPU Usage:             2.9% used, 0.0% iowait, 0.0% steal
 Load (1/5/15min):      3.41 1.46 0.86 
 Uptime:                2 Days, 0 Hours, 24 Minutes, 58 Seconds
 Kernel Version:        4.19.75-v7l+
 Network CC Method:     cubic + pfifo_fast

 -> Network Infomation

 IPV6 - IP Address:     [FR] 2a00:c70:130:1::376
 IPV6 - ASN Info:       AS21409 (IKOULA - Ikoula Net SAS, FR)
 IPV6 - Region:         France France 
 
 -> Media Unlock Test 
 
 HBO Now:                               Yes
 Bahamut Anime:                         Failed (due to parse fail)
 Abema.TV:                              No
 Princess Connect Re:Dive Japan:        No
 BBC:                                   No
 BiliBili China Mainland Only:          Failed (due to unknown return) ()
 BiliBili Hongkong/Macau/Taiwan:        Failed (due to unknown return) ()
 Bilibili Taiwan Only:                  Failed (due to unknown return) ()

 -> CPU Performance Test (Fast Mode, 1-Pass @ 5sec)

 1 Thread Test:                 99 Scores
 4 Threads Test:                394 Scores

 -> Memory Performance Test (Fast Mode, 1-Pass @ 5sec)

 1 Thread - Read Test :         3966.86 MB/s
 1 Thread - Write Test:         3270.88 MB/s

 -> Disk Speed Test (4K Block/1M Block, Direct Mode)

 Test Name              Write Speed                             Read Speed
 100MB-4K Block         2.3 MB/s (551 IOPS, 46.38s)             8.9 MB/s (2181 IOPS, 11.73s)
 1GB-1M Block           12.2 MB/s (11 IOPS, 86.07s)             39.4 MB/s (37 IOPS, 26.63s)

 -> Speedtest.net Network Speed Test

 Node Name                      Upload Speed    Download Speed  Ping Latency    Server Name
 Speedtest Default              7.29 MB/s       26.94 MB/s      98.11 ms        fdcservers.net (Finland Helsinki)
 China, Beijing CU              5.29 MB/s       17.14 MB/s      332.91 ms       Beijing Unicom (China Beijing)
 China, Shanghai CT             1.39 MB/s       12.98 MB/s      256.43 ms       China Telecom (China Shanghai)
 China, Hangzhou CM             Fail: Latency test failed for both TCP, and no HTTP URL available.

 -> Traceroute Test (IPV6)

Traceroute to China, Beijing CU IPV6 (ICMP Mode, Max 30 Hop)
============================================================
traceroute to 2408:80f0:4100:2005::3 (2408:80f0:4100:2005::3), 30 hops max, 60 byte packets
 1  *
 2  2001:978:2:49::2  7.16 ms  AS174  Europe Regions cogentco.com
 3  2001:978:2:49::1  1.18 ms  AS174  Europe Regions cogentco.com
 4  2001:550:0:1000::9a36:2415  4.06 ms  AS174  United States cogentco.com
 5  *
 6  *
 7  *
 8  2001:978:2:7::d3:2  213.40 ms  AS174  Europe Regions cogentco.com
 9  *
10  *
11  *
12  *
13  *
14  2408:8000:1f10:3d03::3  297.27 ms  AS4808  China Beijing ChinaUnicom
15  2408:80f0:4100:2006::1  290.22 ms  AS4808  China Beijing ChinaUnicom
16  2408:80f0:4100:2006::b  289.94 ms  AS4808  China Beijing ChinaUnicom
17  *
18  *
19  2408:80f0:4100:2005::3  291.84 ms  AS4808  China Beijing ChinaUnicom

Traceroute to China, Shanghai CT IPV6 (ICMP Mode, Max 30 Hop)
============================================================
traceroute to 240e:18:10:a01::1 (240e:18:10:a01::1), 30 hops max, 60 byte packets
 1  *
 2  2001:978:2:49::2  6.73 ms  AS174  Europe Regions cogentco.com
 3  2001:7f8::53a1:0:1  5.39 ms  *  Germany de-cix.net
 4  2001:470:1:b72::2  7.94 ms  AS6939  United States he.net
 5  2001:7f8:1::a500:4134:1  20.28 ms  *  Netherlands ams-ix.net
 6  240e:0:a::cb:4a60  233.26 ms  AS4134  China ChinaTelecom
 7  240e:0:a::c9:cc9  233.47 ms  AS4134  China ChinaTelecom
 8  *
 9  *
10  240e:18:10:135b::89  291.40 ms  AS4134,AS4812  China Shanghai ChinaTelecom
11  240e:18:10:a01::1  284.45 ms  AS4134,AS4812  China Shanghai ChinaTelecom

Traceroute to China, Guangzhou CM IPV6 (ICMP Mode, Max 30 Hop)
============================================================
traceroute to 2409:8057:5c00:30::6 (2409:8057:5c00:30::6), 30 hops max, 60 byte packets
 1  *
 2  2001:978:2:49::2  11.91 ms  AS174  Europe Regions cogentco.com
 3  2a00:c70::1:13  1.62 ms  AS21409  France ikoula.com
 4  2a00:c70::1:12  1.25 ms  AS21409  France ikoula.com
 5  2001:668:0:3:ffff:1:0:c22  19.43 ms  AS3257  GTT.NET BACKBONE gtt.net
 6  2001:7f8:54::1:116  11.52 ms  *  France franceix.net
 7  2402:4f00:2000:100::3e  12.54 ms  AS58453  China Hong Kong ChinaMobile
 8  2402:4f00:2000:100::605  11.95 ms  AS58453  China Hong Kong ChinaMobile
 9  *
10  2409:8080:0:4:2f1:291::  252.64 ms  AS9808  China ChinaMobile
11  2409:8080:0:1:2c1:2f1:4:0  314.55 ms  AS9808  China ChinaMobile
12  2409:8080:0:1:201:2c1::  313.47 ms  AS9808  China ChinaMobile
13  *
14  2409:8080:1:2:301:303:4:0  341.05 ms  AS9808  China ChinaMobile
15  2409:8080:1:2:301:371:0:1  344.44 ms  AS9808  China ChinaMobile
16  2409:8055:0:1101::  349.24 ms  AS9808,AS56040  China Guangdong ChinaMobile
17  2409:8055:0:130c::  361.43 ms  AS9808,AS56040  China Guangdong ChinaMobile
18  2409:8055:1:b304::  353.23 ms  AS9808,AS56040  China Guangdong ChinaMobile
19  *
20  *
21  *
22  *
23  *
24  2409:8057:5c00:30::6  362.58 ms  AS9808,AS56040  China Guangdong ChinaMobile

Traceroute to China, Beijing CERNET2 IPV6 (ICMP Mode, Max 30 Hop)
============================================================
traceroute to 2001:da8:a0:1001::1 (2001:da8:a0:1001::1), 30 hops max, 60 byte packets
 1  *
 2  2001:978:2:49::2  141.83 ms  AS174  Europe Regions cogentco.com
 3  2001:7f8::53a1:0:1  6.97 ms  *  Germany de-cix.net
 4  2001:470:1:b72::2  7.97 ms  AS6939  United States he.net
 5  2001:7f8:43::6939:1  12.69 ms  *  France equinix.com
 6  2001:470:0:326::2  12.09 ms  AS6939  United States he.net
 7  2001:470:0:3f5::1  147.05 ms  AS6939  United States he.net
 8  2001:470:0:2ea::1  181.06 ms  AS6939  United States he.net
 9  2001:7fa:0:1::ca28:a1be  225.17 ms  *  China Hong Kong hkix.net
10  2001:252:0:108::1  219.20 ms  AS13030,AS23911  China Beijing CHINAEDU
11  *
12  2001:252:0:1::1  219.89 ms  AS13030,AS23911  China Beijing CHINAEDU
13  2001:da8:a0:1001::1  217.98 ms  AS13030,AS23910,AS24348  China Beijing CHINAEDU

Traceroute to China, Beijing CSTNET IPV6 (ICMP Mode, Max 30 Hop)
============================================================
traceroute to 2400:dd00:0:37::213 (2400:dd00:0:37::213), 30 hops max, 60 byte packets
 1  *
 2  2001:978:2:49::2  2.62 ms  AS174  Europe Regions cogentco.com
 3  2001:978:2:49::1  1.15 ms  AS174  Europe Regions cogentco.com
 4  2001:550:0:1000::9a36:274d  4.19 ms  AS174  United States cogentco.com
 5  *
 6  2001:550:0:1000::8275:319a  15.21 ms  AS174  United States cogentco.com
 7  *
 8  2402:4480:2:3::1f:2  169.96 ms  AS174  China Hong Kong cogentco.com
 9  2400:dd00:0:40::195  203.73 ms  AS13030,AS7497  China CSTNET
10  2400:dd00:0:33::200  204.39 ms  AS13030,AS7497  China CSTNET
11  2400:dd00:0:37::213  208.32 ms  AS13030,AS7497  China CSTNET


========================================================================================== 
 [Info] Bench Finish Time: 2020-12-25 17:04:04
 [Info] Time Elapsed: 372 seconds
 
[Info] Please wait, collecting results ...
[Info] Generating Report ...
[Info] Saving local Report ...
[Info] Generating Report URL ...
[Success] Report Generate Success!Please save the follwing link:
[Info] Report URL: https://paste.ubuntu.com/p/272wmv3FBR/

Superbench修复版

----------------------------------------------------------------------
 Superbench.sh -- https://www.oldking.net/350.html
 Mode  : Standard    Version : 1.1.6
 Usage : wget -qO- git.io/superbench.sh | bash
----------------------------------------------------------------------
 CPU Model            : ARMv7 Processor rev 3 (v7l)
 CPU Cores            : 4 Cores  MHz armv7l
 CPU Cache            :  
 OS                   : Raspbian GNU/Linux 10 (32 Bit) Dedicated
 Kernel               : 4.19.75-v7l+
 Total Space          : 2.3 GB / 15.2 GB 
 Total RAM            : 221 MB / 3906 MB (171 MB Buff)
 Total SWAP           : 0 MB / 99 MB
 Uptime               : 2 days 0 hour 33 min
 Load Average         : 0.01, 0.51, 0.71
 TCP CC               : cubic
 ASN & ISP            : AS29432, TREX Tampere Region Exchange Oy
 Organization         : TREX Tampere Region Exchange Oy
 Location             : Tampere, Finland / FI
 Region               : Pirkanmaa
----------------------------------------------------------------------
 I/O Speed( 1.0GB )   : 12.0 MB/s
 I/O Speed( 1.0GB )   : 13.5 MB/s
 I/O Speed( 1.0GB )   : 13.5 MB/s
 Average I/O Speed    : 13.0 MB/s
----------------------------------------------------------------------
 Node Name        Upload Speed      Download Speed      Latency     
 Speedtest.net    64.01 Mbit/s      159.36 Mbit/s       (*) 65.481 ms
 Fast.com         0.00 Mbit/s       123.9 Mbit/s        -           
 Nanjing 5G   CT  2.85 Mbit/s       25.12 Mbit/s        -          
 Hefei 5G     CT  0.86 Mbit/s       14.24 Mbit/s        -          
 Guangzhou 5G CT  0.75 Mbit/s       1.88 Mbit/s         -          
 TianJin 5G   CU  10.46 Mbit/s      8.48 Mbit/s         -          
 Shanghai 5G  CU  0.38 Mbit/s       6.02 Mbit/s         -          
 Guangzhou 5G CU  1.38 Mbit/s       3.10 Mbit/s         -          
 Tianjin 5G   CM  1.08 Mbit/s       15.42 Mbit/s        -          
 Nanjing 5G   CM  0.15 Mbit/s       1.99 Mbit/s         -          
 Hefei 5G     CM  8.56 Mbit/s       29.61 Mbit/s        -          
 Changsha 5G  CM  3.11 Mbit/s       8.75 Mbit/s         -          
----------------------------------------------------------------------
 Finished in  : 11 min 19 sec
 Timestamp    : 2020-12-26 01:18:14 GMT+8
 Results      : /root/bench.log
----------------------------------------------------------------------

UnixBench


   #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #
   #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #
   #    #  # #  #  #    ##            #####   #####   # #  #  #       ######
   #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #
   #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #
    ####   #    #  #  #    #          #####   ######  #    #   ####   #    #

   Version 5.1.3                      Based on the Byte Magazine Unix Benchmark

   Multi-CPU version                  Version 5 revisions by Ian Smith,
                                      Sunnyvale, CA, USA
   January 13, 2011                   johantheghost at yahoo period com

Use of uninitialized value in printf at ./Run line 1379.
Use of uninitialized value in printf at ./Run line 1380.
Use of uninitialized value in printf at ./Run line 1379.
Use of uninitialized value in printf at ./Run line 1380.
Use of uninitialized value in printf at ./Run line 1379.
Use of uninitialized value in printf at ./Run line 1380.
Use of uninitialized value in printf at ./Run line 1379.
Use of uninitialized value in printf at ./Run line 1380.
Use of uninitialized value in printf at ./Run line 1589.
Use of uninitialized value in printf at ./Run line 1590.
Use of uninitialized value in printf at ./Run line 1589.
Use of uninitialized value in printf at ./Run line 1590.
Use of uninitialized value in printf at ./Run line 1589.
Use of uninitialized value in printf at ./Run line 1590.
Use of uninitialized value in printf at ./Run line 1589.
Use of uninitialized value in printf at ./Run line 1590.

1 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

1 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

1 x Execl Throughput  1 2 3

1 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

1 x File Copy 256 bufsize 500 maxblocks  1 2 3

1 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

1 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

1 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

1 x Process Creation  1 2 3

1 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

1 x Shell Scripts (1 concurrent)  1 2 3

1 x Shell Scripts (8 concurrent)  1 2 3

4 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

4 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

4 x Execl Throughput  1 2 3

4 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

4 x File Copy 256 bufsize 500 maxblocks  1 2 3

4 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

4 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

4 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

4 x Process Creation  1 2 3

4 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

4 x Shell Scripts (1 concurrent)  1 2 3

4 x Shell Scripts (8 concurrent)  1 2 3

========================================================================
   BYTE UNIX Benchmarks (Version 5.1.3)

   System: frhb53059ds: GNU/Linux
   OS: GNU/Linux -- 4.19.75-v7l+ -- #1270 SMP Tue Sep 24 18:51:41 BST 2019
   Machine: armv7l (unknown)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: ARMv7 Processor rev 3 (v7l) (0.0 bogomips)
          
   CPU 1: ARMv7 Processor rev 3 (v7l) (0.0 bogomips)
          
   CPU 2: ARMv7 Processor rev 3 (v7l) (0.0 bogomips)
          
   CPU 3: ARMv7 Processor rev 3 (v7l) (0.0 bogomips)
          
   17:22:04 up 2 days, 49 min,  3 users,  load average: 0.25, 0.48, 0.87; runlevel 5

------------------------------------------------------------------------
Benchmark Run: Fri Dec 25 2020 17:22:04 - 17:49:58
4 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       10263945.8 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     2392.3 MWIPS (9.6 s, 7 samples)
Execl Throughput                                921.6 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        114105.6 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           31607.5 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        314621.8 KBps  (30.0 s, 2 samples)
Pipe Throughput                              161955.1 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  44656.3 lps   (10.0 s, 7 samples)
Process Creation                               1894.5 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   2413.9 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    738.7 lpm   (60.1 s, 2 samples)
System Call Overhead                         493884.9 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   10263945.8    879.5
Double-Precision Whetstone                       55.0       2392.3    435.0
Execl Throughput                                 43.0        921.6    214.3
File Copy 1024 bufsize 2000 maxblocks          3960.0     114105.6    288.1
File Copy 256 bufsize 500 maxblocks            1655.0      31607.5    191.0
File Copy 4096 bufsize 8000 maxblocks          5800.0     314621.8    542.5
Pipe Throughput                               12440.0     161955.1    130.2
Pipe-based Context Switching                   4000.0      44656.3    111.6
Process Creation                                126.0       1894.5    150.4
Shell Scripts (1 concurrent)                     42.4       2413.9    569.3
Shell Scripts (8 concurrent)                      6.0        738.7   1231.2
System Call Overhead                          15000.0     493884.9    329.3
                                                                   ========
System Benchmarks Index Score                                         321.8

------------------------------------------------------------------------
Benchmark Run: Fri Dec 25 2020 17:49:58 - 18:18:00
4 CPUs in system; running 4 parallel copies of tests

Dhrystone 2 using register variables       41043806.4 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     9567.3 MWIPS (9.7 s, 7 samples)
Execl Throughput                               2784.0 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        223332.6 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           61069.5 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        610855.1 KBps  (30.0 s, 2 samples)
Pipe Throughput                              609462.3 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 196298.7 lps   (10.0 s, 7 samples)
Process Creation                               4776.2 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   5876.7 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    808.2 lpm   (60.2 s, 2 samples)
System Call Overhead                        1881334.6 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   41043806.4   3517.0
Double-Precision Whetstone                       55.0       9567.3   1739.5
Execl Throughput                                 43.0       2784.0    647.4
File Copy 1024 bufsize 2000 maxblocks          3960.0     223332.6    564.0
File Copy 256 bufsize 500 maxblocks            1655.0      61069.5    369.0
File Copy 4096 bufsize 8000 maxblocks          5800.0     610855.1   1053.2
Pipe Throughput                               12440.0     609462.3    489.9
Pipe-based Context Switching                   4000.0     196298.7    490.7
Process Creation                                126.0       4776.2    379.1
Shell Scripts (1 concurrent)                     42.4       5876.7   1386.0
Shell Scripts (8 concurrent)                      6.0        808.2   1347.0
System Call Overhead                          15000.0    1881334.6   1254.2
                                                                   ========
System Benchmarks Index Score                                         868.9

超内存测试


2020-12-26 04:27:31 (4.26 MB/s) - ‘/root/vpsTest/memtester.cpp’ saved [615/615]

I will try my best to fill your RAM.
You have 3 seconds to quit (Ctrl+C)
10MB allocated
20MB allocated
30MB allocated
40MB allocated
50MB allocated
60MB allocated
70MB allocated
80MB allocated
90MB allocated
100MB allocated
110MB allocated
120MB allocated
130MB allocated
140MB allocated
150MB allocated
160MB allocated
170MB allocated
180MB allocated
190MB allocated
200MB allocated
210MB allocated
220MB allocated
230MB allocated
240MB allocated
250MB allocated
260MB allocated
270MB allocated
280MB allocated
290MB allocated
300MB allocated
310MB allocated
320MB allocated
330MB allocated
340MB allocated
350MB allocated
360MB allocated
370MB allocated
380MB allocated
390MB allocated
400MB allocated
410MB allocated
420MB allocated
430MB allocated
440MB allocated
450MB allocated
460MB allocated
470MB allocated
480MB allocated
490MB allocated
500MB allocated
510MB allocated
520MB allocated
530MB allocated
540MB allocated
550MB allocated
560MB allocated
570MB allocated
580MB allocated
590MB allocated
600MB allocated
610MB allocated
620MB allocated
630MB allocated
640MB allocated
650MB allocated
660MB allocated
670MB allocated
680MB allocated
690MB allocated
700MB allocated
710MB allocated
720MB allocated
730MB allocated
740MB allocated
750MB allocated
760MB allocated
770MB allocated
780MB allocated
790MB allocated
800MB allocated
810MB allocated
820MB allocated
830MB allocated
840MB allocated
850MB allocated
860MB allocated
870MB allocated
880MB allocated
890MB allocated
900MB allocated
910MB allocated
920MB allocated
930MB allocated
940MB allocated
950MB allocated
960MB allocated
970MB allocated
980MB allocated
990MB allocated
1000MB allocated
1010MB allocated
1020MB allocated
1030MB allocated
1040MB allocated
1050MB allocated
1060MB allocated
1070MB allocated
1080MB allocated
1090MB allocated
1100MB allocated
1110MB allocated
1120MB allocated
1130MB allocated
1140MB allocated
1150MB allocated
1160MB allocated
1170MB allocated
1180MB allocated
1190MB allocated
1200MB allocated
1210MB allocated
1220MB allocated
1230MB allocated
1240MB allocated
1250MB allocated
1260MB allocated
1270MB allocated
1280MB allocated
1290MB allocated
1300MB allocated
1310MB allocated
1320MB allocated
1330MB allocated
1340MB allocated
1350MB allocated
1360MB allocated
1370MB allocated
1380MB allocated
1390MB allocated
1400MB allocated
1410MB allocated
1420MB allocated
1430MB allocated
1440MB allocated
1450MB allocated
1460MB allocated
1470MB allocated
1480MB allocated
1490MB allocated
1500MB allocated
1510MB allocated
1520MB allocated
1530MB allocated
1540MB allocated
1550MB allocated
1560MB allocated
1570MB allocated
1580MB allocated
1590MB allocated
1600MB allocated
1610MB allocated
1620MB allocated
1630MB allocated
1640MB allocated
1650MB allocated
1660MB allocated
1670MB allocated
1680MB allocated
1690MB allocated
1700MB allocated
1710MB allocated
1720MB allocated
1730MB allocated
1740MB allocated
1750MB allocated
1760MB allocated
1770MB allocated
1780MB allocated
1790MB allocated
1800MB allocated
1810MB allocated
1820MB allocated
1830MB allocated
1840MB allocated
1850MB allocated
1860MB allocated
1870MB allocated
1880MB allocated
1890MB allocated
1900MB allocated
1910MB allocated
1920MB allocated
1930MB allocated
1940MB allocated
1950MB allocated
1960MB allocated
1970MB allocated
1980MB allocated
1990MB allocated
2000MB allocated
2010MB allocated
2020MB allocated
2030MB allocated
2040MB allocated
2050MB allocated
2060MB allocated
2070MB allocated
2080MB allocated
2090MB allocated
2100MB allocated
2110MB allocated
2120MB allocated
2130MB allocated
2140MB allocated
2150MB allocated
2160MB allocated
2170MB allocated
2180MB allocated
2190MB allocated
2200MB allocated
2210MB allocated
2220MB allocated
2230MB allocated
2240MB allocated
2250MB allocated
2260MB allocated
2270MB allocated
2280MB allocated
2290MB allocated
2300MB allocated
2310MB allocated
2320MB allocated
2330MB allocated
2340MB allocated
2350MB allocated
2360MB allocated
2370MB allocated
2380MB allocated
2390MB allocated
2400MB allocated
2410MB allocated
2420MB allocated
2430MB allocated
2440MB allocated
2450MB allocated
2460MB allocated
2470MB allocated
2480MB allocated
2490MB allocated
2500MB allocated
2510MB allocated
2520MB allocated
2530MB allocated
2540MB allocated
2550MB allocated
2560MB allocated
2570MB allocated
2580MB allocated
2590MB allocated
2600MB allocated
2610MB allocated
2620MB allocated
2630MB allocated
2640MB allocated
2650MB allocated
2660MB allocated
2670MB allocated
2680MB allocated
2690MB allocated
2700MB allocated
2710MB allocated
2720MB allocated
2730MB allocated
2740MB allocated
2750MB allocated
2760MB allocated
2770MB allocated
2780MB allocated
2790MB allocated
2800MB allocated
2810MB allocated
2820MB allocated
2830MB allocated
2840MB allocated
2850MB allocated
2860MB allocated
2870MB allocated
2880MB allocated
2890MB allocated
2900MB allocated
2910MB allocated
2920MB allocated
2930MB allocated
2940MB allocated
2950MB allocated
2960MB allocated
2970MB allocated
2980MB allocated
2990MB allocated
3000MB allocated
3010MB allocated
3020MB allocated
3030MB allocated
3040MB allocated
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
it: line 120: 17813 Aborted                 ${DIR}/memtester.out
...
clear...
OK

sysbench-cpu测试

Running the test with following options:
Number of threads: 1
Initializing random number generator from current time


Prime numbers limit: 10000

Initializing worker threads...

Threads started!

CPU speed:
    events per second:    99.23

General statistics:
    total time:                          10.0101s
    total number of events:              994

Latency (ms):
         min:                                   10.04
         avg:                                   10.07
         max:                                   10.51
         95th percentile:                       10.09
         sum:                                10006.73

Threads fairness:
    events (avg/stddev):           994.0000/0.00
    execution time (avg/stddev):   10.0067/0.00

ZBench

Provider: 
----------------------------------------------------------------------
CPU model            : ARMv7 Processor rev 3 (v7l)
Number of cores      : 4
CPU frequency        :  MHz
Total amount of Mem  : 3906 MB
Total amount of Swap : 99 MB
System uptime        : 2days, 12:17:32
IPaddr               : 芬兰 皮尔卡区 坦佩雷  trex.fi
OS                   : Raspbian GNU/Linux 10 armv7l 4.19.75-v7l+
----------------------------------------------------------------------
I/O speed(1st run)   : 13.0 MB/s
I/O speed(2nd run)   : 18.6 MB/s
I/O speed(3rd run)   : 16.9 MB/s
Average I/O speed    : 16.1667 MB/s
chmod: cannot access 'speedtest': No such file or directory
/root/vpsTest/91yuntest/bandwidth.sh: line 7: ./speedtest: No such file or directory
----------------------------------------------------------------------
----------------------------------------------------------------------
 Node Name        Upload Speed      Download Speed      Latency     
chmod: cannot access 'speedtest': No such file or directory
chmod: cannot access 'speedtest': No such file or directory
chmod: cannot access 'speedtest': No such file or directory
chmod: cannot access 'speedtest': No such file or directory
chmod: cannot access 'speedtest': No such file or directory
chmod: cannot access 'speedtest': No such file or directory
chmod: cannot access 'speedtest': No such file or directory
chmod: cannot access 'speedtest': No such file or directory
chmod: cannot access 'speedtest': No such file or directory
chmod: cannot access 'speedtest': No such file or directory
chmod: cannot access 'speedtest': No such file or directory
chmod: cannot access 'speedtest': No such file or directory
----------------------------------------------------------------------
Node Name                       IPv4 address            Download Speed
CacheFly                        2001:67c:2b0:db32:0:1:cdea:afaf
Linode, Tokyo, JP               2400:8902::4b
Linode, London, UK              2a01:7e00::4b
Linode, Fremont, CA             2600:3c01::4b
Softlayer, Seattle, WA          2607:f0d0:2001:3::2
Softlayer, Singapore, SG        2401:c900:1101:8::2
Softlayer, HongKong, CN         2401:c900:1201:60::2
----------------------------------------------------------------------
===测试 [北京电信(天翼云)] 到这台服务器的路由===
        *                       *                                                                 *         

===测试 [江苏徐州电信] 到这台服务器的路由===
        *                       *                                                                 *         

===测试 [广州电信(天翼云)] 到这台服务器的路由===
        *                       *                                                                 *         

===测试 [山东枣庄联通] 到这台服务器的路由===
        *                       *                                                                 *         

===测试 [江苏徐州联通] 到这台服务器的路由===
        *                       *                                                                 *         

===测试 [广东茂名联通] 到这台服务器的路由===
        *                       *                                                                 *         

===测试 [辽宁沈阳移动] 到这台服务器的路由===
        *                       *                                                                 *         

===测试 [江苏宿迁移动] 到这台服务器的路由===
        *                       *                                                                 *         

===测试 [广东茂名移动] 到这台服务器的路由===
        *                       *                                                                 *         

----------------------------------------------------------------------
===测试 [北京电信(天翼云)] 的回程路由===
/root/vpsTest/91yuntest/backtraceroute.sh: line 11: mtr: command not found



===测试 [江苏徐州电信] 的回程路由===
/root/vpsTest/91yuntest/backtraceroute.sh: line 11: mtr: command not found



===测试 [广州电信(天翼云)] 的回程路由===
/root/vpsTest/91yuntest/backtraceroute.sh: line 11: mtr: command not found



===测试 [山东枣庄联通] 的回程路由===
/root/vpsTest/91yuntest/backtraceroute.sh: line 11: mtr: command not found



===测试 [江苏徐州联通] 的回程路由===
/root/vpsTest/91yuntest/backtraceroute.sh: line 11: mtr: command not found



===测试 [广东茂名联通] 的回程路由===
/root/vpsTest/91yuntest/backtraceroute.sh: line 11: mtr: command not found



===测试 [辽宁沈阳移动] 的回程路由===
/root/vpsTest/91yuntest/backtraceroute.sh: line 11: mtr: command not found



===测试 [江苏宿迁移动] 的回程路由===
/root/vpsTest/91yuntest/backtraceroute.sh: line 11: mtr: command not found



===测试 [广东茂名移动] 的回程路由===
/root/vpsTest/91yuntest/backtraceroute.sh: line 11: mtr: command not found



----------------------------------------------------------------------
线路            最快节点                延迟    最慢节点                延迟    平均延迟
                                                                                                            
----------------------------------------------------------------------
PING speedtest.tokyo2.linode.com(2400:8902::4b (2400:8902::4b)) 56 data bytes
64 bytes from 2400:8902::4b (2400:8902::4b): icmp_seq=1 ttl=44 time=230 ms
64 bytes from 2400:8902::4b (2400:8902::4b): icmp_seq=2 ttl=44 time=230 ms
64 bytes from 2400:8902::4b (2400:8902::4b): icmp_seq=3 ttl=44 time=230 ms
64 bytes from 2400:8902::4b (2400:8902::4b): icmp_seq=4 ttl=44 time=230 ms
64 bytes from 2400:8902::4b (2400:8902::4b): icmp_seq=5 ttl=44 time=230 ms

--- speedtest.tokyo2.linode.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 10ms
rtt min/avg/max/mdev = 229.548/229.587/229.634/0.525 ms



PING hnd-jp-ping.vultr.com(108.61.201.151.vultr.com (2001:67c:2b0:db32:0:1:6c3d:c997)) 56 data bytes
64 bytes from 108.61.201.151.vultr.com (2001:67c:2b0:db32:0:1:6c3d:c997): icmp_seq=1 ttl=37 time=292 ms
64 bytes from 108.61.201.151.vultr.com (2001:67c:2b0:db32:0:1:6c3d:c997): icmp_seq=2 ttl=37 time=290 ms
64 bytes from 108.61.201.151.vultr.com (2001:67c:2b0:db32:0:1:6c3d:c997): icmp_seq=3 ttl=37 time=290 ms
64 bytes from 108.61.201.151.vultr.com (2001:67c:2b0:db32:0:1:6c3d:c997): icmp_seq=4 ttl=37 time=290 ms
64 bytes from 108.61.201.151.vultr.com (2001:67c:2b0:db32:0:1:6c3d:c997): icmp_seq=5 ttl=37 time=290 ms

--- hnd-jp-ping.vultr.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 5ms
rtt min/avg/max/mdev = 289.754/290.280/291.653/0.784 ms



connect: Network is unreachable



PING speedtest.kdatacenter.com(2001:67c:2b0:db32:0:1:af7e:768b (2001:67c:2b0:db32:0:1:af7e:768b)) 56 data bytes
64 bytes from 2001:67c:2b0:db32:0:1:af7e:768b (2001:67c:2b0:db32:0:1:af7e:768b): icmp_seq=1 ttl=36 time=290 ms
64 bytes from 2001:67c:2b0:db32:0:1:af7e:768b (2001:67c:2b0:db32:0:1:af7e:768b): icmp_seq=2 ttl=36 time=286 ms
64 bytes from 2001:67c:2b0:db32:0:1:af7e:768b (2001:67c:2b0:db32:0:1:af7e:768b): icmp_seq=3 ttl=36 time=288 ms
64 bytes from 2001:67c:2b0:db32:0:1:af7e:768b (2001:67c:2b0:db32:0:1:af7e:768b): icmp_seq=4 ttl=36 time=423 ms
64 bytes from 2001:67c:2b0:db32:0:1:af7e:768b (2001:67c:2b0:db32:0:1:af7e:768b): icmp_seq=5 ttl=36 time=294 ms

--- speedtest.kdatacenter.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4ms
rtt min/avg/max/mdev = 285.945/316.059/422.701/53.388 ms



connect: Network is unreachable



----------------------------------------------------------------------
make all
make[1]: Entering directory '/root/vpsTest/91yuntest/UnixBench'
Checking distribution of files
./pgms  exists
./src  exists
./testdir  exists
./tmp  exists
./results  exists
make[1]: Leaving directory '/root/vpsTest/91yuntest/UnixBench'
sh: 1: 3dinfo: not found

   #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #
   #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #
   #    #  # #  #  #    ##            #####   #####   # #  #  #       ######
   #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #
   #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #
    ####   #    #  #  #    #          #####   ######  #    #   ####   #    #

   Version 5.1.3                      Based on the Byte Magazine Unix Benchmark

   Multi-CPU version                  Version 5 revisions by Ian Smith,
                                      Sunnyvale, CA, USA
   January 13, 2011                   johantheghost at yahoo period com

Use of uninitialized value in printf at ./Run line 1379.
Use of uninitialized value in printf at ./Run line 1380.
Use of uninitialized value in printf at ./Run line 1379.
Use of uninitialized value in printf at ./Run line 1380.
Use of uninitialized value in printf at ./Run line 1379.
Use of uninitialized value in printf at ./Run line 1380.
Use of uninitialized value in printf at ./Run line 1379.
Use of uninitialized value in printf at ./Run line 1380.
Use of uninitialized value in printf at ./Run line 1589.
Use of uninitialized value in printf at ./Run line 1590.
Use of uninitialized value in printf at ./Run line 1589.
Use of uninitialized value in printf at ./Run line 1590.
Use of uninitialized value in printf at ./Run line 1589.
Use of uninitialized value in printf at ./Run line 1590.
Use of uninitialized value in printf at ./Run line 1589.
Use of uninitialized value in printf at ./Run line 1590.

1 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

1 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

1 x Execl Throughput  1 2 3

1 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

1 x File Copy 256 bufsize 500 maxblocks  1 2 3

1 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

1 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

1 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

1 x Process Creation  1 2 3

1 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

1 x Shell Scripts (1 concurrent)  1 2 3

1 x Shell Scripts (8 concurrent)  1 2 3

4 x Dhrystone 2 using register variables  1 2 3 4 5 6 7 8 9 10

4 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

4 x Execl Throughput  1 2 3

4 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

4 x File Copy 256 bufsize 500 maxblocks  1 2 3

4 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

4 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

4 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

4 x Process Creation  1 2 3

4 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

4 x Shell Scripts (1 concurrent)  1 2 3

4 x Shell Scripts (8 concurrent)  1 2 3

========================================================================
   BYTE UNIX Benchmarks (Version 5.1.3)

   System: frhb53059ds: GNU/Linux
   OS: GNU/Linux -- 4.19.75-v7l+ -- #1270 SMP Tue Sep 24 18:51:41 BST 2019
   Machine: armv7l (unknown)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: ARMv7 Processor rev 3 (v7l) (0.0 bogomips)
          
   CPU 1: ARMv7 Processor rev 3 (v7l) (0.0 bogomips)
          
   CPU 2: ARMv7 Processor rev 3 (v7l) (0.0 bogomips)
          
   CPU 3: ARMv7 Processor rev 3 (v7l) (0.0 bogomips)
          
   04:55:36 up 2 days, 12:22,  3 users,  load average: 1.46, 2.07, 1.37; runlevel 5

------------------------------------------------------------------------
Benchmark Run: Sat Dec 26 2020 04:55:36 - 05:23:30
4 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       10265855.8 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     2394.7 MWIPS (9.6 s, 7 samples)
Execl Throughput                                928.7 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        113390.3 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           31784.1 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        313233.3 KBps  (30.0 s, 2 samples)
Pipe Throughput                              162006.6 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  45580.5 lps   (10.0 s, 7 samples)
Process Creation                               1854.2 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   2417.8 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    738.0 lpm   (60.0 s, 2 samples)
System Call Overhead                         492464.1 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   10265855.8    879.7
Double-Precision Whetstone                       55.0       2394.7    435.4
Execl Throughput                                 43.0        928.7    216.0
File Copy 1024 bufsize 2000 maxblocks          3960.0     113390.3    286.3
File Copy 256 bufsize 500 maxblocks            1655.0      31784.1    192.0
File Copy 4096 bufsize 8000 maxblocks          5800.0     313233.3    540.1
Pipe Throughput                               12440.0     162006.6    130.2
Pipe-based Context Switching                   4000.0      45580.5    114.0
Process Creation                                126.0       1854.2    147.2
Shell Scripts (1 concurrent)                     42.4       2417.8    570.2
Shell Scripts (8 concurrent)                      6.0        738.0   1230.0
System Call Overhead                          15000.0     492464.1    328.3
                                                                   ========
System Benchmarks Index Score                                         321.8

------------------------------------------------------------------------
Benchmark Run: Sat Dec 26 2020 05:23:30 - 05:51:26
4 CPUs in system; running 4 parallel copies of tests

Dhrystone 2 using register variables       41083898.5 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     9569.4 MWIPS (9.6 s, 7 samples)
Execl Throughput                               2772.6 lps   (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        218649.6 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks           60546.5 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks        617088.6 KBps  (30.0 s, 2 samples)
Pipe Throughput                              608156.6 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                 195494.8 lps   (10.0 s, 7 samples)
Process Creation                               4803.1 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   5875.2 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    806.7 lpm   (60.2 s, 2 samples)
System Call Overhead                        1865943.0 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   41083898.5   3520.5
Double-Precision Whetstone                       55.0       9569.4   1739.9
Execl Throughput                                 43.0       2772.6    644.8
File Copy 1024 bufsize 2000 maxblocks          3960.0     218649.6    552.1
File Copy 256 bufsize 500 maxblocks            1655.0      60546.5    365.8
File Copy 4096 bufsize 8000 maxblocks          5800.0     617088.6   1063.9
Pipe Throughput                               12440.0     608156.6    488.9
Pipe-based Context Switching                   4000.0     195494.8    488.7
Process Creation                                126.0       4803.1    381.2
Shell Scripts (1 concurrent)                     42.4       5875.2   1385.7
Shell Scripts (8 concurrent)                      6.0        806.7   1344.4
System Call Overhead                          15000.0    1865943.0   1244.0
                                                                   ========
System Benchmarks Index Score                                         866.5

开启远程桌面VNC

树莓派和别的vps一个不同的地方就在于,树莓派可以开启内置的远程桌面,我们就可以像控制自己的电脑一样快乐的玩耍了。

我们在ssh连接上树莓派后,输入apt-get update更新一下。

然后给树莓派安装桌面服务

<code>sudo apt install xrdp

启动自带的配置程序:

sudo raspi-config 

启动后界面如下:

选择5 Interfacing Options Configure connections to peripherals

然后选择P3 VNC Enable/Disable graphicaL remote access to your Pi using ReaLVNC

yes后会来到ssh界面,选择y,一路看着屏幕上的命令跑下去即可。最后按ESC退出配置界面。

更改桌面默认分辨率

当在没有把树莓派连接到任何视频设备(电视或者显示屏)时候就会执行默认分辨率,而这个分辨率是VNC不支持的,所以会出现问题,报错cannot currently show the desktop

解决办法如下:

ssh输入sudo raspi-config进入树莓派设置界面,选择第7项 Advanced Options : Configure advanced settings 

接着选择第5项 A5 Resolution : Set a specific screen resolution

接着选择一个新的分辨率,比如 DMT Mode 82 1920×1080 60Hz 16:9

配置完后选择finish,然后reboot即可。注意,最后一步重启很重要,不要忽略。

安装 VNC Viewer

单启动树莓派 VNC 服务器还不够,还要在电脑上安装 VNC Viewer 客户端,才能连接树莓派远程桌面。

进入官网下载客户端:https://www.realvnc.com/en/connect/download/viewer/

要注意的是,我们现在安装的是 VNC Viewer 客户端,是装在电脑上的,所以选下面截图红框部分的版本就行,不要选到树莓派版本。

连接远程桌面

上述操作都完成后,可以开始连接远程桌面了。

在电脑上启动 VNC Viewer,点击左上角的“新建连接”菜单,填入树莓派的 ip 地址,点击“确定”。

接着,双击刚刚创建出来的连接,VNC Viewer 会弹窗让你输入树莓派的用户名和密码。输入后点确定。

如果连接后显示cannot currently show the desktop,那可能是树莓派内存空间不够用了,无法调出桌面

这里我遇到了这个问题,参考了以下博文:https://blog.csdn.net/m0_46339652/article/details/107314197

© 版权声明
THE END
喜欢就支持以下吧
点赞0赞赏 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容