LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   free and top not found in Solaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/free-and-top-not-found-in-solaris-925922/)

alvincorrea 01-27-2012 01:19 AM

free and top not found in Solaris
 
I am trying to check the memory of my Solaris 10 10/09 s10s_u8wos_08a SPARC box
I am a newbie in Solaris commands hence i surfed the web which yielded in top and free commands but both these commands were not be found .Maybe they are not properly installed

Please could anyone guide me how to install top and free .I checked sunfreeware.com for any packages but couldnt find anything useful

Please could anyone help

Thanks

bathory 01-27-2012 02:14 AM

Hi,

top exists in sunfreeware (direct link)
Regarding free, you can use vmstat, or sar. Take a look at their manpages for details

Regards

alvincorrea 01-27-2012 02:29 AM

Thanks a lot Bathory, somehow had missed top in sunfreeware I will take a shot at that


sar also gave me errors
Code:

# sar -r
sar: can't open /var/adm/sa/sa27
No such file or directory

May be need to find a package for this too :)
For the time being i got what i needed from
Code:

prtdiag -v

bathory 01-27-2012 03:14 AM

Quote:

sar also gave me errors
Code:

# sar -r
sar: can't open /var/adm/sa/sa27
No such file or directory
Well, sar is usually run from a cronjob to gather statistics in the file /var/adm/sa/sadd (where dd is the current date). You can run it from command line like this:
Code:

sar -r 10 6
The above command runs every 10sec and gives 6 reports (i.e. memory usage in a minute). You might take a took here for more details

Regards

jlliagre 01-27-2012 04:16 AM

Quote:

Originally Posted by alvincorrea (Post 4585604)
Please could anyone guide me how to install top and free .

Instead of top which isn't standard on Solaris, you can use prstat. eg:
Code:

prstat -a
prstat -Z

free is probably Linux specific, for detailed memory statistics on Solaris, run (as root):
Code:

echo ::memstat | mdb -k

alvincorrea 01-31-2012 01:47 AM

thanks a lot Jiilliarge
Code:

echo ::memstat | mdb -k
was very useful for me


All times are GMT -5. The time now is 08:46 AM.