云耀云服务器L实例是华为云提供的一种轻量级云服务器,适用于轻量级、低负载且访问量适中的应用场景,如小型网站、Web应用、博客、论坛、云端开发环境等。
云耀云服务器L实例具有以下特点:
因为新购买的主机是没有初始密码的,首次需要重设
云服务器的安全组是一种虚拟防火墙,具备有状态的数据包过滤功能,用于设置云服务器、负载均衡、云数据库等实例的网络访问控制,控制实例级别的出入流量,是重要的网络安全隔离手段。云服务器要设置安全组的原因有以下几点:
保护云服务器的安全:通过配置安全组规则,可以允许或禁止安全组内的云服务器对公网或私网的访问,从而防止恶意攻击或非法访问。
实现云服务器之间的通信:通过配置安全组规则,可以实现同一地域内不同安全组之间或同一安全组内的云服务器之间的网络通信,从而满足不同应用场景的需求。
灵活调整网络策略:通过配置安全组规则,可以随时修改云服务器的网络策略,新规则立即生效,无需重启云服务器。
通过本地SSH远程登录云服务器需要放开TCP-22端口
UnixBench 是一款用于评估硬件系统平台性能的测试软件,可以为设备打分,方便进行决策。
UnixBench 可以通过一键安装脚本来快速安装和运行,无需手动下载源码包和编译。
UnixBench 会自动进行各项测试,并输出一个测试报表结果,包括各项指标和总分。
UnixBench支持多CPU系统的测试,默认的行为是测试两次,第一次是一个进程的测试,第二次是N份测试,N等于CPU个数。
基本测试项如下:
简单的2D和3D图形测试
测试系统的单任务性能
测试系统的多任务性能
测试系统并行处理的能力
CPU,内存,或者磁盘
sudo yum install gcc make perl
编译和安装UnixBench,您可以按照以下步骤操作:
weget https://github.com/kdlucas/byte-unixbench/archive/v5.1.3.tar.gz
tar -xzvf unixbench-5.1.3.tar.gz
cd unixbench-5.1.3/UnixBench
make
./Run
========================================================================
BYTE UNIX Benchmarks (Version 5.1.3)
System: zhu: GNU/Linux
OS: GNU/Linux -- 3.10.0-1160.92.1.el7.x86_64 -- #1 SMP Tue Jun 20 11:48:01 UTC 2023
Machine: x86_64 (x86_64)
Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
CPU 0: General Purpose Processor (5200.0 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
CPU 1: General Purpose Processor (5200.0 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
11:53:28 up 16:29, 2 users, load average: 0.00, 0.01, 0.05; runlevel 3
------------------------------------------------------------------------
Benchmark Run: Tue Sep 12 2023 11:53:28 - 12:21:36
2 CPUs in system; running 1 parallel copy of tests
Dhrystone 2 using register variables 40524249.9 lps (10.0 s, 7 samples)
Double-Precision Whetstone 4510.0 MWIPS (10.5 s, 7 samples)
Execl Throughput 3588.6 lps (29.9 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 771695.6 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 203207.4 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 2353102.9 KBps (30.0 s, 2 samples)
Pipe Throughput 1138738.8 lps (10.0 s, 7 samples)
Pipe-based Context Switching 75613.8 lps (10.0 s, 7 samples)
Process Creation 11629.4 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 7861.5 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 1608.2 lpm (60.0 s, 2 samples)
System Call Overhead 942490.1 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 40524249.9 3472.5
Double-Precision Whetstone 55.0 4510.0 820.0
Execl Throughput 43.0 3588.6 834.6
File Copy 1024 bufsize 2000 maxblocks 3960.0 771695.6 1948.7
File Copy 256 bufsize 500 maxblocks 1655.0 203207.4 1227.8
File Copy 4096 bufsize 8000 maxblocks 5800.0 2353102.9 4057.1
Pipe Throughput 12440.0 1138738.8 915.4
Pipe-based Context Switching 4000.0 75613.8 189.0
Process Creation 126.0 11629.4 923.0
Shell Scripts (1 concurrent) 42.4 7861.5 1854.1
Shell Scripts (8 concurrent) 6.0 1608.2 2680.3
System Call Overhead 15000.0 942490.1 628.3
========
System Benchmarks Index Score 1225.8
------------------------------------------------------------------------
Benchmark Run: Tue Sep 12 2023 12:21:36 - 12:49:43
2 CPUs in system; running 2 parallel copies of tests
Dhrystone 2 using register variables 81059992.4 lps (10.0 s, 7 samples)
Double-Precision Whetstone 9054.2 MWIPS (10.4 s, 7 samples)
Execl Throughput 7152.8 lps (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 1150464.0 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 302411.0 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 3527824.5 KBps (30.0 s, 2 samples)
Pipe Throughput 2244295.3 lps (10.0 s, 7 samples)
Pipe-based Context Switching 462419.4 lps (10.0 s, 7 samples)
Process Creation 25262.1 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 11599.9 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 1645.8 lpm (60.0 s, 2 samples)
System Call Overhead 1643634.0 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 81059992.4 6946.0
Double-Precision Whetstone 55.0 9054.2 1646.2
Execl Throughput 43.0 7152.8 1663.4
File Copy 1024 bufsize 2000 maxblocks 3960.0 1150464.0 2905.2
File Copy 256 bufsize 500 maxblocks 1655.0 302411.0 1827.3
File Copy 4096 bufsize 8000 maxblocks 5800.0 3527824.5 6082.5
Pipe Throughput 12440.0 2244295.3 1804.1
Pipe-based Context Switching 4000.0 462419.4 1156.0
Process Creation 126.0 25262.1 2004.9
Shell Scripts (1 concurrent) 42.4 11599.9 2735.8
Shell Scripts (8 concurrent) 6.0 1645.8 2742.9
System Call Overhead 15000.0 1643634.0 1095.8
========
System Benchmarks Index Score 2292.9
wget http://www.vpsmark.com/sh/unixbench.sh
sh ./unixbench.sh