On Solaris, how can I find out how much swap space a given process is occupying?
Or even better, how can I list all running processes sorted by swap space usage?
I'm asking this particulary for Solaris. I do not have the top
command available and neither prstat
nor swap
seem to be able to provide information about how much swap space a given process is using.
Best Answer
You can use the command:
to see all the memory statistics, including swap usage.
With little shell magic you can wrap it in a bash loop:
Output is in bytes, in a format: