Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
Copyright Info
Terms of Use
Privacy Info
Masthead / Impressum
Your Account

Private Messages

News Archive
Submit News
User Articles
Web Links


The Web

Who's Online
There are currently, 53 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here




       readprofile [ options ]


       This manpage documents version 2.0 of the program.


       The readprofile command uses the /proc/profile information
       to print ascii data on standard  output.   The  output  is
       organized  in  three  columns:  the first is the number of
       clock ticks, the second is the name of the C  function  in
       the  kernel where those many ticks occurred, and the third
       is the normalized `load' of the procedure, calculated as a
       ratio  between  the  number of ticks and the length of the
       procedure. The output is filled with blanks to ease  read­

       Available command line options are the following:

       -m mapfile
              Specify    a   mapfile,   which   by   default   is
              /usr/src/linux/System.map.  You should specify  the
              map  file  on  cmdline if your current kernel isn't
              the last one you compiled. If the name of  the  map
              file ends with `.gz' it is decompressed on the fly.

       -p pro-file
              Specify a  different  profiling  buffer,  which  by
              default  is  /proc/profile.  Using a different pro-
              file is useful if you want to `freeze'  the  kernel
              profiling  at  some  time  and  read  it later. The
              /proc/profile file can be  copied  using  `cat'  or
              `cp'.  There is no more support for compressed pro­
              file buffers, like in readprofile-1.1, because  the
              program  needs  to  know  the size of the buffer in

       -i     Info. This makes readprofile only print the profil­
              ing step used by the kernel.  The profiling step is
              the resolution of the profiling buffer, and is cho­
              sen during kernel configuration (through `make con­
              fig'), or in the kernel's command line.  If the  -t
              (terse)  switch  is  used together with -i only the
              decimal number is printed.

       -M multiplier
              On some architectures it is possible to  alter  the
              frequency  at  which  the kernel delivers profiling
              interrupts to each CPU.  This option allows you  to
              set  the  frequency,  as a multiplier of the system
              clock frequency, HZ.  This is supported on i386-SMP
              (2.2  and  2.4  kernel)  and  also on sparc-SMP and
              sparc64-SMP (2.4 kernel).  This option also  resets
              the profiling buffer, and requires superuser privi­

       -v     Verbose. The output is organized  in  four  columns
              and  filled  with  blanks.  The first column is the
              RAM address of a kernel function, the second is the
              name  of  the  function, the third is the number of
              clock ticks and the last is the normalized load.

       -V     Version. This makes readprofile print  its  version
              number and exit.


       Browse the profiling buffer ordering by clock ticks:
          readprofile | sort -nr | less

       Print the 20 most loaded procedures:
          readprofile | sort -nr +2 | head -20

       Print only filesystem profile:
          readprofile | grep _ext2

       Look at all the kernel information, with ram addresses"
          readprofile -av | less

       Browse  a  `freezed' profile buffer for a non current ker­
          readprofile -p ~/profile.freeze -m /zImage.map.gz

       Request profiling at 2kHz per CPU, and reset the profiling
          sudo readprofile -M 20


       readprofile  only  works  with  an  1.3.x or newer kernel,
       because /proc/profile changed in the step from 1.2 to 1.3

       re-enabled. Watch out for misleading information.


       /proc/profile              A binary snapshot of the profiling buffer.
       /usr/src/linux/System.map  The symbol table for the kernel.
       /usr/src/linux/*           The program being profiled :-)

                             May 1996              READPROFILE(1)
Help us cut cost by not downloading the whole site!
Use of automated download sofware ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and therefore is expressedly prohibited. For more details on this, take a look here



Security Code
Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!

Amazon Wish List

Did You Know?
You can get all the latest Site and Linux news by checking out our news page.


Tell a Friend About Us

Bookmark and Share

Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.13 Seconds