Memory usage in a Solaris Container


 
Thread Tools Search this Thread
Operating Systems Solaris Memory usage in a Solaris Container
# 1  
Old 01-24-2011
Memory usage in a Solaris Container

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 system (global zone). Now in order to check the memory utilization I use the same "top" utility even here, but the output is something absurd.

So is there any way or a third party utility ( like top) that would give me total memory present and memory free/usage within the container.

Thanks....
# 2  
Old 01-24-2011
Memory utilization is measured by paging. The other metrics are just fluff. Free memory occurs when a program exits, and the "RAM mapped to swap" is utterly freed, but that is just a fluke of circumstance. It the system needed a page for anyone's page fault, it is nice if it can find free pages, but normally it just takes idle pages with no or little harm done to anyone else's throughput. If idle pages come back in use, then the page needs to be re-established in a new RAM page. If that happens too often, you have too little RAM for your working sets or an inadvertant RAM hog. What is a RAM hog? Well, I once wrote a fast fgrep that used mmap(), and tested it with every readable file. It rolled every non-wired page of every other app out and filled RAM with pages from files that nobody would reference again. Even when a file is not mmap()'d any more, and the app that mmap()'d it has exited, it remains in RAM timing out in case another app wants to mmap() the same file page. I apoloigized to the other developers, and made a mental note about VM's limitations. Late model Solaris has taken to doing read i/o using mmap(), so . . . .
# 3  
Old 01-24-2011
it is better to use the solaris internal tools for that kind of reporting... have a look at "prstat" which is similar to top and has a lot of options, even for container... (prstat -Z).
This User Gave Thanks to DukeNuke2 For This Post:
# 4  
Old 01-24-2011
I use
Code:
prstat -Z

to see how much memory a container is using. Run from the global zone, this shows me how much memory each container is using compared to the other containers and the global zone.


HTH
This User Gave Thanks to bluescreen For This Post:
# 5  
Old 01-24-2011
Thanks DukeNuke2..

prstat -Z is a good command. I was able to fetch the required details using its output.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to find out the memory usage in Solaris?

Hi All, In one of the solaris box aslert got triggered as ... (Used_Real_Mem_Pct=93.0 Used_Swap_Space_Pct=75.0 )] when i see the usage by vmstat and sar i am not able to relate the alert with the free memory and swap memory please help to understand the vmstat output as below.. kthr ... (4 Replies)
Discussion started by: Riverstone
4 Replies

2. Solaris

Solaris memory usage

One of my Solaris Unix server has total RAM 128G . top & vmstat command shows free memory is 86G and usage is 42G. ps -eo pid,rss,commshows memory usage by process. when i sum all the memory usage by the process, it shows 1.9TB as shown below. $ ps -eo pid,pmem,vsz,rss,comm | sort -rnk2 |... (5 Replies)
Discussion started by: baladelaware73
5 Replies

3. Solaris

Solaris 10: Listing the memory usage based on UNIX user wise.

Hello All I have a Solaris 10 machine, wherein processes are run in various unix users. a. How do I list the memory usage per user? b. Can I get a top command kind of output per user rather than entire machine? Thanks Sunil Kumar (3 Replies)
Discussion started by: msgforsunil
3 Replies

4. Solaris

Solaris Memory usage by oracle, java

Hello Gurus, In Office, I have unix Solaris Server. Oracle and Java is installed on Solaris Server. Oracle when starts then oracle loads SGA, PGA memory and graps solaris server memory. In the same manner java and other applications grabs memory for them. I want memory distribution of... (4 Replies)
Discussion started by: get_chandrakant
4 Replies

5. Solaris

Oracle memory usage on Solaris box

I am working on Oracle 2 node RAC 10.2.0.4 on Solaris 10 T2000 kit. The box has around 32G of memory of which 24G is used by oracle user. There is 3G of free memory on the box. Sga max is set to 5G and while checking v$pgastat i see that maximum pga memory memory allocated was 6.5G. So oracle... (29 Replies)
Discussion started by: prabumohan
29 Replies

6. Solaris

HELP - memory usage on Solaris : ps -efl and top

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)
Discussion started by: newbie_01
3 Replies

7. Solaris

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... (1 Reply)
Discussion started by: newbie_01
1 Replies

8. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

9. Solaris

Memory usage in Solaris - memory not freed?

Hi, I'm running a multi-process software system on a Solaris 8 machine. When I monitor the memory usage, I see that the free memory is dropping rapidly, but I can't detect a process that uses this memory. I'm using "top" to get the free memory and the memory usage of processes. Thanks. (3 Replies)
Discussion started by: gewurtz
3 Replies

10. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies
Login or Register to Ask a Question