From: grant.b.edwards@gmail.com (Grant Edwards)
To: linux-arm-kernel@lists.infradead.org
Subject: [OT] Profiling on ARM Linux systems: how?
Date: Wed, 29 Apr 2015 14:54:43 +0000 (UTC) [thread overview]
Message-ID: <mhqrbj$vlu$1@ger.gmane.org> (raw)
This might be a little off-topic. If so I apologize.
I have a problem with excessive CPU usage on an embedded ARM926
system. There are three main apps, all of which have multiple
threads. The total CPU usage is too high. I'm trying to figure out
where the CPU time is "going" so we know were to concentrate
optimization efforts.
The "top" utility is useless because it samples at a fixed interval.
Almost all of the threads are driven by timers on fixed cycles (or
data from threads that are). The 'top' sampling method appears to
cause aliasing which renders the numbers shown by top meaningless.
I have written a small "idle" app that I can run with the least
possible priority to get a pretty decent measure of total combined CPU
usage by everything else. By starting and stopping pieces and
measuring the change in total CPU usage, we get some moderately usable
numbers, but stopping piece A also changes the load on piece B and
piece C, so it's not very accurate.
That method also doesn't let us understand which threads within an
application are using the most CPU time.
It would be helpful if I could just get a reliable measurement of
system vs. user CPU usage.
We've tried and failed to get oprofile working for our platform (at91
running 2.6.33). If I was confident that oprofile could provide
useful information, I would put some more effort into getting it
running.
I have been able to get systemtap working on our platform and can
trace kernel-space events, but my understanding is that systemtap
doesn't support analysis of user-space processes on ARM.
Any advice?
--
Grant Edwards grant.b.edwards Yow! Life is a POPULARITY
at CONTEST! I'm REFRESHINGLY
gmail.com CANDID!!
next reply other threads:[~2015-04-29 14:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-29 14:54 Grant Edwards [this message]
2015-04-29 15:29 ` [OT] Profiling on ARM Linux systems: how? Joshua Clayton
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='mhqrbj$vlu$1@ger.gmane.org' \
--to=grant.b.edwards@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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).