Can someone identify the best trace tool to use to trace a single process. I need to know infomation like all the file opens, file reads and times, other system resource usage.
There are many ways to trace a process on AIX.
The tools that can be used are tprof and svmon.
Using tprof you can trace all the processes running on your box for a specific period of time.
For Eg
#tprof -x sleep 30
This cmd specifies to run the trace for 30 secs
An ASCII report named __prof.all will be generated which contains the info u r looking for.
If you want to run the trace on a process started by a program then you can start the tprof on the program
#tprof /home/jonsie/test.prg
Here an ASCII file __test.all will be generated.
Also you can use the svmon...
To get a complete summary of all the processes
#svmon -P|pg
To get a segment report
#svmon -S
To narrow down ur search to a specific process
#svmon -P <pid>
Pls go through the help for svmon for additional info
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.