PERF(1) General Commands Manual PERF(1)NAME
perf - performance analysis tools for Linux
perf [--version] [--help] COMMAND [ARGS]
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)NAME
perf-trace - strace inspired tool
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 perf.data files like the other tools, allowing a detached record
from analysis phases.
OPTIONS -a, --all-cpus
System-wide collection from all CPUs.
List of events to show, currently only syscall names. Prefixing with ! shows all syscalls but the ones specified. You may need to
Output file name.
Record events on existing process ID (comma separated list).
Record events on existing thread ID (comma separated list).
Record events in threads owned by uid. Name or number.
Child tasks do not inherit counters.
Number of mmap data pages. Must be a power of two.
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)
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)
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)
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
while read line
... (18 Replies)
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)
We are facing some performance issue in UNIX. If someone had faced such kind of issue in past please provide your suggestions on this .
/Few of load processes of our Finance Application are facing issue in UNIX when they uses a shell script having below... (19 Replies)
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)
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)
I have a script below for extracting xml from a file.
for i in *.txt
awk '/<.*/ , /.*<\/.*>/' "$i" | tr -d '\n'
echo -ne '\n'
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)
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:
and post the results.
Here is the results for www.unix.com:
processor : 0
vendor_id : AuthenticAMD
cpu family... (182 Replies)
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)
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)
DON'T modify... (23 Replies)