P-Tools Demo (2 Minutes)
Description
This demo showcases some of the p-tools which are less known and can be very handy.
OpenSolaris Versions Supported
2008.05 or newer.
Points to Hit
- P-tools can help you analyze what's going on with the processes on your system.
- prstat is similar to top on Linux and the Windows Task Manager on Windows
Demo Prep
Start OpenOffice (if not already running)
Gotchas
None known.
Demo
- Show that OpenOffice is running
- prstat Make note of the PID for OpenOffice. Point out the stats that are available, including the # of LWP. Note that top is also available (show it if you like).
- pfiles <pid> shows the files that OpenOffice has open, and in which mode, etc. If your have a presentation open, it should be listed last.
- pstack <pid> shows stack traces for all OpenOffice threads. The number of traces should match the number of LWPs from prstat/top
- pwdx <pid> shows the current working directory for OpenOffice.
- man pfiles shows all the p-file commands: pldd, pcred, pflags, etc.
Demo Cleanup
None.