Memory usage, free and used, using sar, top and vmstat in Solaris zone/container
Hi all,
I have a server running an Oracle database that is part of a Solaris M5000 container. Presumably this is referred to as a zone within a cluster, not sure if I get the terminology right.
Anyway, a third-party manages the zone and unfortunately is not "helpful/friendly" to assist me on how to check memory usage. Only info I got is that the server has been capped with a 8192M of memory.
Output from top shows as below:
I assume this means the server has been allocated 8192M out of the container total of 72G.
Now I need to increase some Oracle parameter which presumably may or may not require more than the 8192M that the server has been allocated at the moment. Before doing that though, I want to know what is the current usage and free memory out of the 8129M that is currently allocated.
I thought if I run vmstat, it will show me how much of the 8192M is free but that does not seem to be the case.
The output of vmstat command is as below. The value under the free column seems to be for the whole Solaris container or am I wrong? How do I calculate how much of the allocated 8129M is used and how much is free?
Or should I be calculating the free memory of the zone as the (value of free from vmstat) - (value of free from top) in which case the memory used should then be 8192-((value of free from vmstat) - (value of free from top))
I also tried using sar -r 5 10 and the output is as below and I should be able to get freemem =freemem*8 (pagesize=8k), is this correct? How to check what is the pagesize or is it always 8k for Solaris?
So for the sar output below, freemem = (10035380*8)/1024 = 78401.40625M, is this correct?
Alternatively, is there any other command that I can use to show memory used and free memory for the zone but not for the full container.
Any advise will be very much appreciated. Thanks in advance.
HI ,
I am wrirting a script for checking the performance monitoring on Linux System when my application is running.
I have to run a test for 30 minutes on some server and while the test is running i have to capture the perfromance metrics of Linux through vmstat , sar, mpstat, free.
here is the... (3 Replies)
Its rather confusing, the output of top command is below:
The "swap" field of top is described by the manpage as: "The swapped out portion of a task's total virtual memory image."
But the output of free command suggests something else and it does tally with the output of swapon... (3 Replies)
Hi Admins,
Management asked me to submit last 3 months memory usage as part of quaterly capacity report.Last month only we have configured monitoring tool.So i cant use the tool to obtain the data.What i have is vmstat output for the last 3 months.
How can i calculate memory usage using... (1 Reply)
Hi everyone!
I am in dire need to know what are the differences between a solaris zone and a solaris container.. Explanations over the net are very confusing. Please help. Thanks! (8 Replies)
Hi All,
We have a server with Solaris 10 installed. The total memory of the server is 64GB. In order to check the memory info of the server I use "top" utility that gives me total and free memory in real-time.
I have also installed a Sun container (non-global zone) on top of parent operating... (4 Replies)
Hi all,
OS Version:
SunOS <hostname> 5.10 Generic_142900-13 sun4v sparc SUNW,Sun-Blade-T6340
I need some expert guidance on investigating memory usage on Solaris. I want to know whether am interpreting the output from ps -efl correctly and whether the command top is showing the right... (3 Replies)
Hi Export,
i execute 'top' command to show the free memory in Solaris host, but the read is much lower than the RSS value shown in prstat command. Which one can reflect the real status and it is possible the difference caused by any patch of OS?
Top command (only 883 memory is free)... (3 Replies)
Refer from title:
How can i get memory used or anything that can show memory from sar file
example on solaris:-
we can use sar with option to show memory used at time that sar crontab run.
on HP-UX, it not has option to see memory used. But i think it may be have some parameter or some... (1 Reply)
Hello all
im working on sunos machine that dont have the top installed and can't be
install , now i need to get information similar to what top gives me about the cpu usage and so
can it be done somehow else where ? (3 Replies)
Hi there,
I´m trying to get the information of vmstat & top in two different logfiles.
That not that difficult.
vmstat 30 >> myfile.log
top >> myfile2.log
But I also like to include a timestamp every 30 sec to be sure from what date the logs are.
For the Top command I were able to... (2 Replies)