Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

perf(1) [opendarwin man page]

PERF(1) 						      General Commands Manual							   PERF(1)

perf - performance analysis tools for Linux SYNOPSIS
perf [--version] [--help] COMMAND [ARGS] DESCRIPTION
Performance counters for Linux are are a new kernel-based subsystem that provide a framework for all things performance analysis. It cov- ers hardware level (CPU/PMU, Performance Monitoring Unit) features and software features (software counters, tracepoints) as well. Each version of the perf tools may depend on new kernel features, so you must install a different version for each kernel version. The perf command will automatically run the correct version for the running kernel version. SEE ALSO
perf_version(1) 4 July 2010 PERF(1)

Check Out this Related Man Page

PERF-TRACE(1)							    perf Manual 						     PERF-TRACE(1)

perf-trace - strace inspired tool SYNOPSIS
perf trace DESCRIPTION
This command will show the events associated with the target, initially syscalls, but other system events like pagefaults, task lifetime events, scheduling events, etc. Initially this is a live mode only tool, but eventually will work with files like the other tools, allowing a detached record from analysis phases. OPTIONS
-a, --all-cpus System-wide collection from all CPUs. -e, --expr List of events to show, currently only syscall names. Prefixing with ! shows all syscalls but the ones specified. You may need to escape it. -o, --output= Output file name. -p, --pid= Record events on existing process ID (comma separated list). -t, --tid= Record events on existing thread ID (comma separated list). -u, --uid= Record events in threads owned by uid. Name or number. -v, --verbose= Verbosity level. -i, --no-inherit Child tasks do not inherit counters. -m, --mmap-pages= Number of mmap data pages. Must be a power of two. -C, --cpu Collect samples only on the list of CPUs provided. Multiple CPUs can be provided as a comma-separated list with no space: 0,1. Ranges of CPUs are specified with -: 0-2. In per-thread mode with inheritance mode on (default), Events are captured only when the thread executes on the designated CPUs. Default is to monitor all CPUs. --duration: Show only events that had a duration greater than N.M ms. --sched: Accrue thread runtime and provide a summary at the end of the session. -i --input Process events from a given perf data file. SEE ALSO
perf-record(1), perf-script(1) perf 06/30/2014 PERF-TRACE(1)
Man Page

11 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Cannot do anything as root

Hello, I have a problem with a server. I have access to 2 different root accounts, and they appear to be stuck doing something with sh. I also could not get to the machine with ssh as I usually do; I had to use rlogin. Here is what happens when I try to su to a root acount: -bash-3.00$ su... (23 Replies)
Discussion started by: wcmiker
23 Replies

2. Shell Programming and Scripting

finding idle time of a process

Matez, I have a list of process id's in a text file. I want to know how to find the idle time of a process which are more than 300secs and kill them accordingly. Could you please help me to get these details. I want to write a shell script with this. Thanks..Krish :) (36 Replies)
Discussion started by: Krrishv
36 Replies

3. Shell Programming and Scripting

shell script performance issues --Urgent

I need help in awk please help immediatly. This below function is taking lot of time Please help me to fine tune it so that it runs faster. The file count is around 3million records # Process Body processbody() { #set -x while read line do ... (18 Replies)
Discussion started by: icefish
18 Replies

4. UNIX for Advanced & Expert Users

What process is writing to disk?

What program can I use to determine what process is writing to disk? I've got a Linux server and iostat reports something is writing to the system drive: Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util sda 0.00 169.83 ... (26 Replies)
Discussion started by: otheus
26 Replies

5. Shell Programming and Scripting

Performance issue in UNIX while generating .dat file from large text file

Hello Gurus, We are facing some performance issue in UNIX. If someone had faced such kind of issue in past please provide your suggestions on this . Problem Definition: /Few of load processes of our Finance Application are facing issue in UNIX when they uses a shell script having below... (19 Replies)
Discussion started by: KRAMA
19 Replies

6. AIX

ORACLE Database running slow on AIX ( nmon / topas )

Hello, How can I know if ORACLE Database is running slow due to Memory or due to processing power ? I have only Oracle Database running on a P4 with 4GB RAM. Could anyone suggest any tools which can help me determine exactly if it is memory issue or processor issue. (43 Replies)
Discussion started by: filosophizer
43 Replies

7. Shell Programming and Scripting

perform 3 awk commands to multiple files in multiple directories

Hi, I have a directory /home/datasets/ which contains a bunch (720) of subdirectories called hour_1/ hour_2/ etc..etc.. in each of these there is a single text file called (hour_1.txt in hour_1/ , hour_2.txt for hour_2/ etc..etc..) and i would like to do some text processing in them. Each of... (20 Replies)
Discussion started by: amarn
20 Replies

8. Shell Programming and Scripting

Multi thread awk command for faster performance

Hi, I have a script below for extracting xml from a file. for i in *.txt do echo $i awk '/<.*/ , /.*<\/.*>/' "$i" | tr -d '\n' echo -ne '\n' done . I read about using multi threading to speed up the script. I do not know much about it but read it on this forum. Is it a... (21 Replies)
Discussion started by: chetan.c
21 Replies

9. SuSE

Post Your /proc/cpuinfo here!

Here is a chance for Linux users to easily compare Linux CPU info and some meaningless BOGOMIPS. Everyone who is running Linux is welcome to: cat /proc/cpuinfo and post the results. Here is the results for processor : 0 vendor_id : AuthenticAMD cpu family... (182 Replies)
Discussion started by: Neo
182 Replies

10. OS X (Apple)

A Fun Perfect Square Checker Using Integer Arithmetic Only... ;o)

A recent Python upload on another site gave me the inspiration to do an unusual bash version... This is a little tongue-in-cheek but an enjoyable bit of fun. It took around 11 seconds to prove 90000000000 had a perfect square of 300000... It is a stand alone program and has a degree of... (23 Replies)
Discussion started by: wisecracker
23 Replies

11. Shell Programming and Scripting

Should pick latest file within past 3 days using UNIX script and perform steps in message below.

Hi , Can anyone help me how do perform below requirement in unix. Step1:we will receive multiple files weekly with same name(as below) in a folder(In folder we will have other files also def.dat,ghf.dat) Filenames: 1) abc_20171204_052389.dat 2)abc_20171204_052428.dat DON'T modify... (23 Replies)
Discussion started by: sunnykamal59
23 Replies

Featured Tech Videos