Skip to contentSkip to conversation

KERNEL PROFILING

DISCUSSION shesha bhushan 3 participants 3 messages Apr 8, 2003

lore
Share & tools
lore
#0 lore raw

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

Quoted 19 lines

From: "Randy.Dunlap" <[email protected]>
To: "shesha bhushan" <[email protected]>
CC: [email protected], [email protected]
Subject: Re: KERNEL PROFILING
Date: Tue, 8 Apr 2003 08:01:55 -0700

On Tue, 08 Apr 2003 07:58:54 +0000 "shesha bhushan" <[email protected]> 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.

Quoted 7 lines

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

#1 lore raw

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" <[email protected]> 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" <[email protected]>
| >To: "shesha bhushan" <[email protected]>
| >CC: [email protected], [email protected]
| >Subject: Re: KERNEL PROFILING
| >Date: Tue, 8 Apr 2003 08:01:55 -0700
| >
| >On Tue, 08 Apr 2003 07:58:54 +0000 "shesha bhushan" 
| ><[email protected]> 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
#2 lore raw
Quoted 8 lines
| 
| 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 %