Re: [ovirt-users] perf tool ?

2017-05-25 Thread Yaniv Kaul
On Wed, May 24, 2017 at 5:12 PM, Fabrice Bacchella <
fabrice.bacche...@orange.fr> wrote:

> I'm playing with perf in vm and getting inconsistent result. But I wonder
> if it's a kvm, ovirt or hardware problem.
>
> On a ovirt's vm:
> $ sudo perf list | grep Hardware | wc -l
> 1
> $ lscpu
> ...
> Model name:Intel Core Processor (Haswell, no TSX)
>
> On another ovirt's vm:
> $ sudo perf list | grep Hardware | wc -l
> 27
> $ lscpu
> ...
> Model name:AMD Opteron 23xx (Gen 3 Class Opteron)
>
> On a libvirtm vm:
> sudo perf list | grep Hardware | wc -l
> 1
> lscpu
> ...
> Model name:Westmere E56xx/L56xx/X56xx (Nehalem-C)
> ...
>
> Look's like intel CPU don't expose hardware events. Is there an option on
> kvm or ovirt to help that ?
>

Perhaps you can try with a VDSM hook adding the relevant events[1] to the
libvirt XML?
Y.

[1] https://libvirt.org/formatdomain.html#elementsPerf

>
>
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] perf tool ?

2017-05-24 Thread Fabrice Bacchella
I'm playing with perf in vm and getting inconsistent result. But I wonder if 
it's a kvm, ovirt or hardware problem.

On a ovirt's vm:
$ sudo perf list | grep Hardware | wc -l
1
$ lscpu
...
Model name:Intel Core Processor (Haswell, no TSX)

On another ovirt's vm:
$ sudo perf list | grep Hardware | wc -l
27
$ lscpu
...
Model name:AMD Opteron 23xx (Gen 3 Class Opteron)

On a libvirtm vm:
sudo perf list | grep Hardware | wc -l
1
lscpu
...
Model name:Westmere E56xx/L56xx/X56xx (Nehalem-C)
...

Look's like intel CPU don't expose hardware events. Is there an option on kvm 
or ovirt to help that ?

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users