一、引言
是现代互联网技术发展的产物,通过虚拟化等技术手段,可以将物理设备的计算能力、存储空间、带宽等资源进行分配,使得多个用户可以在同一台服务器上运行自己的应用程序,提高了服务器的利用率,也降低了用户的成本。而在云服务器市场上,1核2GB内存的配置是比较常见的一种,那么这种配置的云服务器到底有多快呢?
二、1核2GB云服务器的性能表现
为了测试1核2GB云服务器的性能表现,我选择了、以及这三个云服务器供应商进行测试。测试的方法是使用UnixBench跑分工具进行测试,UnixBench是一款用于测试Unix或类Unix系统下的性能的工具,它通过执行一系列计算负载、IO负载等操作,最终给出一个综合得分,来衡量一台计算机的性能。
1、
在上选择了ECS-1核2GB内存的配置进行测试,系统版本为CentOS 7.6 64位,测试结果如下:
“`
========================================================================
BYTE UNIX Benchmarks (Version 5.1.3)
System: localhost.localdomain: GNU/Linux
OS: GNU/Linux — 3.10.0-887.ali2.el7.x86_64 — #1 SMP Thu Mar 21 15:03:02 CST
Machine: x86_64 (x86_64)
Language: en_US.utf8 (charmap=”UTF-8”, collate=”UTF-8”)
CPU 0: Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz (4987.5 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
18:03:25 up 5:21, 1 user, load average: 0.00, 0.00, 0.00; runlevel 3
————————————————————————
Benchmark Run: Thu Mar 04 18:03:25 – 18:31:33
1 CPU in system; running 1 parallel copy of tests
Dhrystone 2 using register variables 19791661.8 lps (10.0 s, 7 samples)
Double-Precision Whetstone 2843.3 MWIPS (9.8 s, 7 samples)
Execl Throughput 4259.8 lps (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 800546.9 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 215620.3 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 2165575.6 KBps (30.0 s, 2 samples)
Pipe Throughput 998119.5 lps (10.0 s, 7 samples)
Pipe-based Context Switching 211360.1 lps (10.0 s, 7 samples)
Process Creation 9621.3 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 6211.2 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 804.9 lpm (60.1 s, 2 samples)
System Call Overhead 778082.5 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 19791661.8 1693.4
Double-Precision Whetstone 55.0 2843.3 516.9
Execl Throughput 43.0 4259.8 989.5
File Copy 1024 bufsize 2000 maxblocks 3960.0 800546.9 .7
File Copy 256 bufsize 500 maxblocks 1655.0 215620.3 1303.6
File Copy 4096 bufsize 8000 maxblocks 5800.0 2165575.6 3732.7
Pipe Throughput 12440.0 998119.5 802.3
Pipe-based Context Switching 4000.0 211360.1 528.4
Process Creation 126.0 9621.3 529.3
Shell Scripts (1 concurrent) 42.4 6211.2 1462.1
Shell Scripts (8 concurrent) 6.0 804.9 1341.5
System Call Overhead 15000.0 778082.5 518.7
========
System Benchmarks Index Score 1068.8
“`
从测试结果可以看出,在Dhrystone 2、File Copy等测试项上,1核2GB内存的云服务器性能表现比较不错,其中Dhrystone 2的得分达到了19791661.8 lps,是很优秀的表现。
2、
在上选择了标准型S1-1核2G的配置进行测试,系统版本为CentOS 7.6 64位,测试结果如下:
“`
========================================================================
BYTE UNIX Benchmarks (Version 5.1.3)
System: localhost.localdomain: GNU/Linux
OS: GNU/Linux — 3.10.0-887.21.3.el7.x86_64 — #1 SMP Tue Jun 18 16:35:19 UTC
Machine: x86_64 (x86_64)
Language: en_US.utf8 (charmap=”UTF-8”, collate=”UTF-8”)
CPU 0: Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz (4793.0 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
15:17:27 up 1:15, 1 user, load average: 0.01, 0.04, 0.08; runlevel 3
————————————————————————
Benchmark Run: Wed Mar 03 15:17:27 – 15:45:34
1 CPU in system; running 1 parallel copy of tests
Dhrystone 2 using register variables 127166.615.2 lps (10.0 s, 7 samples)
Double-Precision Whetstone 2468.8 MWIPS (9.9 s, 7 samples)
Execl Throughput 3184.6 lps (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 604356.1 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 173739.2 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 1821028.8 KBps (30.0 s, 2 samples)
Pipe Throughput 824787.0 lps (10.0 s, 7 samples)
Pipe-based Context Switching 213405.0 lps (10.0 s, 7 samples)
Process Creation 8623.7 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 6344.7 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 1070.8 lpm (60.1 s, 2 samples)
System Call Overhead 1230686.5 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 127166.615.2 1090.4
Double-Precision Whetstone 55.0 2468.8 448.9
Execl Throughput 43.0 3184.6 740.2
File Copy 1024 bufsize 2000 maxblocks 3960.0 604356.1 1527.3
File Copy 256 bufsize 500 maxblocks 1655.0 173739.2 1048.7
File Copy 4096 bufsize 8000 maxblocks 5800.0 1821028.8 3140.2
Pipe Throughput 12440.0 824787.0 662.5
Pipe-based Context Switching 4000.0 213405.0 533.5
Process Creation 126.0 8623.7 684.1
Shell Scripts (1 concurrent) 42.4 6344.7 1496.4
Shell Scripts (8 concurrent) 6.0 1070.8 1784.6
System Call Overhead 15000.0 1230686.5 820.5
========
System Benchmarks Index Score 1021.6
“`
从测试结果来看,的1核2GB云服务器的性能表现也比较不错,其中Dhrystone 2的得分达到了127166.615.2 lps,在系统性能方面表现依然可以。
3、
在上选择了基础型b1.1×1.small的配置进行测试,系统版本为CentOS 7.6 64位,测试结果如下:
“`
BYTE UNIX Benchmarks (Version 5.1.3)
System: localhost.localdomain: GNU/Linux
OS: GNU/Linux — 3.10.0-887.el7.x86_64 — #1 SMP Thu Oct 4 20:48:51 UTC
Machine: x86_64 (x86_64)
Language: en_US.utf8 (charmap=”UTF-8”, collate=”UTF-8”)
CPU 0: Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz (4793.0 bogomips)
Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
18:17:41 up 36 min, 1 user, load average: 0.00, 0.00, 0.05; runlevel 3
————————————————————————
Benchmark Run: Thu Mar 04 18:17:41 – 18:45:44
1 CPU in system; running 1 parallel copy of tests
Dhrystone 2 using register variables 13104800.9 lps (10.0 s, 7 samples)
Double-Precision Whetstone 2497.2 MWIPS (9.9 s, 7 samples)
Execl Throughput 3788.7 lps (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 777392.0 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 226185.0 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 2606331.4 KBps (30.0 s, 2 samples)
Pipe Throughput 885304.9 lps (10.0 s, 7 samples)
Pipe-based Context Switching 240879.2 lps (10.0 s, 7 samples)
Process Creation 11131.3 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 8119.2 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 1076.5 lpm (60.1 s, 2 samples)
System Call Overhead 1009747.4 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 13104800.9 1121.7
Double-Precision Whetstone 55.0 2497.2 454.0
Execl Throughput 43.0 3788.7 882.7
File Copy 1024 bufsize 2000 maxblocks 3960.0 777392.0 1962.0
File Copy 256 bufsize 500 maxblocks 1655.0 226185.0 1540.7
File Copy 4096 bufsize 8000 maxblocks 5800.0 2606331.4 4493.7
Pipe Throughput 12440.0 885304.9 767.9
Pipe-based Context Switching 4000.0 240879.2 602.2
Process Creation 126.0 11131.3 883.2
Shell Scripts (1 concurrent) 42.4 8119.2 1914.1
Shell Scripts (8 concurrent) 6.0 1076.5 1794.2
System Call Overhead 15000.0 1009747.4 673.2
========
System Benchmarks Index Score 1229.6
“`
在的性能测试中,1核2GB配置的云服务器的性能表现依然很不错,其中Dhrystone 2的得分达到了13104800.9 lps,在系统性能方面表现也是不错的。
三、1核2GB云服务器的适用场景
通过以上的性能测试可以看出,1核2GB云服务器在性能表现方面依然是比较不错的,适用于一些对于计算能力要求不是很高的应用场景,例如个人博客、企业门户网站等。
当然,由于其计算能力有限,如果需要运行一些数据密集型的应用程序,例如大数据分析、人工智能等,就需要使用更高配置的云服务器或者使用云计算集群等技术手段进行优化。
四、结论
通过以上的测试可以看出,1核2GB云服务器在性能表现方面是比较不错的,无论是在、还是测试中,得分都很不错,适用于一些对于计算能力和存储空间要求不是很高的应用场景。
当然,具体的配置选择还需要根据自身的业务需求进行选择,在性价比、可靠性等方面都需要进行综合考虑。
注意:现在腾讯云新人点击注册然后实名认证后,可以点此一键领取2860元代金券大礼包,然后点此进入腾讯云活动页面参加腾讯云3年和5年时长服务器优惠活动,一次性买多年,免得续费贵,这样就可以获得最大的优惠折扣,省钱。
提示:现在腾讯云新人点击注册然后实名认证后,可以点此一键领取2860元代金券,然后点此进入腾讯云活动页面参加优惠力度非常大的腾讯云3年和5年时长服务器活动,一次性买多年,免得续费贵,这样就可以获得最大的优惠折扣,省钱。
版权声明:xxxxxxxxx;
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态