* Re: kernel profiling
[not found] <7m3tm8$7lvnt@fido.engr.sgi.com>
@ 1999-07-09 20:43 ` Dimitris Michailidis
0 siblings, 0 replies; 14+ messages in thread
From: Dimitris Michailidis @ 1999-07-09 20:43 UTC (permalink / raw)
To: Robert Walsh; +Cc: linux-kernel
Robert Walsh <rjwalsh@durables.org> writes:
> Other than /dev/profile, is there any mechanism available for
> profiling the kernel? For example, has anyone implemented a
> __mcount() function to handle a kernel compiled with -pg, or is this
> even possible?
>
> We're currently profiling the kernel NFS daemon (the entire path from
> network to disk) using SPECsfs and other benchmarking mechanisms, and
> before I start working on a home-grown profiling mechanism I'd like to
> make sure I'm not reinventing the wheel.
>
> BTW: /proc/profile hasn't got enough granularity for our purposes and
> doesn't provide info such as call-graph statistics.
Back in May I posted a patch to enable kernel profiling using gprof, which
should give you the call graph statistics you want. The patch basically
implements mcount() to collect statistics, adds a couple of files to /proc to
make the statistics available to the user land, and provides a command,
kernprof, to generate gmon.out for consumption by gprof. kernprof, in
addition to preparing data for gprof, also does the job of readprofile, with
a number of bugs of the latter fixed.
You can get the patch from
http://linuxwww.db.erau.edu/mail_archives/linux-kernel/May_99/2383.html
or other archives. Since there has been no response to this patch there has
been no further development since the initial release, but it probably still
applies cleanly against the 2.2.x kernels.
As noted in the initial post, due to bugs in gcc/egcs that cause
miscompilation of programs that use -pg and regparms, to use this patch you
either need a hacked version of egcs or you need to disable the FASTCALLs in
the kernel (the latter is done in the IKD patch).
Let me know if you have any suggestions to improve the patch or need other
assistance.
--
Dimitris Michailidis dimitris@engr.sgi.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: kernel profiling
@ 1999-07-26 19:59 Karim Yaghmour
0 siblings, 0 replies; 14+ messages in thread
From: Karim Yaghmour @ 1999-07-26 19:59 UTC (permalink / raw)
To: rjwalsh; +Cc: linux-kernel
On Thu, 8 Jul 1999, Robert Walsh wrote:
> We're currently profiling the kernel NFS daemon (the entire path from
> network to disk) using SPECsfs and other benchmarking mechanisms, and
> before I start working on a home-grown profiling mechanism I'd like to
> make sure I'm not reinventing the wheel.
You might want to check on the tool i've been working on, which enables
you to see exactly what if happening on your system at all times. It
would enable you to see what time is spent in kernel, what time is
spent in the rest of the system, and why.
Moreover, the mechanisms I use are easily extendable. Therefore, if
you find the information given insufficient, you can make the kernel
generate more information without modifying too many things.
You can find the Linux
Trace Toolkit at the following address :
http://www.info.polymtl.ca/users/karym/www/trace/
The information on how to use it is there and so is some information
on how it works. If you need more info, don't hesitate to contact me
if you need more information.
Of course, it's all under GPL ...
Regards.
==============================================
Karim Yaghmour
karym@info.polymtl.ca
Computer Engineer
Ecole Polytechnique de Montreal
==============================================
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 14+ messages in thread
* Kernel profiling
@ 2002-03-12 19:29 Steffen Persvold
2002-03-12 21:11 ` John Levon
0 siblings, 1 reply; 14+ messages in thread
From: Steffen Persvold @ 2002-03-12 19:29 UTC (permalink / raw)
To: lkml
List readers,
Is it possible to use the kernel profiling functionality to do profiling on loadable modules ? If
no, is there any other easy method ?
Regards,
--
Steffen Persvold | Scalable Linux Systems | Try out the world's best
mailto:sp@scali.com | http://www.scali.com | performing MPI implementation:
Tel: (+47) 2262 8950 | Olaf Helsets vei 6 | - ScaMPI 1.13.8 -
Fax: (+47) 2262 8951 | N0621 Oslo, NORWAY | >320MBytes/s and <4uS latency
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Kernel profiling
2002-03-12 19:29 Steffen Persvold
@ 2002-03-12 21:11 ` John Levon
0 siblings, 0 replies; 14+ messages in thread
From: John Levon @ 2002-03-12 21:11 UTC (permalink / raw)
To: lkml
On Tue, Mar 12, 2002 at 08:29:22PM +0100, Steffen Persvold wrote:
> Is it possible to use the kernel profiling functionality to do
> profiling on loadable modules ?
I imagine it wouldn't be too hard to extend the profiling buffer for
the module text regions ...
> If no, is there any other easy method ?
http://oprofile.sf.net
regards
john
--
I am a complete moron for forgetting about endianness. May I be
forever marked as such.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Kernel profiling
[not found] <3C8E5712.20E5E317@scali.com.suse.lists.linux.kernel>
@ 2002-03-12 21:17 ` Andi Kleen
0 siblings, 0 replies; 14+ messages in thread
From: Andi Kleen @ 2002-03-12 21:17 UTC (permalink / raw)
To: Steffen Persvold; +Cc: linux-kernel
Steffen Persvold <sp@scali.com> writes:
> List readers,
>
> Is it possible to use the kernel profiling functionality to do profiling on loadable modules ? If
> no, is there any other easy method ?
Either compile the module in or use oprofile (http://oprofile.sourceforge.net)
The later is better, because it is a much more powerful profiler than
the builtin one.
-Andi
^ permalink raw reply [flat|nested] 14+ messages in thread
* kernel profiling
@ 2003-01-22 0:34 Hui_Ning
2003-01-22 17:07 ` Hanna Linder
0 siblings, 1 reply; 14+ messages in thread
From: Hui_Ning @ 2003-01-22 0:34 UTC (permalink / raw)
To: linux-kernel
hi,
I am trying to do kernel profile using kernprof with the patch provided by
SGI on 2.4.18. I can't find the 2.95.3 gcc patch that must be used to
compile the kernel( the info on sgi's web site somehow is broken). Does
anybody know where the patch is ? or any alternative I can use, like
a more stable gcc version without the need for a patch?
thanks for your help
hui
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: kernel profiling
2003-01-22 0:34 Hui_Ning
@ 2003-01-22 17:07 ` Hanna Linder
0 siblings, 0 replies; 14+ messages in thread
From: Hanna Linder @ 2003-01-22 17:07 UTC (permalink / raw)
To: Hui_Ning, linux-kernel; +Cc: hannal
--On Tuesday, January 21, 2003 06:34:34 PM -0600 Hui_Ning@3com.com wrote:
>
> hi,
>
> I am trying to do kernel profile using kernprof with the patch provided by
> SGI on 2.4.18. I can't find the 2.95.3 gcc patch that must be used to
> compile the kernel( the info on sgi's web site somehow is broken). Does
> anybody know where the patch is ? or any alternative I can use, like
> a more stable gcc version without the need for a patch?
Hello,
I found that the default red hat 7.3 compiler (gcc-2.96-110)
did not need the patch and ran kernprof fine.
Hanna
^ permalink raw reply [flat|nested] 14+ messages in thread
* kernel profiling
@ 2003-02-05 10:56 Yours Lovingly
0 siblings, 0 replies; 14+ messages in thread
From: Yours Lovingly @ 2003-02-05 10:56 UTC (permalink / raw)
To: linux-kernel
hello,
i m trying to use kernel profiling to optimize nfs
cache performance in 2.4.18. But unfortunately i m
unable to access sgi's ftp site hosting kernprof.
But more unfortunately :
i turned on profiling on the kernel command line with
profile=2
but whenever i give a readprofile command, all i get
is a single line that goes like:
0 total 0.0000
1. please suggest a way to make readprofile work.
2. please suggest someother profiling mechanism that
could be of more help
thanks a lot
abhishek
________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
visit http://in.tv.yahoo.com
^ permalink raw reply [flat|nested] 14+ messages in thread
* kernel profiling
@ 2003-02-06 16:22 Yours Lovingly
0 siblings, 0 replies; 14+ messages in thread
From: Yours Lovingly @ 2003-02-06 16:22 UTC (permalink / raw)
To: linux-kernel
hello,
i m trying to use kernel profiling to study nfs client
cache performance in 2.4.18.
But unfortunately :
i turned on profiling on the kernel command line with
profile=2
but whenever i give a readprofile command, all i get
is a single line that goes like:
0 total 0.0000
1. please suggest a way to make readprofile work.
2. please suggest someother profiling mechanism that
could be of more help
thanks a lot
abhishek
________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
visit http://in.tv.yahoo.com
^ permalink raw reply [flat|nested] 14+ messages in thread
* KERNEL PROFILING
@ 2003-04-08 7:58 shesha bhushan
2003-04-08 15:01 ` Randy.Dunlap
0 siblings, 1 reply; 14+ messages in thread
From: shesha bhushan @ 2003-04-08 7:58 UTC (permalink / raw)
To: linux-kernel, kernelnewbies
HI ALL,
I am trying to profile the linux kernel. Can any one suggest an easy way
to do. Like, I wanted to see how much TCP is using CPU, how much of CPU is
used in memcpy, etc.
Can any one please suggest me.
Thanking You
Shesha
_________________________________________________________________
Say it now. Say it online. http://www.msn.co.in/ecards/ Send e-cards to your
love
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: KERNEL PROFILING
2003-04-08 7:58 shesha bhushan
@ 2003-04-08 15:01 ` Randy.Dunlap
0 siblings, 0 replies; 14+ messages in thread
From: Randy.Dunlap @ 2003-04-08 15:01 UTC (permalink / raw)
To: shesha bhushan; +Cc: linux-kernel, kernelnewbies
On Tue, 08 Apr 2003 07:58:54 +0000 "shesha bhushan" <bhushan_vadulas@hotmail.com> wrote:
| HI ALL,
| I am trying to profile the linux kernel. Can any one suggest an easy way
| to do. Like, I wanted to see how much TCP is using CPU, how much of CPU is
| used in memcpy, etc.
| Can any one please suggest me.
Start with the file linux/Documentation/basic_profiling.txt
(it's in Linux 2.5.66-or-so or later).
It explains how to use oprofile and readprofile.
You can read about oprofile at http://oprofile.sourceforge.net/ .
You can read about basic in-kernel profiling using /proc/profile
and readprofile via 'man readprofile'. It's simple to use.
--
~Randy
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: KERNEL PROFILING
@ 2003-04-08 19:42 shesha bhushan
2003-04-08 20:03 ` Randy.Dunlap
0 siblings, 1 reply; 14+ messages in thread
From: shesha bhushan @ 2003-04-08 19:42 UTC (permalink / raw)
To: rddunlap; +Cc: linux-kernel, kernelnewbies
Hi
If I use the command line option "profile=2" while booting the system, why
/proc/profile file is not created? Should I have to create it manually?
Thanking You'
Shesha
>From: "Randy.Dunlap" <rddunlap@osdl.org>
>To: "shesha bhushan" <bhushan_vadulas@hotmail.com>
>CC: linux-kernel@vger.kernel.org, kernelnewbies@nl.linux.org
>Subject: Re: KERNEL PROFILING
>Date: Tue, 8 Apr 2003 08:01:55 -0700
>
>On Tue, 08 Apr 2003 07:58:54 +0000 "shesha bhushan"
><bhushan_vadulas@hotmail.com> wrote:
>
>| HI ALL,
>| I am trying to profile the linux kernel. Can any one suggest an easy
>way
>| to do. Like, I wanted to see how much TCP is using CPU, how much of CPU
>is
>| used in memcpy, etc.
>| Can any one please suggest me.
>
>Start with the file linux/Documentation/basic_profiling.txt
>(it's in Linux 2.5.66-or-so or later).
>
>It explains how to use oprofile and readprofile.
>
>You can read about oprofile at http://oprofile.sourceforge.net/ .
>
>You can read about basic in-kernel profiling using /proc/profile
>and readprofile via 'man readprofile'. It's simple to use.
>
>--
>~Randy
_________________________________________________________________
Say it now. Say it online. http://www.msn.co.in/ecards/ Send e-cards to your
love
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: KERNEL PROFILING
2003-04-08 19:42 KERNEL PROFILING shesha bhushan
@ 2003-04-08 20:03 ` Randy.Dunlap
2003-04-08 20:53 ` Andy Pfiffer
0 siblings, 1 reply; 14+ messages in thread
From: Randy.Dunlap @ 2003-04-08 20:03 UTC (permalink / raw)
To: shesha bhushan; +Cc: linux-kernel, kernelnewbies
I don't know why it's not created.
What kernel version is this? Did you build the kernel
or is it from someone else who could have modified it?
The only failure that I see in profile setup/init is Out of Memory
if the profile buffer cannot be allocated. Did you search thru
the boot message log for any errors?
~Randy
On Tue, 08 Apr 2003 19:42:03 +0000 "shesha bhushan" <bhushan_vadulas@hotmail.com> wrote:
|
| Hi
| If I use the command line option "profile=2" while booting the system, why
| /proc/profile file is not created? Should I have to create it manually?
|
| Thanking You'
| Shesha
|
|
|
|
|
| >From: "Randy.Dunlap" <rddunlap@osdl.org>
| >To: "shesha bhushan" <bhushan_vadulas@hotmail.com>
| >CC: linux-kernel@vger.kernel.org, kernelnewbies@nl.linux.org
| >Subject: Re: KERNEL PROFILING
| >Date: Tue, 8 Apr 2003 08:01:55 -0700
| >
| >On Tue, 08 Apr 2003 07:58:54 +0000 "shesha bhushan"
| ><bhushan_vadulas@hotmail.com> wrote:
| >
| >| HI ALL,
| >| I am trying to profile the linux kernel. Can any one suggest an easy
| >way
| >| to do. Like, I wanted to see how much TCP is using CPU, how much of CPU
| >is
| >| used in memcpy, etc.
| >| Can any one please suggest me.
| >
| >Start with the file linux/Documentation/basic_profiling.txt
| >(it's in Linux 2.5.66-or-so or later).
| >
| >It explains how to use oprofile and readprofile.
| >
| >You can read about oprofile at http://oprofile.sourceforge.net/ .
| >
| >You can read about basic in-kernel profiling using /proc/profile
| >and readprofile via 'man readprofile'. It's simple to use.
| >
| >--
| >~Randy
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: KERNEL PROFILING
2003-04-08 20:03 ` Randy.Dunlap
@ 2003-04-08 20:53 ` Andy Pfiffer
0 siblings, 0 replies; 14+ messages in thread
From: Andy Pfiffer @ 2003-04-08 20:53 UTC (permalink / raw)
To: shesha bhushan; +Cc: rddunlap, linux-kernel@vger.kernel.org, kernelnewbies
> |
> | Hi
> | If I use the command line option "profile=2" while booting the system, why
> | /proc/profile file is not created? Should I have to create it manually?
> |
> | Thanking You'
> | Shesha
You might want to double check your kernel command line after the system
has booted with "cat /proc/cmdline" and look for the "profile=2"
parameter.
% cat /proc/cmdline
auto BOOT_IMAGE=linux-2.5.67 ro root=805 console=ttyS0,9600n8 profile=2
%
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2003-04-08 20:41 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-07-26 19:59 kernel profiling Karim Yaghmour
-- strict thread matches above, loose matches on Subject: below --
2003-04-08 19:42 KERNEL PROFILING shesha bhushan
2003-04-08 20:03 ` Randy.Dunlap
2003-04-08 20:53 ` Andy Pfiffer
2003-04-08 7:58 shesha bhushan
2003-04-08 15:01 ` Randy.Dunlap
2003-02-06 16:22 kernel profiling Yours Lovingly
2003-02-05 10:56 Yours Lovingly
2003-01-22 0:34 Hui_Ning
2003-01-22 17:07 ` Hanna Linder
[not found] <3C8E5712.20E5E317@scali.com.suse.lists.linux.kernel>
2002-03-12 21:17 ` Kernel profiling Andi Kleen
2002-03-12 19:29 Steffen Persvold
2002-03-12 21:11 ` John Levon
[not found] <7m3tm8$7lvnt@fido.engr.sgi.com>
1999-07-09 20:43 ` kernel profiling Dimitris Michailidis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox