Paging Space per process

This is my first post, and I am new to the UNIX world. Hopefully this question won't be too lame.

I know that I can use topas to see the paging space used by some processes. I would like to script something that can add up the paging space used by process owned by or associated with an application. I have experimented with svmon and ps -efl, but can't find any numbers or combination of numbers that come up with what topas displays. As I said before, I'd like my script to display the total amount of paging space used by , for example, root. The size column from the ps command seems to be the closest, but it is not the same as topas. How does topas determine it's numbers?

Thanks for the ideas in advance!

"svmon -U processOwner" is where this information can be found. The output is broken up into 4 main areas; totals, systems segments, exclusive segments, and shared segments. This should have all of the information you are looking for.

Jim Hirschauer