Reference blog post: CSDN-Violent-Ayang (author)-UNIX BENCH detailed installation and use steps
unix bench
wget http://175.6.32.4:88/soft/test/unixbench/unixbench-5.1.2.tar.gz
tar -xzvf unixbench-5.1.2.tar.gz
cd unixbench-5.1.2
vim Makefile
# 将 Makefile 中的GRAPHIC_TESTS = defined注释掉
sudo apt-get update
sudo apt-get install build-essential
./Run
Virtual machine 1 starts testing
results:
Virtual machine 3:
result:
perfmon
CPU:
win10
ubuntu1804:
sysbench
reference blog post: CSDN-GreefGu (author) Linux server common operation and maintenance performance test (3) CPU test super_pi, sysbench
curl -s https://packagecloud.io/install/repositories/akopytov/sysbench/script.deb.sh | sudo bash
sudo apt -y install sysbench make automake libtool pkg-config libaio-dev libssl-dev libmysqlclient-dev libpq-dev
sysbench cpu --time=60 run
Virtual Machine 1:
Result:
VM 3:
Result:
Memory:
Host:
VM1:
Result:
Virtual machine 3:
Network:
Host:
Ubuntu:
Reference blog post - Eddy_l (author) - netperf test
Virtual machine 1:
git clone https://github.com/multipath-tcp/netperf.git
cd netperf
./configure
sudo make
sudi make install
Virtual machine 1 as server
# 虚拟机1 指定端口号
sudo netserver -D -p 4659
Virtual machine 3:
sudo netperf -t TCP_STREAM -H 192.168.72.141 -l 5 -p 4659
Test results
Virtual machine 3 as server:
#虚拟机3
sudo netserver -D -p 4659
#虚拟机1
sudo netperf -t TCP_STREAM -H 192.168.122.78 -l 5 -p 4659
Test Results
Hard Disk:
Host
dd
sudo time dd if=/dev/zero of=/testw.dbf bs=4k count=100000
Reference blog post: Blog Garden - Cyril_Wu's (Author) - Use the dd command in Linux to test the hard disk read and write speed
Virtual machine 1:
Virtual machine 3:
sysbench
reference blog post - CSDN-Love, Bun (author) - use sysbench to test disk IO
sysbench --test=fileio --file-num=16 --file-block-size=16384 --file-total-size=2G prepare
sysbench --test=fileio --file-num=16 --file-block-size=16384 --file-total-size=2G --threads=4 --events=100000000 --time=180 --file-test-mode=seqwr --file-extra-flags=direct run
sysbench --test=fileio --file-num=16 --file-block-size=16384 --file-total-size=2G cleanup
virtual machine 1
virtual machine 3