Re: opcontrol does not create results

Michael Petlan <[email protected]>
Newsgroups gmane.linux.oprofile
Message-ID <[email protected]>
Hi Bernd,

both your kernel and oprofile are very old, so I am not sure whether the things
would work as they should. But anyway...

KVM based VM's are able to use hardware counters, but it has to be enabled in
the hypervisor's configuration. Otherwise you can use only the timer mode, which
should be enough for your purposes anyway.

Try the following:

opcontrol --deinit
modprobe oprofile timer=1
opcontrol --init
opcontrol --setup --no-vmlinux # or use your vmlinux file
opcontrol --start
## run what you want
opcontrol --stop
opcontrol --dump
opreport

This should give you samples despite the fact you're running it on a VM using
old versions. I hope it helps.

Regards,
Michael


----- Mensaje original -----
> De: "Bernd Lentes" <[email protected]>
> Para: [email protected]
> Enviados: Viernes, 6 de Marzo 2015 16:32:07
> Asunto: opcontrol does not create results
> 
> Hi ML,
> 
> i'm new to oprofile. I have a VM (KVM) running a SLES 10 SP4 64bit, 2.6.16.
> System has always between 5 and 15 percent si in top (SoftIrq), but I don't
> know why. I hope oprofile can help me finding the culprit. I setup oprofile
> as it follows:
> 
> idcc-devel:~ # opcontrol --status
> Daemon running: pid 21153
> Event 0: BUS_DATA_RCV:1000:0:1:1
> Event 0: HW_INT_RX:1000:0:1:1
> Separate options: library kernel
> vmlinux file: /boot/vmlinux-2.6.16.60-0.103.1-smp.gz
> Image filter: none
> Call-graph depth: 0
> 
> (events are not choosen especially, currently just for testing purpose).
> 
> This is my log:
> 
> idcc-devel:~ # cat /var/lib/oprofile/oprofiled.log
> oprofiled started Fri Mar  6 15:39:05 2015
> kernel pointer size: 8
> 
> Fri Mar  6 15:49:05 2015
> 
> Nr. sample dumps: 1
> Nr. non-backtrace samples: 0
> Nr. kernel samples: 0
> Nr. lost samples (no kernel/user): 0
> Nr. lost kernel samples: 0
> Nr. incomplete code structs: 0
> Nr. samples lost due to sample file open failure: 0
> Nr. samples lost due to no permanent mapping: 0
> Nr. event lost due to buffer overflow: 0
> Nr. samples lost due to no mapping: 0
> Nr. backtraces skipped due to no file mapping: 0
> Nr. samples lost due to no mm: 0
> Nr. samples lost cpu buffer overflow: 0
> Nr. samples received: 0
> Nr. backtrace aborted: 0
> 
> Fri Mar  6 15:59:05 2015
> 
> Nr. sample dumps: 3
> Nr. non-backtrace samples: 0
> Nr. kernel samples: 0
> Nr. lost samples (no kernel/user): 0
> Nr. lost kernel samples: 0
> Nr. incomplete code structs: 0
> Nr. samples lost due to sample file open failure: 0
> Nr. samples lost due to no permanent mapping: 0
> Nr. event lost due to buffer overflow: 0
> Nr. samples lost due to no mapping: 0
> Nr. backtraces skipped due to no file mapping: 0
> Nr. samples lost due to no mm: 0
> Nr. samples lost cpu buffer overflow: 0
> Nr. samples received: 0
> Nr. backtrace aborted: 0
> 
> Fri Mar  6 16:09:05 2015
> 
> Nr. sample dumps: 5
> Nr. non-backtrace samples: 0
> Nr. kernel samples: 0
> Nr. lost samples (no kernel/user): 0
> Nr. lost kernel samples: 0
> Nr. incomplete code structs: 0
> Nr. samples lost due to sample file open failure: 0
> Nr. samples lost due to no permanent mapping: 0
> Nr. event lost due to buffer overflow: 0
> Nr. samples lost due to no mapping: 0
> Nr. backtraces skipped due to no file mapping: 0
> Nr. samples lost due to no mm: 0
> Nr. samples lost cpu buffer overflow: 0
> Nr. samples received: 0
> Nr. backtrace aborted: 0
> 
> no results. I read that oprofile is able to profile virtual machines using
> KVM, just vm's in VMWare don't work. I use KVM.
> 
> idcc-devel:~ # l /var/lib/oprofile/samples/current/
> total 8
> drwxr-xr-x 2 root root 4096 Mar  6 15:39 ./
> drwxr-xr-x 6 root root 4096 Mar  6 15:39 ../
> 
> How can I get profile data ?
> 
> I'm using oprofile 0.9.1-15.
> 
> 
> Bernd
> 
> --
> Bernd Lentes
> 
> Systemadministration
> Institut für Entwicklungsgenetik
> Gebäude 35.34 - Raum 208
> HelmholtzZentrum münchen
> [email protected]
> phone: +49 89 3187 1241
> fax:   +49 89 3187 2294
> http://www.helmholtz-muenchen.de/idg
> 
> Je suis Charlie
> 
> 
> Helmholtz Zentrum München
> Deutsches Forschungszentrum für Gesundheit und Umwelt (GmbH)
> Ingolstädter Landstr. 1
> 85764 Neuherberg
> www.helmholtz-muenchen.de
> Aufsichtsratsvorsitzende: MinDir´in Bärbel Brumme-Bothe
> Geschäftsführer: Prof. Dr. Günther Wess, Dr. Nikolaus Blum, Dr. Alfons Enhsen
> Registergericht: Amtsgericht München HRB 6466
> USt-IdNr: DE 129521671
> 
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> oprofile-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/oprofile-list
> 

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
oprofile-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oprofile-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.