os command doubt===urgent
Hi experts,
I'm developing a c program in solaris machine. Iam stuck in a situation. I want to know the amount of virtual memory a particuliar process will take.for exmaple a process align.c is running currently. I want to know the amount of virtual memory align.c takes.......... Thanks in advance MS |
You could go with ps or prstat to get basic info.
|
try and visit /proc/ and change into the directory of the PID. you will see stuff that looks similar to the following:
Code:
bash-2.05# pwd |
"top" will help you apart from "ps" .
|
i don't think top is available as standard on Solaris though... you can get it from here though:
http://www.sunfreeware.com/ |
On a Solaris system, prstat offers similar information.
|
please don't use words like urgent, all our members are voluntary and it's not fair to ask for urgent replies etc...
|
Quote:
something like the 'ps -ef' command, but with the detail from the 'prstat' command is needed i think :D |
prstat works like the iostat and vmstat. You can specify the interval and count as options, ie prstat 1 1. top has a similar option to specify the number of interations.
|
wow! that's cool! :D
Code:
bash-2.05$ prstat 1 1 Code:
hobbs@turnip:~$ top -n 1 |
That's 1 second intervals and 1 count.
|
All times are GMT -5. The time now is 07:13 PM. |