zxxx 大佬有话说 :
美西 CN2 1C1G 20G 10Mbps 小鸡测试
本帖最后由 zxxx 于 2021-5-3 20:43 编辑
白票TabbyCloud的机器,闲来无事做个测试吧
1 CPU 核心
1G 內存
20 GB SSD 硬盤
10 Mbps 帶寬
1 獨立IPv4
Kvm 虛擬化
# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 58
model name : Intel Xeon E3-12xx v2 (Ivy Bridge, IBRS)
stepping : 9
microcode : 0x1
cpu MHz : 2493.988
cache size : 4096 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
apicid : 0
initial apicid: 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
# free -h
total used free sharedbuff/cache available
Mem: 991M 124M 314M 6.7M 552M 705M
Swap: 2.0G 0B 2.0G
# fdisk -l
Disk /dev/vda: 21.5 GB, 21474836480 bytes, 41943040 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0000425c
Device Boot Start End Blocks IdSystem
/dev/vda1 * 2048 2099199 1048576 83Linux
/dev/vda2 2099200 41943039 19921920 8eLinux LVM
Disk /dev/mapper/centos-root: 18.2 GB, 18249416704 bytes, 35643392 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/centos-swap: 2147 MB, 2147483648 bytes, 4194304 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
# fio –filename=test –rw=write –ioengine=libaio –direct=1 –blocksize=128K –size=2G –iodepth=32 –group_reporting –name=myjob
myjob: (g=0): rw=write, bs=(R) 128KiB-128KiB, (W) 128KiB-128KiB, (T) 128KiB-128KiB, ioengine=libaio, iodepth=32
fio-3.7
Starting 1 process
myjob: Laying out IO file (1 file / 2048MiB)
Jobs: 1 (f=1):
Run status group 0 (all jobs):
WRITE: bw=280MiB/s (293MB/s), 280MiB/s-280MiB/s (293MB/s-293MB/s), io=2048MiB (2147MB), run=7319-7319msec
# fio –filename=test –rw=read –ioengine=libaio –direct=1 –blocksize=128K –runtime=8 –iodepth=32 –group_reporting –name=myjob
myjob: (g=0): rw=read, bs=(R) 128KiB-128KiB, (W) 128KiB-128KiB, (T) 128KiB-128KiB, ioengine=libaio, iodepth=32
fio-3.7
Starting 1 process
Jobs: 1 (f=1):
myjob: (groupid=0, jobs=1): err= 0: pid=22604: Mon May3 09:57:00 2021
Run status group 0 (all jobs):
READ: bw=301MiB/s (316MB/s), 301MiB/s-301MiB/s (316MB/s-316MB/s), io=2048MiB (2147MB), run=6803-6803msec
# time dd if=/dev/zero of=1GB.bin bs=8k count=131072 &&
> time dd if=1GB.bin of=/dev/null bs=8k count=131072 &&
> time dd if=/dev/zero of=2GB.bin bs=16k count=131072 oflag=direct &&
> time dd if=2GB.bin of=/dev/null bs=16k count=131072 iflag=direct
131072+0 records in
131072+0 records out
1073741824 bytes (1.1 GB) copied, 1.52254 s, 705 MB/s
real 0m1.537s
user 0m0.086s
sys 0m0.758s
131072+0 records in
131072+0 records out
1073741824 bytes (1.1 GB) copied, 5.36623 s, 200 MB/s
real 0m5.370s
user 0m0.083s
sys 0m0.452s
131072+0 records in
131072+0 records out
2147483648 bytes (2.1 GB) copied, 55.1703 s, 38.9 MB/s
real 0m55.173s
user 0m0.142s
sys 0m5.529s
131072+0 records in
131072+0 records out
2147483648 bytes (2.1 GB) copied, 54.5821 s, 39.3 MB/s
real 0m54.584s
user 0m0.120s
sys 0m1.973s
zxxx 大佬有话说 :
bash <(curl -Lso- https://git.io/superspeed)
没什么惊喜,和描述的一模一样
https://s.pc.qq.com/tousu/img/20210503/8760347_1620037033.jpg
https://s.pc.qq.com/tousu/img/20210503/5719052_1620037203.jpg
https://s.pc.qq.com/tousu/img/20210503/4289413_1620039837.jpg
zxxx 大佬有话说 :
curl -fsL https://ilemonra.in/LemonBenchIntl | bash -s fast
Report URL: https://paste.ubuntu.com/p/x63gnpP7d3/
https://s.pc.qq.com/tousu/img/20210503/9654397_1620040699.jpg
zxxx 大佬有话说 :
wget -qO- bench.sh | bash
https://s.pc.qq.com/tousu/img/20210503/3539784_1620041601.jpg
zxxx 大佬有话说 :
curl -s https://raw.githubusercontent.com/masonr/yet-another-bench-script/master/yabs.sh | bash
Full Test | https://browser.geekbench.com/v5/cpu/7706536
https://s.pc.qq.com/tousu/img/20210503/1578842_1620043550.jpg
zxxx 大佬有话说 :
wget –no-check-certificate https://github.com/zq/unixbench/raw/master/unixbench.sh
chmod +x unixbench.sh
./unixbench.sh
System Benchmarks Index Score 864.3
========================================================================
BYTE UNIX Benchmarks (Version 5.1.3)
System: la1c1g: GNU/Linux
OS: GNU/Linux — 3.10.0-957.12.2.el7.x86_64 — #1 SMP Tue May 14 21:24:32 UTC 2019
Machine: x86_64 (x86_64)
Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
CPU 0: Intel Xeon E3-12xx v2 (Ivy Bridge, IBRS) (4988.0 bogomips)
x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET
20:10:03 up 11:24,2 users,load average: 0.52, 0.16, 0.08; runlevel 3
————————————————————————
Benchmark Run: Mon May 03 2021 20:10:03 – 20:38:19
1 CPU in system; running 1 parallel copy of tests
Dhrystone 2 using register variables 32627423.0 lps (10.0 s, 7 samples)
Double-Precision Whetstone 4196.9 MWIPS (10.0 s, 7 samples)
Execl Throughput 2880.3 lps (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 468701.8 KBps(30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 121319.2 KBps(30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 1458968.3 KBps(30.0 s, 2 samples)
Pipe Throughput 618730.0 lps (10.1 s, 7 samples)
Pipe-based Context Switching 153256.2 lps (10.0 s, 7 samples)
Process Creation 10238.5 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 4526.5 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 620.3 lpm (60.1 s, 2 samples)
System Call Overhead 489182.7 lps (10.0 s, 7 samples)
System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 32627423.0 2795.8
Double-Precision Whetstone 55.0 4196.9 763.1
Execl Throughput 43.0 2880.3 669.8
File Copy 1024 bufsize 2000 maxblocks 3960.0 468701.8 1183.6
File Copy 256 bufsize 500 maxblocks 1655.0 121319.2 733.0
File Copy 4096 bufsize 8000 maxblocks 5800.0 1458968.3 2515.5
Pipe Throughput 12440.0 618730.0 497.4
Pipe-based Context Switching 4000.0 153256.2 383.1
Process Creation 126.0 10238.5 812.6
Shell Scripts (1 concurrent) 42.4 4526.5 1067.6
Shell Scripts (8 concurrent) 6.0 620.3 1033.9
System Call Overhead 15000.0 489182.7 326.1
========
System Benchmarks Index Score 864.3
# ========================================================= #
# Script description and score comparison completed!
# For more information, please go to https://unixbench.org
# ========================================================= #