1834137 Members
2466 Online
110064 Solutions
New Discussion

Performance problem

 
SOLVED
Go to solution
j773303
Super Advisor

Performance problem

Any tool can show the process reads/writes?
Any free tool can show the Logical volume I/O except glance or perView?
Hero
5 REPLIES 5
Stefan Farrelly
Honored Contributor

Re: Performance problem

lsof shows open files for a process, with an offset number which increments every time you do the lsof command - you can extract this number and work out the difference to see reads+writes.

I doubt you can get a free tool to show i/o by lvol - only high level programs which cost like glance or bmc patrol do this. The best free tool is sar, but its by device, not lvol (but you can lookup the device to see which lvol it is in).
Im from Palmerston North, New Zealand, but somehow ended up in London...
j773303
Super Advisor

Re: Performance problem

How the lsof show the offset number? Coule you please teach me further information!
Hero
Stefan Farrelly
Honored Contributor

Re: Performance problem

Take a look at this script which uses this lsof offset when writing to a tape drive - you can adapt for disk.

You need to use posix shell as it automatically converts the offset in hex to decimal.

let x=$(lsof|grep "/dev/rmt"|head -1|awk '{print $7}') 2>/dev/null
if [ $x -eq 0 ]
then
echo "Error - no tape backup currently running!"
exit 1
fi
while true
do
sleep 60
let z=$(lsof|grep "/dev/rmt"|head -1|awk '{print $7}')
let y=$z-$x
let y=$y/1000000
let u=$y/60;echo "${y} MB/min, ${u} MB/sec over last minute"
let x=$z
done
Im from Palmerston North, New Zealand, but somehow ended up in London...
j773303
Super Advisor

Re: Performance problem

This command support by SUN Solaris, Does HP-UX support this function which can view the process status.

truss - trace system calls and signals

DESCRIPTION
truss executes the specified command and produces a trace of
the system calls it performs, the signals it receives, and
the machine faults it incurs. Each line of the trace output
reports either the fault or signal name or the system call
name with its arguments and return value(s). System call
arguments are displayed symbolically when possible using
defines from relevant system headers; for any pathname
pointer argument, the pointed-to string is displayed. Error
returns are reported using the error code names described in
intro(2).ystem calls and signals
Hero
Michael Tully
Honored Contributor
Solution

Re: Performance problem

The equivalent program is called 'tusc'.
You can get it here ready to insall in depot (SD format)

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-7.5/
Anyone for a Mutiny ?