PERF-LOCK(1) perf Manual PERF-LOCK(1)NAME
perf-lock - Analyze lock events
SYNOPSIS
perf lock {record|report|script|info}
DESCRIPTION
You can analyze various lock behaviours and statistics with this perf lock command.
'perf lock record <command>' records lock events
between start and end <command>. And this command
produces the file "perf.data" which contains tracing
results of lock events.
'perf lock report' reports statistical data.
'perf lock script' shows raw lock events.
'perf lock info' shows metadata like threads or addresses
of lock instances.
COMMON OPTIONS -i, --input=<file>
Input file name. (default: perf.data unless stdin is a fifo)
-v, --verbose
Be more verbose (show symbol address, etc).
-D, --dump-raw-trace
Dump raw trace in ASCII.
REPORT OPTIONS -k, --key=<value>
Sorting key. Possible values: acquired (default), contended, wait_total, wait_max, wait_min.
INFO OPTIONS -t, --threads
dump thread list in perf.data
-m, --map
dump map of lock instances (address:name table)
SEE ALSO perf(1)perf 06/30/2014 PERF-LOCK(1)
Check Out this Related Man Page
PERF-TRACE(1) perf Manual PERF-TRACE(1)NAME
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 perf.data 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)
how can I lock my keyboard while I'm away from the computer without using lock command. What other commands gives me the option to lock keyboard device?
thanks (7 Replies)
I have a Shell Script which runs a PLSQL stored proc. Here is the summary:
- create LOCK file
- check if LOCK exist, if exists, abort.
- run Stored Proc and insert/update DB
- remove LOCK file
The problem is in random cases, some records are inserted 2x (with exactly the same data,date... (1 Reply)
Hi,
I have a shell script with code
. perf.env
cd $QRY_DIR
for SHELL_FILE in sql1
do
export SNAME=$SHELL_FILE
${SCRIPT_DIR}/perf_qry.sh ${SPOOL_DIR} ${DB_ENVNAME} ${NAME} &
RC=$(expr ${RC:-0} + $? )
sleep 60
if
then
echo sysdate>test1
echo query1.txt>>test1
grep -i... (0 Replies)
I've been bitten by using a lock or pid file to prevent multiple instances of a script. A user typed kill -9, and the pid file didn't go away. You can't trap -9. So when he tried to restart, it said "already running", and I got trouble report. Argh.
So here's what we came up with:
# Stop if... (1 Reply)
Hi,
I am trying to find the number of cache misses that are caused by my code. The best way I could find was to use the perf command. After running command: perf stat dd if=/dev/zero of=/dev/null count=100, the output I got is:
1.812057 task-clock-msecs # 0.876 CPUs
... (0 Replies)
Greetings all,
Been trying to do my Googling and forum searches but can't seem to lock in on a solution.
I have a script that parses a log and collects all the uniq events to a flat file. Some days might have 50 unique events, other days might have 75. (Hence my reference to dynamic.)
... (2 Replies)
I have an awk script that extracts data from log files and generates a report. The script is incrementing elements in arrays, summing fields depending on contents of other fields, and then in END performing some operations on those arrays. It seemed to be taking longer than it should on my... (6 Replies)
Hi
Currently we have SAN setup in our Redhat Environment.
I have used iostat tool and ran it couple of times, i think there is IO bottle neck.
Can anyone suggest any other tools or help me how to perform multiple Reads/Writes to test its performance (1 Reply)
I'm not able to run perf on linux 4.4. I'm using ubuntu 15.10.
The error I'm getting is:
WARNING: perf not found for kernel 4.4.0
You may need to install the following packages for this specific kernel: linux-tools-4.4.0-4.4.0 linux-cloud-tools-4.4.0-4.4.0
You may also want to install... (4 Replies)