gem5-users@gem5.org

The gem5 Users mailing list

View all threads

The PerfKvmCounter::attach failed error came up when I followed the tutorial to run the x86-FS script

M
maokerang
Mon, Jun 20, 2022 3:55 AM

Hi, I am really confused by the error these days, could u help me immediately?
The PerfKvmCounter::attach failed error both occurred in gem5 version 21.2.1.1 and gem5 version 22.0.0.1.

Details:

These two files's md5sum are same as the value which in the

resources.json(https://gem5.googlesource.com/public/gem5-resources/+/16d0599683fdadaa69fa049e417da2dab92c2017/resources.json)

root@76ff3d8f98ef:~/.cache/gem5#mailto:root@76ff3d8f98ef:~/.cache/gem5# md5sum x86-linux-kernel-5.4.49
60a53c7d47d7057436bf4b9df707a841  x86-linux-kernel-5.4.49
root@76ff3d8f98ef:~/.cache/gem5#mailto:root@76ff3d8f98ef:~/.cache/gem5# md5sum x86-ubuntu-18.04-img
90e363abf0ddf22eefa2c7c5c9391c49  x86-ubuntu-18.04-img

But,when I run the x86 FS model example script´╝îit showed the error below.

root@76ff3d8f98ef:~/gem5# build/X86/gem5.opt configs/example/gem5_library/x86-ubuntu-run-with-kvm.py
gem5 Simulator System.  https://www.gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 version 22.0.0.1
gem5 compiled Jun 20 2022 01:37:09
gem5 started Jun 20 2022 03:28:17
gem5 executing on 76ff3d8f98ef, pid 11037
command line: build/X86/gem5.opt configs/example/gem5_library/x86-ubuntu-run-with-kvm.py

warn: <orphan X86Board>.kvm_vm already has parent not resetting parent.
Note: kvm_vm is not a parameter of X86Board
warn: (Previously declared as <orphan X86Board>.processor.kvm_vm
warn: The simulate package is still in a beta state. The gem5 project does not guarantee the APIs within this package will remain consistent across upcoming releases.
Global frequency set at 1000000000000 ticks per second
build/X86/mem/dram_interface.cc:692: warn: DRAM device capacity (8192 Mbytes) does not match the address range assigned (4096 Mbytes)
build/X86/sim/kernel_workload.cc:46: info: kernel located at: /root/.cache/gem5/x86-linux-kernel-5.4.49
build/X86/base/statistics.hh:280: warn: One of the stats is a legacy stat. Legacy stat is a stat that does not belong to any statistics::Group. Legacy stat is deprecated.
0: board.pc.south_bridge.cmos.rtc: Real-time clock set to Sun Jan  1 00:00:00 2012
board.pc.com_1.device: Listening for connections on port 3459
build/X86/dev/intel_8254_timer.cc:128: warn: Reading current count from inactive timer.
0: board.remote_gdb: listening for remote gdb on port 7003
build/X86/cpu/kvm/base.cc:150: info: KVM: Coalesced MMIO disabled by config.
build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 2
build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 3
build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 4
build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 5
build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 6
build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 8
build/X86/cpu/kvm/base.cc:150: info: KVM: Coalesced MMIO disabled by config.
build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 2
build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 3
build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 4
build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 5
build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 6
build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 8
build/X86/sim/simulate.cc:194: info: Entering event queue @ 0.  Starting simulation...
build/X86/cpu/kvm/perfevent.ccbuild/X86/cpu/kvm/perfevent.cc:183: panic: PerfKvmCounter::attach failed (1)
Memory Usage: 3885212 KBytes
:183: panic: PerfKvmCounter::attach failed (1)
Memory Usage: 3885212 KBytes
Program aborted at tick Aborted (core dumped)

For the script in configs/example/gem5_library/x86-ubuntu-run-with-kvm.py

I only add the three line in the header of the script for downloading the resource.

# coding=utf8
import ssl
ssl._create_default_https_context = ssl._create_unverified_context

The host info:

root@76ff3d8f98ef:~/.cache/gem5#mailto:root@76ff3d8f98ef:~/.cache/gem5# uname -a
Linux 76ff3d8f98ef 4.15.0-166-generic #174-Ubuntu SMP Wed Dec 8 19:07:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

Hi, I am really confused by the error these days, could u help me immediately? The PerfKvmCounter::attach failed error both occurred in gem5 version 21.2.1.1 and gem5 version 22.0.0.1. Details: ## These two files's md5sum are same as the value which in the ## resources.json(https://gem5.googlesource.com/public/gem5-resources/+/16d0599683fdadaa69fa049e417da2dab92c2017/resources.json) root@76ff3d8f98ef:~/.cache/gem5#<mailto:root@76ff3d8f98ef:~/.cache/gem5#> md5sum x86-linux-kernel-5.4.49 60a53c7d47d7057436bf4b9df707a841 x86-linux-kernel-5.4.49 root@76ff3d8f98ef:~/.cache/gem5#<mailto:root@76ff3d8f98ef:~/.cache/gem5#> md5sum x86-ubuntu-18.04-img 90e363abf0ddf22eefa2c7c5c9391c49 x86-ubuntu-18.04-img ## But,when I run the x86 FS model example script´╝îit showed the error below. root@76ff3d8f98ef:~/gem5# build/X86/gem5.opt configs/example/gem5_library/x86-ubuntu-run-with-kvm.py gem5 Simulator System. https://www.gem5.org gem5 is copyrighted software; use the --copyright option for details. gem5 version 22.0.0.1 gem5 compiled Jun 20 2022 01:37:09 gem5 started Jun 20 2022 03:28:17 gem5 executing on 76ff3d8f98ef, pid 11037 command line: build/X86/gem5.opt configs/example/gem5_library/x86-ubuntu-run-with-kvm.py warn: <orphan X86Board>.kvm_vm already has parent not resetting parent. Note: kvm_vm is not a parameter of X86Board warn: (Previously declared as <orphan X86Board>.processor.kvm_vm warn: The simulate package is still in a beta state. The gem5 project does not guarantee the APIs within this package will remain consistent across upcoming releases. Global frequency set at 1000000000000 ticks per second build/X86/mem/dram_interface.cc:692: warn: DRAM device capacity (8192 Mbytes) does not match the address range assigned (4096 Mbytes) build/X86/sim/kernel_workload.cc:46: info: kernel located at: /root/.cache/gem5/x86-linux-kernel-5.4.49 build/X86/base/statistics.hh:280: warn: One of the stats is a legacy stat. Legacy stat is a stat that does not belong to any statistics::Group. Legacy stat is deprecated. 0: board.pc.south_bridge.cmos.rtc: Real-time clock set to Sun Jan 1 00:00:00 2012 board.pc.com_1.device: Listening for connections on port 3459 build/X86/dev/intel_8254_timer.cc:128: warn: Reading current count from inactive timer. 0: board.remote_gdb: listening for remote gdb on port 7003 build/X86/cpu/kvm/base.cc:150: info: KVM: Coalesced MMIO disabled by config. build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 2 build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 3 build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 4 build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 5 build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 6 build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 8 build/X86/cpu/kvm/base.cc:150: info: KVM: Coalesced MMIO disabled by config. build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 2 build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 3 build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 4 build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 5 build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 6 build/X86/arch/x86/cpuid.cc:181: warn: x86 cpuid family 0x0000: unimplemented function 8 build/X86/sim/simulate.cc:194: info: Entering event queue @ 0. Starting simulation... build/X86/cpu/kvm/perfevent.ccbuild/X86/cpu/kvm/perfevent.cc:183: panic: PerfKvmCounter::attach failed (1) Memory Usage: 3885212 KBytes :183: panic: PerfKvmCounter::attach failed (1) Memory Usage: 3885212 KBytes Program aborted at tick Aborted (core dumped) ## For the script in configs/example/gem5_library/x86-ubuntu-run-with-kvm.py ## I only add the three line in the header of the script for downloading the resource. ``` # coding=utf8 import ssl ssl._create_default_https_context = ssl._create_unverified_context ``` ## The host info: root@76ff3d8f98ef:~/.cache/gem5#<mailto:root@76ff3d8f98ef:~/.cache/gem5#> uname -a Linux 76ff3d8f98ef 4.15.0-166-generic #174-Ubuntu SMP Wed Dec 8 19:07:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux