Есть хост – NixOS.
Есть ВМ – Centos 7.
Запускаю ВМ такой командой:
qemu-system-x86_64 -hda VM/cent.img -boot d -m 25600 -enable-kvm -machine q35,accel=kvm -device intel-iommu -cpu host
Производительность процессора на хосте:
$ sysbench --test=cpu --max-requests --num-threads=12 run
WARNING: the --test option is deprecated. You can pass a script name or path on the command line without any options.
WARNING: --num-threads is deprecated, use --threads instead
sysbench 1.0.15 (using bundled LuaJIT 2.1.0-beta2)
Running the test with following options:
Number of threads: 12
Initializing random number generator from current time
Prime numbers limit: 10000
Initializing worker threads...
Threads started!
CPU speed:
    events per second: 14870.07
General statistics:
    total time:                          10.0008s
    total number of events:              148729
Latency (ms):
         min:                                    0.75
         avg:                                    0.81
         max:                                    6.43
         95th percentile:                        0.81
         sum:                               119984.65
Threads fairness:
    events (avg/stddev):           12394.0833/15.39
    execution time (avg/stddev):   9.9987/0.00
Производительность CPU в ВМ:
$ sysbench --test=cpu --max-requests --num-threads=12 run
WARNING: the --test option is deprecated. You can pass a script name or path on the command line without any options.
WARNING: --num-threads is deprecated, use --threads instead
sysbench 1.0.9 (using system LuaJIT 2.0.4)
Running the test with following options:
Number of threads: 12
Initializing random number generator from current time
Prime numbers limit: 10000
Initializing worker threads...
Threads started!
CPU speed:
    events per second:  1570.35
General statistics:
    total time:                          10.0032s
    total number of events:              15710
Latency (ms):
         min:                                  0.62
         avg:                                  7.59
         max:                                261.63
         95th percentile:                    121.08
         sum:                             119291.80
Threads fairness:
    events (avg/stddev):           1309.1667/4.90
    execution time (avg/stddev):   9.9410/0.04
Машина стартует в 64 бит, с iommu от Intel, с ускорением kvm. Чего ещё не хватает для такой же производительности, как на хосте?
Графика тоже тормозит порядочно, окружение на ВМ – XFCE.
QEMU версии 3.0.0. Версия BIOS последняя. МП – ASRock Z370 Pro 4.

