VirtIOGPUBenchmarkComparison

TurnToJPG -->


1. HardWare Info

Detect the memory speed via sudo dmidecode --type 17.
Hardware 1(i7 9th machine):

CPU: Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz
Memory: MemTotal: 32709264 kB, 2666 MT/s

Hardware 2(i5 machine):

CPU: Intel(R) Core(TM) i5-4460  CPU @ 3.20GHz
Memory: MemTotal: 32808212 kB, 1600 MT/s 

Use the same ssd disk:

Disk 1: Crucial 500GB sata ssd. 
Disk 2: nvme ssd 256GB. 

Graphical Card Info(Detected via lspci | grep -i vga):

Card1: VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] (rev c4)
Card2: VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon Pro WX 5100]

2. System/SoftWare Info

System and Software info listed as:

500GB Crucial ssd:

$ cat /etc/issue
Ubuntu 20.04.4 LTS \n \l
$ uname -a
Linux hope 5.4.0-120-generic #136-Ubuntu SMP Fri Jun 10 13:40:48 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
$ qemu-system-x86_64 --version
QEMU emulator version 6.0.0 (Debian 1:6.0+dfsg-2expubuntu1~focal1.0)
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers
$ dpkg -l | grep -i virgl
ii  libvirglrenderer-dev:amd64                 0.8.2-1ubuntu1.1                      amd64        virtual GPU for KVM virtualization - headers
ii  libvirglrenderer1:amd64                    0.8.2-1ubuntu1.1                      amd64        virtual GPU for KVM virtualization

nvme ssd 256GB:

$ cat /etc/issue
Pop!_OS 21.10 \n \l
$ uname -a
Linux pop-os 5.17.15-76051715-generic #202206141358~1655919116~21.10~1db9e34 SMP PREEMPT Wed Jun 22 19 x86_64 x86_64 x86_64 GNU/Linux
$ qemu-system-x86_64 --version
QEMU emulator version 6.0.0 (Debian 1:6.0+dfsg-2expubuntu1.3)
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers
$ dpkg -l | grep -i virgl
ii  libvirglrenderer1:amd64                 0.8.2-5ubuntu0.21.10.1                                            amd64        virtual GPU for KVM virtualization

Software:

Unigine_Heaven-4.0
Unigine_Valley-1.0
glmark2
Redroid(Android 12)

3. Desktop Scenario

Case ListsDescriptionConclusion
3.1 BareMetal Comparison(WX5100)BareMetal Performance comparison using WX5100
3.2 BareMetal Comparison(5700xt)BareMetal Performance comparison using 5700xt
3.3 Virgl On i5-4460(WX5100)Virgl Performance on i5-4460 using WX5100
3.4 Virgl On i7-9700K(WX5100)Virgl Performance on i7-9700K using WX5100
3.5 Virgl On i5-4460(5700xt)Virgl Performance on i5-4460 using 5700xt
3.6 Virgl On i7-9700K(5700xt)Virgl Performance on i7-9700K using 5700xt

3.1 BareMetal Comparison(WX5100)

i5-4460i7-9700K
glmark29140, 9117, 91179730, 9651, 9660
Unigine_Valley FPS43, 42.4, 42.345.6, 45.0, 45.0
Unigine_Valley Score1800, 1773, 17691906, 1884, 1884
Unigine_Heaven FPS44.846.9
Unigine_Heaven Score11301182

Conclusion:

  1. WX5100 behaves almost the same on both i5/i7 platforms.
  2. i5’s cpu power won’t be a bottleneck in WX5100 scenario.

3.2 BareMetal Comparison(5700xt)

i5-4460i7-9700K
glmark213950, 14165, 1431522134, 22256, 22150
Unigine_Valley FPS105, 103.1, 102.9168.7, 169.1, 168.5
Unigine_Valley Score4391, 4315, 43047057, 7068, 7043
Unigine_Heaven FPS167.0171.1
Unigine_Heaven Score42064311
Unigine_Heaven FPS(4k)4342.8
Unigine_Heaven Score(4k)10831077

Conclusion:

  1. 5700xt runs smoother in i7 than on i5, perhaps i5 4th is too old for working together with 5700xt?(4 cores, bus width, etc).
  2. i5’s CPU/Memory becomes a bottleneck in 5700xt testing.

3.3 Virgl On i5-4460(WX5100)

i5-4460Virgl on i5-4460
glmark29140, 9117, 91172892, 2859, 2827
Unigine_Valley FPS43, 42.4, 42.340.8, 40.5, 40.6
Unigine_Valley Score1800, 1773, 17691707, 1694, 1699
Unigine_Heaven FPS44.842.2
Unigine_Heaven Score11301062

Conclusion:

  1. glmark2: Virgl is 31.3% of the baremetal performance.
  2. Unigine Valley/Unigine Heaven: Virgl performance almost the same as baremetal.

3.4 Virgl On i7-9700K(WX5100)

i7-9700KVirgl on i7-9700K
glmark29730, 9651, 96604274, 4262, 4320
Unigine_Valley FPS45.6, 45.0, 45.042.3, 41.6, 41.5
Unigine_Valley Score1906, 1884, 18841770, 1740, 1737
Unigine_Heaven FPS46.941.9
Unigine_Heaven Score11821055

Conclusion:

  1. glmark2: Virgl is 44.2% of the baremetal performance.
  2. Unigine Valley/Unigine Heaven: Virgl performance almost the same as baremetal.
  3. Comparing to 3.3: glmark2 will be improved using powerful CPU/Memory.

3.5 Virgl On i5-4460(5700xt)

i5-4460Virgl on i5-4460
glmark213950, 14165, 143152916, 3174, 2832
Unigine_Valley FPS105, 103.1, 102.961, 61.9, 60.9
Unigine_Valley Score4391, 4315, 43042551, 2588, 2548
Unigine_Heaven FPS167.089.7
Unigine_Heaven Score42062271
Unigine_Heaven FPS(4k)4337.8
Unigine_Heaven Score(4k)1083951

Conclusion:

  1. glmark2: Virgl is 21% of the baremetal performance.
  2. Unigine Valley/Unigine Heaven: Virgl is around 55%~60% of the baremetal performance, while in 4k behavior, 87% of the baremetal performance.

3.6 Virgl On i7-9700K(5700xt)

i7-9700KVirgl on i7-9700K
glmark222134, 22256, 221504152, 4256, 4238
Unigine_Valley FPS168.7, 169.1, 168.591.6, 91.5, 91.4
Unigine_Valley Score7057, 7068, 70433831, 3829, 3825
Unigine_Heaven FPS171.185.3
Unigine_Heaven Score43112149
Unigine_Heaven FPS(4k)42.835.6
Unigine_Heaven Score(4k)1077896

Conclusion:

  1. glmark2: Virgl is 19% of the baremetal performance.
  2. Unigine Valley/Unigine Heaven: Virgl is around 55%~60% of the baremetal performance, while in 4k behavior, 83% of the baremetal performance.

4. Android Scenario

Hardware/PlatformScore(scrcpy)Score(no scrcpy)
i7-9700K+5700xt616521(剑侠山谷: 309760 , 禅院悟道: 306761)617133(剑侠山谷: 310050, 禅院悟道: 307083)
Virgl on (i7-9700K+5700xt)442043(剑侠山谷: 223850 , 禅院悟道: 218193)564343(剑侠山谷: 289202, 禅院悟道:275141)
i5-4460+5700xt384564(剑侠山谷: 112763 , 禅院悟道: 221801)592030(剑侠山谷: 283705, 禅院悟道: 308255)
Virgl on (i5-4460+5700xt)227747(剑侠山谷: 108206 , 禅院悟道: 119541)445234(剑侠山谷: 214831, 禅院悟道:230403)
i7-9700K+WX5100567503(剑侠山谷: 265995 , 禅院悟道: 301508)585720(剑侠山谷: 277133, 禅院悟道: 308587)
Virgl on (i7-9700K+WX5100)412764(剑侠山谷: 210150 , 禅院悟道: 202614)499942(剑侠山谷: 257037, 禅院悟道: 242905)
i5-4460+WX5100401626(剑侠山谷: 166695 , 禅院悟道: 234931)572952(剑侠山谷: 267744, 禅院悟道: 305208)
Virgl on (i5-4460+WX5100)225837(剑侠山谷: 106071 , 禅院悟道: 119766)445202(剑侠山谷: 211450, 禅院悟道:233752)

Conclusion:

  1. Ludashi’s top score: around 61W, the maximum performance would be 1080p?
  2. scrcpy will greatly impact the performance when using Virgl under low-end CPU.
  3. virgl will be 85% for the best of bare metal on WX5100 on i7, 91% of bare metal on 5700xt on i7