PERF(1) General Commands Manual PERF(1)NAME
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
TAPSET::PERF(3stap)TAPSET::PERF(3stap)NAME
tapset::perf - systemtap perf probe points
DESCRIPTION
This family of probe points is used to probe "perf events" on suitably configured kernels (2.6.33+). It contains a number of aliases for
the ABI-specified event type/config tuples.
The default sampling interval of the translator(1000000) is not overridden, so some of these probe points may fire very infrequently. Use
the lower level perf.type(AA).config(BB).sample(CC) probe point if this is a problem.
perf.hw.*
A variety of hardware events, as generalized by the kernel. These generally require running on bare hardware with selected proces-
sors.
probe perf.hw.cpu_cycles
probe perf.hw.instructions
probe perf.hw.cache_references
probe perf.hw.cache_misses
probe perf.hw.branch_instructions
probe perf.hw.branch_misses
probe perf.hw.bus_cycles
perf.sw.*
Special "software" events provided by the kernel. These sometimes work in virtualized environments and with more processor archi-
tectures.
probe perf.sw.cpu_clock
probe perf.sw.task_clock
probe perf.sw.page_faults
probe perf.sw.context_switches
probe perf.sw.cpu_migrations
probe perf.sw.page_faults_min
probe perf.sw.page_faults_maj
probe perf.sw.alignment_faults
probe perf.sw.emulation_faults
perf.hw_cache.TYPE.ACCESS.RESULT
Hardware cache events, where available. A subset of the following cartesian product may be available:
probe perf.hw_cache.l1d.*.*
probe perf.hw_cache.l1i.*.*
probe perf.hw_cache.ll.*.*
probe perf.hw_cache.dtlb.*.*
probe perf.hw_cache.itlb.*.*
probe perf.hw_cache.bpu.*.*
probe perf.hw_cache.*.read.*
probe perf.hw_cache.*.write.*
probe perf.hw_cache.*.prefetch.*
probe perf.hw_cache.*.*.access
probe perf.hw_cache.*.*.miss
SEE ALSO stap(1), stapprobes(3stap)IBM TAPSET::PERF(3stap)
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)
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)
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)
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)
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)
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)
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)
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)
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 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)
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)