Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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..........
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.
hobbs@turnip:~$ top -n 1
94 processes: 90 sleeping, 4 running, 0 zombie, 0 stopped
CPU states: 8.6% user, 4.7% system, 85.9% nice, 0.9% idle
Mem: 190472K total, 162236K used, 28236K free, 14496K buffers
Swap: 498004K total, 4660K used, 493344K free, 72964K cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
3081 hobbs 20 19 14284 13M 608 R N 44.7 7.4 336:06 setiathome
3118 hobbs 19 19 576 576 504 R N 43.8 0.3 335:53 dnetc
30225 hobbs 18 0 976 976 748 R 8.2 0.5 0:00 top
1 root 8 0 480 436 416 S 0.0 0.2 0:12 init
2 root 9 0 0 0 0 SW 0.0 0.0 0:00 keventd
3 root 19 19 0 0 0 SWN 0.0 0.0 0:00 ksoftirqd_CPU0
<<snip>>
hobbs@turnip:~$
what does the first 1 and the second 1 do to the prstat command though? i can't find anything about it in the man pages... 'prstat 1' appears to do exactly the same as 'prstat'... but when the second 1 is added, it only does one iteration!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.