Optimizing Linux Performance. A Hands-On Guide to Linux Performance Tools
Authors: Ezolt P.
Published year: 2004
Pages: 104-109/132
Buy this book on amazon.com >>

Appendix B. Installing oprofile

Although the system profiler oprofile is a powerful performance tool, its installation/use can be tricky. This appendix describes some of the issues when installing oprofile on Fedora Core 2 (FC2), Red Hat Enterprise Linux (EL3), and SUSE 9.1 (S9.1).


B.1 Fedora Core 2 (FC2)

For FC2, Red Hat provides packages for oprofile that should be used rather than those downloaded from the oprofile Web site. The uniprocessor kernel does not provide the necessary oprofile drivers. Red Hat packages the necessary oprofile kernel modules with the smp version of the kernel. If you want to run oprofile , you must use the smp kernel, even if you are running it on a single-processor machine.


B.2 Enterprise Linux 3 (EL3)

For EL3, once again, Red Hat provides packages for oprofile that should be used rather than those downloaded from the oprofile Web site. The uniprocessor kernel does not provide the necessary oprofile drivers. Red Hat packages the necessary oprofile kernel modules with the smp or hugemem versions of the kernel. If you want to run oprofile , you must use the smp or hugemem kernel, even if you are running it on a single-processor machine.

More details on using oprofile in EL3 are provided at http://www.redhat.com/docs/manuals/enterprise/RHEL-3-Manual/sysadmin-guide/ch-oprofile.html.


B.3 SUSE 9.1

For SUSE 9.1, SUSE provides packages for oprofile that should be used rather than those downloaded from the oprofile Web site. All versions of the SUSE kernels ( default , smp , and bigsmp ) provide support for oprofile , so any of the supplied kernels will work.

 


Index


[SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [R] [S] [T] [U] [V] [W] [X]


 
 


Index


[SYMBOL] [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] [R] [S] [T] [U] [V] [W] [X]

% time option
     ltrace tool
     strace tool
%MEM option, top (v. 2.x and 3.x) tool
%memused option
     sar (II) tool
%swpused option
     sar (II) tool
+D directory option
    lsof (List Open Files) tool
         disk I/O subsystem usage
+d directory option
    lsof (List Open Files) tool
         disk I/O subsystem usage
--annotated-source option
     gprof command
--assembly option
     opreport tool
--brief option
     gprof command
--delay option
     slabtop tool
--details option
     opreport tool
--flat-profile option
     gprof command
--follow- exec option
    memprof tool
         application use of memory
--follow-fork option
    memprof tool
         application use of memory
--graph option
     gprof command
--help option
    kcachegrind tool
         application use of memory
     ltrace tool
     strace tool
--interfaces= name option
    netstat tool
         network I/O
--long-filenames option
     opreport tool
--raw-w option
    netstat tool
         network I/O
-- sort option
     slabtop tool
--source -- option
     opreport tool
--statistics-s option
    netstat tool
         network I/O
--symbols option
     opreport tool
--tcp-t option
    netstat tool
         network I/O
--trace-jump=yesno option
    kcachegrind tool
         application use of memory
--udp-u option
    netstat tool
         network I/O
-/+ buffers/cache option
     free tool
-A option
     gprof command
-a option
     opreport tool 2nd
-A option
     ps command
-a option
     script command
     vmstat II tool
-B option
     sar (II) tool
-c
-c delay option
     free tool
-c option
     ltrace tool
     strace tool
-d interface option
    iptraf tool
         network I/O
-d option
    iostat tool
         disk I/O subsystem usage
     opreport tool
-D option
    vmstat tool
         disk I/O subsystem usage
-d option
    vmstat tool
         disk I/O subsystem usage
-d[=cumulative] option
     watch command
-f option
     opreport tool
-g[1 2 3] option
     GNU compiler collection 2nd
-i, --interface=interface name option
    etherape tool
         network I/O
-k option
    iostat tool
         disk I/O subsystem usage
-l delay option
     free tool
-l option
    ipcs tool
         application use of shared memory
     opreport tool
-m option
     vmstat II tool
-n DEV option
    sar tool
         network I/O
-n EDEV option
    sar tool
         network I/O
-n FULL option
    sar tool
         network I/O
-n sec option
     watch command
-n SOCK option
    sar tool
         network I/O
-n, --numeric option
    etherape tool
         network I/O
-o /statistic/
-o /statistic/ option
     ps command
-o file option
     ltrace tool
     strace tool
-p option
     gprof command
    ipcs tool
         application use of shared memory
    netstat tool
         network I/O
-p partition option
    vmstat tool
         disk I/O subsystem usage
-p pid option
     ltrace tool
     strace tool
-pg option
     GNU compiler collection
-q option
     gprof command
-r delay option
    lsof (List Open Files) tool
         disk I/O subsystem usage
-r option
     sar (II) tool
-s delay option
     free tool
-s interface option
    iptraf tool
         network I/O
-s option
     opreport tool 2nd
     vmstat II tool
-t minutes option
    iptraf tool
         network I/O
-t option
    ipcs tool
         application use of shared memory
     script command
-u option
    ipcs tool
         application use of shared memory
-u user option
     ps command
-U user option
     ps command
-v option
     time command
-W option
     sar (II) tool
-x option
    iostat tool
         disk I/O subsystem usage
-Xrunhprof command-line option, java command
/proc file system display info . [See procinfo tool]
/proc tool
    application use of memory
         supported for Java, Mono, Python, and Perl 2nd
/proc//PID tool
    processes
         maps file 2nd 3rd 4th
         status file 2nd 3rd 4th 5th
/proc//PID/ tool
    processes
         status file
/proc/interrupt file
/proc/meminfo file
    memory performance
         example 2nd
         options 2nd
         statistics 2nd 3rd

 
Optimizing Linux Performance. A Hands-On Guide to Linux Performance Tools
Authors: Ezolt P.
Published year: 2004
Pages: 104-109/132
Buy this book on amazon.com >>

Similar books on Amazon