Google Compute Engine을 처음 사용했습니다. 필자는 Linux perf 도구를 사용하여 응용 프로그램의 다양한 성능 이벤트 측정을 수행하고 결국 프로파일 링 샘플링을 수행하고자합니다. Ubuntu 16.04 LTS VM에 Linux perf 도구를 설치했습니다. 그러나 사이클과 같은 기본 이벤트도 "지원되지 않음"으로 표시됩니다. 기본 KVM 하이퍼 바이저에는 가상 PMU 지원이 설정되어 있지 않은 것으로 추측됩니다. KVM이 기본값이 아닌 플래그 설정을 지원합니다. 이 방법을 사용할 수 있습니까?Google Compute Engine에서 Linux perf 이벤트 프로파일 링이 작동하지 않습니다.
# perf stat -e cycles -a sleep 10
Performance counter stats for 'system wide':
<not supported> cycles
10.000598339 seconds time elapsed
KVM 및 전원 관리에 대한 몇 가지 문서 : http://www.linux-kvm.org/page/Guest_PMU https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/ Virtualization_Tuning_and_Optimization_Guide/sect-Virtualization_Tuning_Optimization_Guide-Monitoring_Tools-vPMU.html "은 기본적으로 비활성화되어 있습니다." - PMU를 얻으려면 "cat/proc/cpuinfo | grep arch_perfmon','virsh dumpxml guest_name | grep", "cpu mode" – osgx