RE: opcontrol does not create results
"Lentes, Bernd" <[email protected]>
| Newsgroups | gmane.linux.oprofile |
|---|---|
| Message-ID | <[email protected]> |
Hi Michael,
thanks for providing me with this information. I made one step ahead.
This is my result:
idcc-devel:~ # /usr/bin/opreport
CPU: CPU with timer interrupt, speed 0 MHz (estimated)
Profiling through timer interrupt
TIMER:0|
samples| %|
------------------
4901 98.0396 vmlinux-2.6.16.60-0.103.1-smp.gz
40 0.8002 atop
TIMER:0|
samples| %|
------------------
22 55.0000 libz.so.1.2.3
15 37.5000 vmlinux-2.6.16.60-0.103.1-smp.gz
2 5.0000 libc-2.4.so
1 2.5000 jbd
35 0.7001 sshd
TIMER:0|
samples| %|
------------------
35 100.000 vmlinux-2.6.16.60-0.103.1-smp.gz
12 0.2400 bash
TIMER:0|
samples| %|
------------------
10 83.3333 vmlinux-2.6.16.60-0.103.1-smp.gz
1 8.3333 bash
1 8.3333 libc-2.4.so
2 0.0400 ls
TIMER:0|
samples| %|
------------------
2 100.000 vmlinux-2.6.16.60-0.103.1-smp.gz
2 0.0400 klogd
TIMER:0|
samples| %|
------------------
2 100.000 vmlinux-2.6.16.60-0.103.1-smp.gz
1 0.0200 cat
TIMER:0|
samples| %|
------------------
1 100.000 vmlinux-2.6.16.60-0.103.1-smp.gz
1 0.0200 grep
TIMER:0|
samples| %|
------------------
1 100.000 vmlinux-2.6.16.60-0.103.1-smp.gz
1 0.0200 rm
TIMER:0|
samples| %|
------------------
1 100.000 jbd
1 0.0200 ext3
1 0.0200 expr
TIMER:0|
samples| %|
------------------
1 100.000 vmlinux-2.6.16.60-0.103.1-smp.gz
1 0.0200 oprofiled
TIMER:0|
samples| %|
------------------
1 100.000 vmlinux-2.6.16.60-0.103.1-smp.gz
1 0.0200 hald-addon-storage
TIMER:0|
samples| %|
------------------
1 100.000 vmlinux-2.6.16.60-0.103.1-smp.gz
idcc-devel:~ #
It shows that most of the time is used by the kernel. This is not surprising. But what is the kernel exactly doing ?
How can I achieve more information about that ?
Bernd
> -----Original Message-----
> From: Michael Petlan [mailto:[email protected]]
> Sent: Monday, March 09, 2015 6:04 PM
> To: Lentes, Bernd
> Cc: [email protected]
> Subject: Re: opcontrol does not create results
>
> 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
> >
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