Solaris 10 : Memory Capping Query


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 10 : Memory Capping Query
# 1  
Old 10-20-2008
Solaris 10 : Memory Capping Query

Hi Folks,
Im running solaris 10 8/07 and im trying to set up some memory capping within zones for the system project.

ie.
zone1# cat /etc/project
system:0::::rcap.max-rss=41943040
user.root:1::::
noproject:2::::
default:3::::
group.staff:10::::

zone2# cat /etc/project
system:0::::rcap.max-rss=31457280
user.root:1::::
noproject:2::::
default:3::::
group.staff:10::::


Now this seems to to work fine as when I check this Im getting the results I expect to see.
ie

zone1# rcapstat
id project nproc vm rss cap at avgat pg avgpg
0 system 30 192M 84M 40M 37G 0K 11G 0K

zone2# rcapstat
id project nproc vm rss cap at avgat pg avgpg
0 system 30 240M 31M 30M 42G 0K 11G 0K



However, when I check the memory usage of these zones from the global zone I get different results..

root@au11qap1i0tels2 [112] > prstat -n16 -Z


ZONEID NPROC SWAP RSS MEMORY TIME CPU ZONE
5 33 193M 84M 0.5% 0:05:43 0.3% zone1
6 33 240M 71M 0.4% 0:05:43 0.3% zone2
0 68 783M 798M 4.9% 19:05:07 0.0% global



Can someone let me know if this is a quirk with the way the rcapd communicates with the global zone ? or is something not right here ?

Thanx in advance.
# 2  
Old 10-20-2008
DOH ! worked it out. the output im seeing is actually correct.
so the next question i have is, is there a way i can see the memory capping of individual zones from the global zone where the memory capping is set withing a zone ??
# 3  
Old 10-20-2008
what did you do exactly to work this out?
# 4  
Old 10-21-2008
Quote:
Originally Posted by pupp
what did you do exactly to work this out?
ok, well the issue was with me not understanding the rcapstat command clearly. ie. im new to sol 10 so just playing around with it.
basically the rcapstat is showing us the memory caps defined in each zone. so for the example above its 40m and 30m.

however, when we run prstat from the global zone its showing ALL the memory being used by the zone which includes the capping set up for system.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Memory capping Solaris 11.3

I want to allocate RAM : 64GB (Dedicated allocation) Swap : 8GB Please assist and recommend the correct capping values capped-memory: physical: XXG Had allocated physical=64GB, Swap=8GB, and locaked 16GB and found my non-global zone were unable to use... (1 Reply)
Discussion started by: Shirishlnx
1 Replies

2. Solaris

Need to understand CPU capping in Zones

Hi All I am using below command to do zone capping #zonecfg -z zone1 zonecfg:zone1> zonecfg:zone1>add capped-cpu zonecfg:zone1>capped-cpu> set ncpus=2 zonecfg:zone1>capped-cpu> end zonecfg:zone1> commit zonecfg:zone1> exit It means that it can used two CPUs in zone1 then I run... (5 Replies)
Discussion started by: sb200
5 Replies

3. Solaris

[DOUBT] Memory high in idle process on Solaris 10 (Memory Utilization > 90%)

Hi Experts, Our servers running Solaris 10 with SAP Application. The memory utilization always >90%, but the process on SAP is too less even nothing. Why memory utilization on solaris always looks high? I have statement about memory on solaris, is this true: Memory in solaris is used for... (4 Replies)
Discussion started by: edydsuranta
4 Replies

4. UNIX for Advanced & Expert Users

Query regarding swap memory

Hi, Please help explain and answer the below: 1. I need to predetermine how much swap will my JVM use if it is started with -Xms 512M and -Xmx 1024M ? 2. Can a JVM process just use the Heap and not the Swap memory ? 3. If the Total physical RAM on my server is 8 GB and current Heap... (6 Replies)
Discussion started by: mohtashims
6 Replies

5. Programming

Memory Allocation Query

When we dynamically allocate the memory say 100 integers say int *x = new int(1000); then does entire chunk of memory gets allocated at once after the completion of the statement? I mean will the the concept of page fault come into picture over here? (3 Replies)
Discussion started by: rupeshkp728
3 Replies

6. Solaris

Resource Capping Help!

Hi guys. Quick question for some hopefully ;-) When using resource capping (for CPU in this case). If a container is restricted to use a single CPU/core, are the other containers intelligent enough to know that they have fewer CPU's available to them? My question relates to a T2000 which... (7 Replies)
Discussion started by: boneyard
7 Replies

7. Red Hat

Query on RAM Memory

Hi Experts, I have a linux system , which triggers a alarm if RAM memory goes above 70%... When i see top command i cant find any process utilizing much of memory .. Can anyone tell me what could be the reason for high memory utilization.. Bellow is the free command o/p: free ... (14 Replies)
Discussion started by: shaliniyadav
14 Replies

8. Solaris

Solaris 10 - capping CPU

Hi all I've purchased a T3-1 server. The T3-1 has a 16 core CPU. I want to create a zone to install an Oracle DB server in. Due to Oracle licensing issues I want to limit the zone to 8 cores. I've done some research and it seems there are 2 ways of setting a CPU core limit for a zone. 1. ... (0 Replies)
Discussion started by: soliberus
0 Replies

9. Solaris

How to find Total and Free Physical Memory and Logical Memory in SOLARIS 9

Hi, Im working on Solaris 9 on SPARC-32 bit running on an Ultra-80, and I have to find out the following:- 1. Total Physical Memory in the system(total RAM). 2. Available Physical Memory(i.e. RAM Usage) 3. Total (Logical) Memory in the system 4. Available (Logical) Memory. I know... (4 Replies)
Discussion started by: 0ktalmagik
4 Replies

10. 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
Login or Register to Ask a Question