Re: [gem5-users] PerfKvmCounter Error

2020-02-10 Thread Jason Lowe-Power
 You need to run that command *on the host*, not on the guest.

Jason

On Mon, Feb 10, 2020 at 11:58 AM Muhammet Abdullah Soytürk <
muhammetabdullahsoyt...@gmail.com> wrote:

> Yes I did but still I am getting the same error message. I have tried
>
> echo "12345" |  echo -1 > /proc/sys/kernel/perf_event_paranoid
>
> and
>
> echo "12345" | sudo sysctl -w kernel.perf_event_paranoid=1
>
> in the equivalent file to npb-install.sh. It does not change anything.
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] PerfKvmCounter Error

2020-02-10 Thread Muhammet Abdullah Soytürk
By the way I am using vmlinux-4.19.83.

Muhammet Abdullah Soytürk , 10 Şub 2020
Pzt, 19:45 tarihinde şunu yazdı:

> Yes I did but still I am getting the same error message. I have tried
>
> echo "12345" |  echo -1 > /proc/sys/kernel/perf_event_paranoid
>
> and
>
> echo "12345" | sudo sysctl -w kernel.perf_event_paranoid=1
>
> in the equivalent file to npb-install.sh. It does not change anything.
>
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] PerfKvmCounter Error

2020-02-10 Thread Muhammet Abdullah Soytürk
Yes I did but still I am getting the same error message. I have tried

echo "12345" |  echo -1 > /proc/sys/kernel/perf_event_paranoid

and

echo "12345" | sudo sysctl -w kernel.perf_event_paranoid=1

in the equivalent file to npb-install.sh. It does not change anything.
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] PerfKvmCounter Error

2020-02-10 Thread Jason Lowe-Power
Did you do what the error suggests?

  This error may be caused by a too restrictive setting   in the file
'/proc/sys/kernel/perf_event_paranoid'  The default value was changed to 2
in kernel 4.6  A value greater than 1 prevents gem5 from making  the
syscall to perf_event_open.

You need to run something like the following (as root).

# echo -1 > /proc/sys/kernel/perf_event_paranoid

Cheers.
Jason

On Mon, Feb 10, 2020 at 7:42 AM Muhammet Abdullah Soytürk <
muhammetabdullahsoyt...@gmail.com> wrote:

> Hi all,
>
> I am trying to run PageRank application in GAP Benchmark with full system
> simulation. I followed the following npb tutorial:
> https://gem5art.readthedocs.io/en/latest/tutorials/npb-tutorial.html. and
> changed the necessary files to make my application work but I am getting a
> KVM error that I have not seen before. Does anyone have any idea about
> solving it? I could not find anything online.
>
> Here is the simerr file content:
>
> warn: DRAM device capacity (32768 Mbytes) does not match the address range
> assigned (128 Mbytes)
> info: kernel located at: linux-stable/vmlinux-4.19.83
> warn: Sockets disabled, not accepting terminal connections
> warn: Sockets disabled, not accepting gdb connections
> warn: CoherentXBar system.cpu.mmucache.mmubus has no snooping ports
> attached!
> warn: Reading current count from inactive timer.
> info: KVM: Coalesced MMIO disabled by config.
> warn: x86 cpuid family 0x: unimplemented function 2
> warn: x86 cpuid family 0x: unimplemented function 3
> warn: x86 cpuid family 0x: unimplemented function 4
> warn: x86 cpuid family 0x: unimplemented function 5
> warn: x86 cpuid family 0x: unimplemented function 6
> info: Entering event queue @ 0.  Starting simulation...
>
>
>
>
>
> *panic: PerfKvmCounter::attach recieved error EACCESS  This error may be
> caused by a too restrictive setting  in the file
> '/proc/sys/kernel/perf_event_paranoid'  The default value was changed to 2
> in kernel 4.6  A value greater than 1 prevents gem5 from making  the
> syscall to perf_event_open*
> Memory Usage: 4532020 KBytes
> Program aborted at tick 0
> --- BEGIN LIBC BACKTRACE ---
> gem5/build/X86/gem5.opt(_Z15print_backtracev+0x2c)[0x559fcda3ae0c]
> gem5/build/X86/gem5.opt(_Z12abortHandleri+0x4a)[0x559fcda4d07a]
> /lib/x86_64-linux-gnu/libpthread.so.0(+0x12890)[0x7fa31b84b890]
> /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7fa31a059e97]
> /lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7fa31a05b801]
> gem5/build/X86/gem5.opt(+0x51e42f)[0x559fcca7f42f]
>
> gem5/build/X86/gem5.opt(_ZN14PerfKvmCounter6attachER20PerfKvmCounterConfigii+0x127)[0x559fcd981a47]
>
> gem5/build/X86/gem5.opt(_ZN10BaseKvmCPU13setupCountersEv+0xcc)[0x559fcd9753ac]
>
> gem5/build/X86/gem5.opt(_ZN10BaseKvmCPU13startupThreadEv+0x57)[0x559fcd9767c7]
> gem5/build/X86/gem5.opt(_ZN10EventQueue10serviceOneEv+0xd9)[0x559fcda43019]
> gem5/build/X86/gem5.opt(_Z9doSimLoopP10EventQueue+0x87)[0x559fcda63917]
> gem5/build/X86/gem5.opt(+0x1502c4f)[0x559fcda63c4f]
> /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xbd66f)[0x7fa31aa7f66f]
> /lib/x86_64-linux-gnu/libpthread.so.0(+0x76db)[0x7fa31b8406db]
> /lib/x86_64-linux-gnu/libc.so.6(clone+0x3f)[0x7fa31a13c88f]
> --- END LIBC BACKTRACE ---
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] PerfKvmCounter error

2018-07-15 Thread Ciro Santilli
Glad you found it.

How to check gem5 version: git log.

You must build learn to build your own from source and do it often, or else
it becomes hard to give help.

On Sun, Jul 15, 2018 at 10:11 PM, Ryan Wang  wrote:

> I figured it out, i have to use sudo
>
> On Sat, Jul 14, 2018 at 8:16 PM, Ryan Wang  wrote:
>
>> Hi Ciro,
>> I am using the image and kernel provided from the gem5 website, see the
>> command line below. Not sure how to check the gem5 version, but I
>> downloaded it 3 months ago.
>>
>> build/X86/gem5.opt configs/example/fs.py --disk-image=linux-x86.img
>> --cpu-type=X86KvmCPU --kernel=x86_64-vmlinux-2.6.22.9
>>
>> On Sat, Jul 14, 2018 at 8:19 AM, Ciro Santilli 
>> wrote:
>>
>>> What is your image, kernel, gem5 revision, full gem5 command line, are
>>> there any terminal messages.
>>>
>>> On Sat, Jul 14, 2018 at 2:43 AM, Ryan Wang 
>>> wrote:
>>>
 Hi,
 I was trying to use x86KvmCPU, and got a panic in the beginning of the
 run: panic: PerfKvmCounter::open failed (13)

 I saw that there are some patches from Jason that should solve a
 different error seen by some others, which I don't think related to this.
 I have kvm enabled in my machine and I can run qemu in kvm mode without
 problem.

 Has anyone seen this before? Does anyone have any clue of which part I
 could have missed?



 -- info: KVM: Coalesced MMIO disabled by config.
 warn: x86 cpuid family 0x: unimplemented function 2
 warn: x86 cpuid family 0x: unimplemented function 3
 warn: x86 cpuid family 0x: unimplemented function 4
 warn: x86 cpuid family 0x: unimplemented function 5
 warn: x86 cpuid family 0x: unimplemented function 6
 info: Entering event queue @ 0. #1. Starting simulation...
   0: system.cpu: Attaching cycle counter...
 panic: PerfKvmCounter::open failed (13)
 Memory Usage: 4490108 KBytes
 Program aborted at tick 0

 Your help is appreciated.

 Regards,
 Ryan

 ___
 gem5-users mailing list
 gem5-users@gem5.org
 http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

>>>
>>>
>>> ___
>>> gem5-users mailing list
>>> gem5-users@gem5.org
>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>>
>>
>>
>>
>> --
>> Regards,
>> Ryan
>>
>
>
>
> --
> Regards,
> Ryan
>
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] PerfKvmCounter error

2018-07-15 Thread Ryan Wang
I figured it out, i have to use sudo

On Sat, Jul 14, 2018 at 8:16 PM, Ryan Wang  wrote:

> Hi Ciro,
> I am using the image and kernel provided from the gem5 website, see the
> command line below. Not sure how to check the gem5 version, but I
> downloaded it 3 months ago.
>
> build/X86/gem5.opt configs/example/fs.py --disk-image=linux-x86.img
> --cpu-type=X86KvmCPU --kernel=x86_64-vmlinux-2.6.22.9
>
> On Sat, Jul 14, 2018 at 8:19 AM, Ciro Santilli 
> wrote:
>
>> What is your image, kernel, gem5 revision, full gem5 command line, are
>> there any terminal messages.
>>
>> On Sat, Jul 14, 2018 at 2:43 AM, Ryan Wang 
>> wrote:
>>
>>> Hi,
>>> I was trying to use x86KvmCPU, and got a panic in the beginning of the
>>> run: panic: PerfKvmCounter::open failed (13)
>>>
>>> I saw that there are some patches from Jason that should solve a
>>> different error seen by some others, which I don't think related to this.
>>> I have kvm enabled in my machine and I can run qemu in kvm mode without
>>> problem.
>>>
>>> Has anyone seen this before? Does anyone have any clue of which part I
>>> could have missed?
>>>
>>>
>>>
>>> -- info: KVM: Coalesced MMIO disabled by config.
>>> warn: x86 cpuid family 0x: unimplemented function 2
>>> warn: x86 cpuid family 0x: unimplemented function 3
>>> warn: x86 cpuid family 0x: unimplemented function 4
>>> warn: x86 cpuid family 0x: unimplemented function 5
>>> warn: x86 cpuid family 0x: unimplemented function 6
>>> info: Entering event queue @ 0. #1. Starting simulation...
>>>   0: system.cpu: Attaching cycle counter...
>>> panic: PerfKvmCounter::open failed (13)
>>> Memory Usage: 4490108 KBytes
>>> Program aborted at tick 0
>>>
>>> Your help is appreciated.
>>>
>>> Regards,
>>> Ryan
>>>
>>> ___
>>> gem5-users mailing list
>>> gem5-users@gem5.org
>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>>
>>
>>
>> ___
>> gem5-users mailing list
>> gem5-users@gem5.org
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>
>
>
> --
> Regards,
> Ryan
>



-- 
Regards,
Ryan
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] PerfKvmCounter error

2018-07-14 Thread Ryan Wang
Hi Ciro,
I am using the image and kernel provided from the gem5 website, see the
command line below. Not sure how to check the gem5 version, but I
downloaded it 3 months ago.

build/X86/gem5.opt configs/example/fs.py --disk-image=linux-x86.img
--cpu-type=X86KvmCPU --kernel=x86_64-vmlinux-2.6.22.9

On Sat, Jul 14, 2018 at 8:19 AM, Ciro Santilli 
wrote:

> What is your image, kernel, gem5 revision, full gem5 command line, are
> there any terminal messages.
>
> On Sat, Jul 14, 2018 at 2:43 AM, Ryan Wang  wrote:
>
>> Hi,
>> I was trying to use x86KvmCPU, and got a panic in the beginning of the
>> run: panic: PerfKvmCounter::open failed (13)
>>
>> I saw that there are some patches from Jason that should solve a
>> different error seen by some others, which I don't think related to this.
>> I have kvm enabled in my machine and I can run qemu in kvm mode without
>> problem.
>>
>> Has anyone seen this before? Does anyone have any clue of which part I
>> could have missed?
>>
>>
>>
>> -- info: KVM: Coalesced MMIO disabled by config.
>> warn: x86 cpuid family 0x: unimplemented function 2
>> warn: x86 cpuid family 0x: unimplemented function 3
>> warn: x86 cpuid family 0x: unimplemented function 4
>> warn: x86 cpuid family 0x: unimplemented function 5
>> warn: x86 cpuid family 0x: unimplemented function 6
>> info: Entering event queue @ 0. #1. Starting simulation...
>>   0: system.cpu: Attaching cycle counter...
>> panic: PerfKvmCounter::open failed (13)
>> Memory Usage: 4490108 KBytes
>> Program aborted at tick 0
>>
>> Your help is appreciated.
>>
>> Regards,
>> Ryan
>>
>> ___
>> gem5-users mailing list
>> gem5-users@gem5.org
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>
>
>
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>



-- 
Regards,
Ryan
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] PerfKvmCounter error

2018-07-14 Thread Ciro Santilli
What is your image, kernel, gem5 revision, full gem5 command line, are
there any terminal messages.

On Sat, Jul 14, 2018 at 2:43 AM, Ryan Wang  wrote:

> Hi,
> I was trying to use x86KvmCPU, and got a panic in the beginning of the
> run: panic: PerfKvmCounter::open failed (13)
>
> I saw that there are some patches from Jason that should solve a different
> error seen by some others, which I don't think related to this.
> I have kvm enabled in my machine and I can run qemu in kvm mode without
> problem.
>
> Has anyone seen this before? Does anyone have any clue of which part I
> could have missed?
>
>
>
> -- info: KVM: Coalesced MMIO disabled by config.
> warn: x86 cpuid family 0x: unimplemented function 2
> warn: x86 cpuid family 0x: unimplemented function 3
> warn: x86 cpuid family 0x: unimplemented function 4
> warn: x86 cpuid family 0x: unimplemented function 5
> warn: x86 cpuid family 0x: unimplemented function 6
> info: Entering event queue @ 0. #1. Starting simulation...
>   0: system.cpu: Attaching cycle counter...
> panic: PerfKvmCounter::open failed (13)
> Memory Usage: 4490108 KBytes
> Program aborted at tick 0
>
> Your help is appreciated.
>
> Regards,
> Ryan
>
> ___
> gem5-users mailing list
> gem5-users@gem5.org
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
___
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users