Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

paging space

Status
Not open for further replies.

ogniemi

Technical User
Nov 7, 2003
1,041
PL
Hello,

Does anyone know how to check paging space page numbers used by a process? I need to store it automaticaly in a file for further processing by script run every 5 minutes.


topas shows it but I don't know how to redirect the output on 1 interval every 5 minutes to a file.


Topas Monitor for host: aix52interval: 1 Wed Nov 19 11:24:29 2003

DATA TEXT PAGE PGFAULTS
USER PID PPID PRI NI RES RES SPACE TIME CPU% I/O OTH COMMAND
root 12970 8352 60 20 590 150 590 28:12 0.0 221 5682 IBM.CSMAg
root 8044 1 60 20 157 2 157 2:32 0.0 3452873 syncd
root 3612 0 37 41 16 0 16 1:59 0.0 0 21 gil
root 19174 1 60 20 5 0 5 0:46 0.0 5 825 nfsd
root 5276 8352 60 20 577 187 579 0:24 0.0 436 3850 rmcd



regards,M.
 
ok, I think svmon will help me.

thx,M.
 
Well you don't need topas or svmon.
The same info could be obtained by running
ps -efo "%p %z %a"
The 1st column is the PID
The 2nd column is the virtual memory size used by the proc
The 3rd column is the command issued to run the process

So you can run this command piped with something else to catch the virtual memory used by the interesting proc
 
Is there a way to redirect topas to a file without the control characters imbedded ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top