This counter and some others are not available in VMWare virtual machines.
Some of the latest VMWare products do have an option to enable HW PMC however. Lot of caveats and limitations.
Я заинтересовался измерением параметра CPU cache-misses и наткнулся на этот инструмент, называемый perf. Я следил за вики и смог получить ошибки в кеше, когда эта команда запускается на физической машине
[root@supermicro ~]# perf stat -e cache-misses dd if=/dev/zero of=/dev/null count=1000000 1000000+0 records in 1000000+0 records out 512000000 bytes (512 MB) copied, 0.539799 s, 949 MB/s Performance counter stats for 'dd if=/dev/zero of=/dev/null count=1000000': 55,435 cache-misses 0.540932058 seconds time elapsed
При запуске на Linux VM, которая установлена на машине VMware ESX, я получил 0 кеш-промахов
[root@cw-centos62 fioFiles]# perf stat -e cache-misses dd if=/dev/zero of=/dev/null count=1000000 1000000+0 records in 1000000+0 records out 512000000 bytes (512 MB) copied, 0.593885 s, 862 MB/s Performance counter stats for 'dd if=/dev/zero of=/dev/null count=1000000': 0 cache-misses 0.595547968 seconds time elapsed
Это нормально? Если да, есть ли другой способ получить информацию о пропущенных кэшах для виртуальной машины Linux, которая установлена на VMware ESX?
Cw
This counter and some others are not available in VMWare virtual machines.
Some of the latest VMWare products do have an option to enable HW PMC however. Lot of caveats and limitations.