Finally we compare the result for the standard unixbench benchmark in different setups.
In this case, the host is a clear winner with the guest with hugepages support and virtio driver coming in second. Looking at the details of the unixbench results shows that the host is a clear winner when it comes to the various file copying tests.This is in contrast with the bonnie++ tests where the host wasn’t even faster than the guests.
The effect of disabling hugepages for the guest is approximately 10% in this benchmark. Surprisingly, the IDE disk emulation also comes relatively close in this benchmark.
Next up is a kernel compilation with 8 threads. I am using 8 threads here to make sure that the processor is completely busy and because there is a slight performance increase compared to using only 4 threads on my quad core hyperthreading CPU.
In this case the host loses. This is probably due again to the additional caching provided by the host for each guest which effectively speeds up the guests. The guest with hugepages is in this case again the fastests of all guest configuration and IDE emulation is again not that bad compared to the bonnie++ benachmarks. Apparently, write performance is not a dominating factor for a kernel compile. In this test also, hugepages provide a performance benefit (in this case 7%).