spread the knowledge
Virtio auf FreeBSD Performance
Ich habe mit folgenden Servern Benchmark Tests gemacht:
- Cloud 1 Default Setup (2Gb RAM, 2Ghz CPU, IDE)
- Cloud 2 mit Virtio (2Gb RAM, 2Ghz CPU, Block Disks)
- DELL (2Ghz CPU, SAS im Raid-1)
- Supermicro (2GB RAM, 1.66GHz CPU, IDE)
Die Resultate schwanken zwar ziemlich, man kann aber klar erkennen, dass die Performance in der Cloud massiv besser ist, wenn man Virtio einsetzt.
Harddisk I/O
Als erstes eine Partition auswählen, auf der genug Platz vorhanden ist
cd /usr
Test 1 mit 1GB:
time dd bs=1024 if=/dev/zero of=tstfile count=1M
Test 2 mit 3GB:
time dd bs=1024 if=/dev/zero of=tstfile count=3M
Resultate:
Cloud 1
Test 1:
1048576+0 records in
1048576+0 records out
1073741824 bytes transferred in 50.350646 secs (21325284 bytes/sec)
real 0m50.660s
user 0m0.437s
sys 0m31.931s
Test 2:
3145728+0 records in
3145728+0 records out
3221225472 bytes transferred in 121.666910 secs (26475773 bytes/sec)
real 2m1.712s
user 0m1.123s
sys 0m36.355s
Cloud Virtio
Test 1:
1048576+0 records in
1048576+0 records out
1073741824 bytes transferred in 36.707252 secs (29251490 bytes/sec)
real 0m36.749s
user 0m0.554s
sys 0m27.930s
Test 2:
3145728+0 records in
3145728+0 records out
3221225472 bytes transferred in 49.488476 secs (65090416 bytes/sec)
real 0m49.504s
user 0m1.075s
sys 0m26.257s
Dell
Test 1:
1048576+0 records in
1048576+0 records out
1073741824 bytes transferred in 33.347607 secs (32198467 bytes/sec)
real 0m33.639s
user 0m0.139s
sys 0m4.417s
Test 2:
3145728+0 records in
3145728+0 records out
3221225472 bytes transferred in 84.670683 secs (38044165 bytes/sec)
real 1m24.673s
user 0m0.351s
sys 0m13.559s
Supermicro
Test 1:
1048576+0 records in
1048576+0 records out
1073741824 bytes transferred in 36.815024 secs (29165860 bytes/sec)
real 0m36.880s
user 0m0.905s
sys 0m16.478s
Test 2:
3145728+0 records in
3145728+0 records out
3221225472 bytes transferred in 99.639293 secs (32328867 bytes/sec)
real 1m39.643s
user 0m3.165s
sys 0m50.768s
Danach nicht vergessen, die Test-Files zu löschen 😉
rm tstfile
Netzwerkkarte