From: Padraig Brady <padraig@antefacto.com>
To: will fitzgerald <william.fitzgerald6@beer.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Question:kernel profiling and readprofile
Date: Thu, 23 May 2002 15:05:00 +0100 [thread overview]
Message-ID: <3CECF70C.1060208@antefacto.com> (raw)
In-Reply-To: <1864B06FE5DED9149A7F262BF4C5E5DE@william.fitzgerald6.beer.com>
will fitzgerald wrote:
> hi all,
>
> i stumbled accross a command called readprofile by accident and found
> that by appening the line append="profile=2" to the lilo.conf file
> and using thread profile command you can get statistics on functions
> that spend a certain amount of time doing a job.
>
> i done some searching on this and can't find anything other than a
> man page on readprofile.
>
> can anyone tell me what does the line append="profile=2" actually do
> apart from creating the file profile in the proc directory, what is
> the 2 for in this line?
The level. see linux/Documentation/kernel-parameters.txt
Also worth looking at is http://oss.sgi.com/projects/kernprof/
> next is this an accurate way to measure heady traffic load through
> say a linux router?
I presume you don't want to actually measure traffic throughput
as there are obviously other ways to do this.
> will it highlight all functions say for example
> ip_forward, dev_queue_xmit etc etc that are being opverloaded due to
> huge traffic loads being passed through the router. ie will it spot
> bottlenecks with good accuracy?
yes that's the idea.
> any feedback is welcomed,
> regards will.
Also note CONFIG_NET_PROFILE=Y which writes more network specific
profile data to /proc/net/profile, which you'll have to figure
out how to parse.
Also I think it was reported that there were some problems
with profiling (missing symbols) around 2.5.8? I don't know
whether it's been fixed.
Also I don't think you can profile modules, but there was a patch...
http://marc.theaimsgroup.com/?l=linux-kernel&m=101663078100596&w=2
Padraig.
next prev parent reply other threads:[~2002-05-23 14:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-23 13:21 will fitzgerald
2002-05-23 14:05 ` Padraig Brady [this message]
2002-05-23 14:17 ` Richard B. Johnson
2002-05-23 15:24 ` Randy.Dunlap
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=3CECF70C.1060208@antefacto.com \
--to=padraig@antefacto.com \
--cc=linux-kernel@vger.kernel.org \
--cc=william.fitzgerald6@beer.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
all inboxes | Powered by JetHome®