From: stephane eranian <eranian@googlemail.com>
To: Ming Lei <ming.lei@canonical.com>
Cc: "Måns Rullgård" <mans@mansr.com>,
"Cousson, Benoit" <b-cousson@ti.com>,
"santosh.shilimkar@ti.com" <santosh.shilimkar@ti.com>,
"oprofile-list@lists.sourceforge.net"
<oprofile-list@lists.sourceforge.net>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: oprofile and ARM A9 hardware counter
Date: Mon, 30 Jan 2012 17:02:06 +0100 [thread overview]
Message-ID: <CAMsRxfLqvPN_k7vuC3qzBjwX2ihBdPxZvmSCPZ3frWgptWXQGA@mail.gmail.com> (raw)
In-Reply-To: <CACVXFVMDXO3DDj0mGh=+uDYfCoS_Ck1STVK0=UXjiAbtJTa=hA@mail.gmail.com>
Same result for me on CPU1:
top - 16:20:24 up 1:45, 1 user, load average: 0.29, 0.08, 0.07
Tasks: 70 total, 2 running, 68 sleeping, 0 stopped, 0 zombie
Cpu(s): 30.7%us, 2.7%sy, 0.0%ni, 66.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 940232k total, 228984k used, 711248k free, 82244k buffers
Swap: 524240k total, 0k used, 524240k free, 91400k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ P COMMAND
3968 eranian 20 0 644 160 128 R 100 0.0 0:21.98 1 noploop
3969 eranian 20 0 2184 1056 804 R 3 0.1 0:00.53 0 top
82 root 20 0 0 0 0 S 1 0.0 0:01.35 0
kworker/0:1
With 3.3.0-rc1, if I revert the clockdomain patch, I get the same result.
So it must be coming from somewhere else, as you suggested.
If the processor was spending time processing interrupts, then this would be
accounted for in as sys time. But that's not what I observe here. It's either
idle or user. That line, leads me to believe that the processor can only run
my program for 30% of the time. The rest is spent idling even though my
program is non-blocking. How could that be possible? Power-saving?
On Mon, Jan 30, 2012 at 3:49 PM, Ming Lei <ming.lei@canonical.com> wrote:
> On Mon, Jan 30, 2012 at 9:43 PM, stephane eranian
> <eranian@googlemail.com> wrote:
>> Same results for me with 3.3.0-rc1 + 5 patches.
>
> In fact, I think the only effect of the patch is to enable pmu
> interrupt handling,
> which may cause so much difference?
>
> Also maybe you should put 'noploop' to run on CPU1 and you may observe
> a more accurate result of 'top'.
>
> On ARM, almost handling of all IRQs from gic is run on CPU0 at default,
> which may cause your issue.
>
>>
>>
>> top - 14:42:34 up 8 min, 1 user, load average: 0.70, 0.29, 0.15
>> Tasks: 75 total, 2 running, 73 sleeping, 0 stopped, 0 zombie
>> Cpu(s): 32.9%us, 1.3%sy, 0.0%ni, 65.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
>> Mem: 940232k total, 118520k used, 821712k free, 8080k buffers
>> Swap: 524240k total, 0k used, 524240k free, 79432k cached
>>
>> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
>> 3868 eranian 20 0 644 160 128 R 99 0.0 0:53.34 noploop
>> 3870 eranian 20 0 2284 1060 804 R 3 0.1 0:00.63 top
>> 1 root 20 0 2564 1532 952 S 0 0.2 0:01.26 init
>>
>> I am connecting to the board via ssh.
>> But the results don't look correct to me.
>
> thanks,
> --
> Ming Lei
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
oprofile-list mailing list
oprofile-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oprofile-list
next prev parent reply other threads:[~2012-01-30 16:02 UTC|newest]
Thread overview: 111+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAAO=S0+L2Q1YZC-pfm2Lz8jPooTeHYOMaZbtRgHYFoL_m7rvhA@mail.gmail.com>
[not found] ` <4F0B182D.7060507@us.ibm.com>
2012-01-09 22:49 ` oprofile and ARM A9 hardware counter Will Deacon
2012-01-09 23:30 ` Ming Lei
2012-01-10 0:46 ` stephane eranian
2012-01-18 4:18 ` Ming Lei
2012-01-18 9:33 ` Ming Lei
2012-01-18 11:39 ` Shilimkar, Santosh
2012-01-18 12:24 ` Ming Lei
2012-01-18 12:33 ` Shilimkar, Santosh
2012-04-03 9:25 ` Will Deacon
2012-04-03 9:42 ` Shilimkar, Santosh
2012-04-03 9:47 ` Will Deacon
2012-04-03 10:01 ` Shilimkar, Santosh
2012-04-03 12:34 ` Will Deacon
2012-04-03 12:41 ` Shilimkar, Santosh
2012-04-03 14:27 ` Kevin Hilman
2012-04-03 16:07 ` Will Deacon
2012-04-03 23:14 ` Kevin Hilman
2012-04-03 23:29 ` Paul Walmsley
2012-04-04 3:42 ` Ming Lei
2012-04-04 11:15 ` Will Deacon
2012-04-26 18:07 ` Will Deacon
2012-04-30 22:25 ` Kevin Hilman
2012-05-07 17:27 ` Ming Lei
2012-05-04 22:17 ` Jon Hunter
2012-05-07 17:15 ` Kevin Hilman
2012-05-07 19:53 ` Jon Hunter
2012-05-07 23:28 ` Kevin Hilman
2012-05-08 11:01 ` Cousson, Benoit
2012-05-08 11:23 ` Jean Pihet
2012-05-08 12:37 ` Cousson, Benoit
2012-05-08 13:18 ` Jean Pihet
2012-05-08 14:00 ` Kevin Hilman
2012-05-08 14:03 ` Cousson, Benoit
2012-05-08 16:18 ` Kevin Hilman
2012-05-08 19:51 ` Jon Hunter
2012-05-08 21:28 ` Kevin Hilman
2012-05-08 22:20 ` Jon Hunter
2012-05-08 22:12 ` Ming Lei
2012-05-08 17:31 ` Jon Hunter
2012-05-08 21:22 ` Kevin Hilman
2012-05-08 23:59 ` Jon Hunter
2012-05-09 10:58 ` Cousson, Benoit
2012-05-09 18:04 ` Jon Hunter
2012-05-09 19:28 ` Jon Hunter
2012-05-09 21:45 ` Jon Hunter
2012-05-10 8:44 ` Will Deacon
2012-05-10 9:12 ` stephane eranian
2012-05-10 18:55 ` Jon Hunter
2012-05-11 12:25 ` Will Deacon
2012-05-11 13:47 ` Jon Hunter
2012-05-11 13:49 ` Will Deacon
2012-05-11 14:52 ` Jon Hunter
2012-05-11 15:02 ` Will Deacon
2012-05-11 16:31 ` Jon Hunter
2012-05-11 16:38 ` Will Deacon
2012-05-11 23:51 ` Jon Hunter
2012-05-15 13:52 ` Will Deacon
2012-05-10 14:12 ` Kevin Hilman
2012-05-10 19:05 ` Jon Hunter
2012-05-10 6:59 ` Santosh Shilimkar
2012-05-08 21:50 ` Paul Walmsley
2012-04-04 0:00 ` Paul Walmsley
2012-04-04 11:07 ` Will Deacon
2012-01-18 9:54 ` stephane eranian
2012-01-18 10:07 ` Ming Lei
2012-01-18 21:58 ` stephane eranian
2012-01-19 1:21 ` Ming Lei
2012-01-19 11:34 ` stephane eranian
2012-01-19 12:45 ` Ming Lei
2012-01-19 12:51 ` stephane eranian
2012-01-19 12:55 ` stephane eranian
2012-01-19 13:14 ` Ming Lei
2012-01-19 13:26 ` Ming Lei
2012-01-19 13:32 ` stephane eranian
2012-01-19 13:51 ` Ming Lei
2012-01-19 17:07 ` stephane eranian
2012-01-20 13:47 ` stephane eranian
2012-01-21 3:25 ` Ming Lei
2012-01-21 9:16 ` stephane eranian
2012-01-27 12:13 ` Will Deacon
2012-01-27 12:45 ` stephane eranian
2012-01-27 12:56 ` Måns Rullgård
2012-01-27 13:28 ` Will Deacon
2012-01-27 13:32 ` stephane eranian
2012-01-27 13:47 ` Måns Rullgård
2012-01-27 13:56 ` Will Deacon
2012-01-27 14:05 ` Måns Rullgård
2012-01-27 14:09 ` Ming Lei
2012-01-27 15:45 ` stephane eranian
2012-01-27 15:54 ` Will Deacon
2012-01-27 15:57 ` stephane eranian
2012-01-27 16:59 ` Will Deacon
2012-01-27 17:03 ` stephane eranian
2012-01-27 17:10 ` Will Deacon
2012-01-27 17:16 ` stephane eranian
2012-01-29 17:36 ` stephane eranian
2012-01-30 9:40 ` Ming Lei
2012-01-30 10:24 ` stephane eranian
2012-01-30 13:43 ` stephane eranian
2012-01-30 14:49 ` Ming Lei
2012-01-30 16:02 ` stephane eranian [this message]
2012-01-30 16:08 ` Måns Rullgård
2012-01-30 17:15 ` stephane eranian
2012-01-30 17:24 ` Will Deacon
2012-01-30 17:45 ` stephane eranian
2012-01-30 19:14 ` Will Deacon
2012-01-30 20:45 ` stephane eranian
2012-03-07 2:49 ` Ming Lei
2012-03-07 9:48 ` Will Deacon
2012-01-27 14:06 ` Ming Lei
2012-01-18 10:18 ` Russell King - ARM Linux
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAMsRxfLqvPN_k7vuC3qzBjwX2ihBdPxZvmSCPZ3frWgptWXQGA@mail.gmail.com \
--to=eranian@googlemail.com \
--cc=b-cousson@ti.com \
--cc=eranian@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=mans@mansr.com \
--cc=ming.lei@canonical.com \
--cc=oprofile-list@lists.sourceforge.net \
--cc=santosh.shilimkar@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).