Linux/Benchmarks: Difference between revisions

From Wiki
mNo edit summary
Line 86: Line 86:
|+
|+
!
!
!ml-nuc i7
!ml-nuc
!nucserver i3
i7-1360P WSL
!netcup RS 1000 G9.5
!nucserver
!netcup black week
i3-6100u
!contabo VPS S
!edgeserver
Zotac N100
!netcup
RS 1000 G9.5
!netcup
black week
!contabo
VPS S
|-
|-
|fio read throughput BW
|fio read throughput BW
|5272 MB/s
|5272 MB/s
|539 MB/s
|539 MB/s
|
|2935 MB/s
|2935 MB/s
|3241 MB/s
|3241 MB/s
Line 102: Line 110:
|6341 MB/s
|6341 MB/s
|443 MB/s
|443 MB/s
|
|1474 MB/s
|1474 MB/s
|1403 MB/s
|1403 MB/s
Line 109: Line 118:
|309k
|309k
|91.0k
|91.0k
|
|33.7k
|33.7k
|100k
|100k
Line 116: Line 126:
|204k
|204k
|73.2k
|73.2k
|
|37.2k
|37.2k
|56.9k
|56.9k
Line 121: Line 132:
|-
|-
|sysbench singlecore
|sysbench singlecore
|9317
|9317evts
|2366
|2366evts
|9808evts
|4098
|4098
|4340
|4340
Line 128: Line 140:
|-
|-
|sysbench memory
|sysbench memory
|1092
|1092ms
|2257
|2257ms
|1268ms
|1941
|1941
|1710
|1710
|1945
|1945
|-
|-
|
|
|
|
|

Revision as of 11:16, 27 November 2023

HDD & SSD

  • bonnie++
apt install bonnie++
sudo bonnie -d /mnt/hdd -s 4000 -u root
  • fio
  • Read Throughput
sudo fio --name=read_throughput --directory=fiotest --numjobs=16 --size=1G --time_based \
--runtime=30s --ramp_time=2s --ioengine=libaio --direct=1 --verify=0 --bs=1M --iodepth=64 --rw=read \
--group_reporting=1 --iodepth_batch_submit=64 --iodepth_batch_complete_max=64
  • Write Throughput
sudo fio --name=write_throughput --directory=fiotest --numjobs=16 --size=1G --time_based \
--runtime=30s --ramp_time=2s --ioengine=libaio --direct=1 --verify=0 --bs=1M --iodepth=64 --rw=write \
--group_reporting=1 --iodepth_batch_submit=64 --iodepth_batch_complete_max=64
  • Read IOPS
sudo fio --name=read_iops --directory=fiotest --size=1G --time_based --runtime=30s --ramp_time=2s \
--ioengine=libaio --direct=1 --verify=0 --bs=4K --iodepth=256 --rw=randread --group_reporting=1 \
--iodepth_batch_submit=256  --iodepth_batch_complete_max=256
  • Write IOPS
sudo fio --name=write_iops --directory=fiotest --size=1G --time_based --runtime=30s --ramp_time=2s \
--ioengine=libaio --direct=1 --verify=0 --bs=4K --iodepth=256 --rw=randwrite --group_reporting=1 \
--iodepth_batch_submit=256  --iodepth_batch_complete_max=256


CPU

  • install sysbench
sudo apt install sysbench


  • Sysbench Singlecore
sysbench --test=cpu --cpu-max-prime=24576 --num-threads=1 run
  • Sysbench RAM bandwidth
sysbench --test=memory --memory-total-size=20000M run
sysbench cpu run
sysbench --cpu-max-prime=20000 --threads=6 cpu run
  • stress-ng
sudo apt install stress-ng

stress-ng --cpu 1 --cpu-method matrixprod --metrics-brief --perf -t 60
  • sysbench (generals systembenchmark) [1]

Mysql

apt install sysbench


prepare (ca. 2GB data):

sysbench --db-driver=mysql --mysql-host='vm-docker' --mysql-db=maria --mysql-user=maria --mysql-password=maria --tables=16 --table-size=1000000 /usr/share/sysbench/oltp_read_write.lua prepare


benchmark:

sysbench --db-driver=mysql --mysql-host='vm-docker' --mysql-db=maria --mysql-user=maria --mysql-password=maria --tables=16 --table-size=1000000 --threads=8 --time=60 --events=0 --report-interval=2 /usr/share/sysbench/oltp_read_write.lua run

Benchmarks

ml-nuc

i7-1360P WSL

nucserver

i3-6100u

edgeserver

Zotac N100

netcup

RS 1000 G9.5

netcup

black week

contabo

VPS S

fio read throughput BW 5272 MB/s 539 MB/s 2935 MB/s 3241 MB/s 6322 MB/s
fio write throughput BW 6341 MB/s 443 MB/s 1474 MB/s 1403 MB/s 137 MB/s
fio read iops 309k 91.0k 33.7k 100k 87.5k
fio write iops 204k 73.2k 37.2k 56.9k 1k
sysbench singlecore 9317evts 2366evts 9808evts 4098 4340 4413
sysbench memory 1092ms 2257ms 1268ms 1941 1710 1945

Links