Visit The New, Modern Unix Linux Community


zone breaching 'capped-memory' threshold


 
Thread Tools Search this Thread
Operating Systems Solaris zone breaching 'capped-memory' threshold
# 1  
zone breaching 'capped-memory' threshold

Calling upon all Solaris zone experts.

I have a Sun T3-1 that is running a few whole-root zones. I've set the 'capped-memory' setting on all the zones.

However, I have a problem on the one zone. Under load it uses more memory that has been allocated to it.

Code:
zonecfg -z sunrep02 export

...
add capped-memory
set physical=8G
end
...

When I run 'top' inside the zone it reports the correct memory

Code:
Memory: 8192M phys mem

Yesterday I had a problem with a rogue Oracle process and the zone managed to use more than the capped size of 8GB

The global zone has 16GB of RAM, so the sunrep02 zone should never use more than 50%.

Running 'prstat -Z' in the global zone returned the following:

Code:
...
     3      146   15G   10G    66%   3:40:36 0.5% sunrep02
...

In this instance it managed to grap 66% of the global zone's physical memory.

How is it possible for the zone to use more than 8GB of memory? Am I missing something in my zone's config?

Many thanks
# 2  
I think you need to set locked attribute to some value.
Please post output of the following command
Code:
#zonecfg -z sunrep02 info

# 3  
Code:
sundb02 root > zonecfg -z sunrep02 info
zonename: sunrep02
zonepath: /zones/sunrep02
brand: native
autoboot: true
bootargs:
pool: oracle-pool
limitpriv:
scheduling-class:
ip-type: shared
hostid:
fs:
        dir: /dpp/live01
        special: pool01/dpp_live01
        raw not specified
        type: zfs
        options: []
fs:
        dir: /dpp/live02
        special: pool01/dpp_live02
        raw not specified
        type: zfs
        options: []
fs:
        dir: /dpp/live03
        special: pool01/dpp_live03
        raw not specified
        type: zfs
        options: []
fs:
        dir: /dpp/live04
        special: pool01/dpp_live04
        raw not specified
        type: zfs
        options: []
fs:
        dir: /dpp/uat01
        special: pool02/dpp_uat01
        raw not specified
        type: zfs
        options: []
fs:
        dir: /dpp/uat02
        special: pool02/dpp_uat02
        raw not specified
        type: zfs
        options: []
fs:
        dir: /dpp/uat03
        special: pool02/dpp_uat03
        raw not specified
        type: zfs
        options: []
fs:
        dir: /tpp/oracle
        special: pool02/tpp_oracle
        raw not specified
        type: zfs
        options: []
fs:
        dir: /dpp/test01
        special: pool03/dpp_test01
        raw not specified
        type: zfs
        options: []
fs:
        dir: /dpp/test02
        special: pool03/dpp_test02
        raw not specified
        type: zfs
        options: []
fs:
        dir: /dpp/test03
        special: pool03/dpp_test03
        raw not specified
        type: zfs
        options: []
fs:
        dir: /app/first
        special: pool03/app_first
        raw not specified
        type: zfs
        options: []
net:
        address: x.x.x.x
        physical: igb0
        defrouter not specified
capped-memory:
        physical: 8G
attr:
        name: comment
        type: string
        value: "SUNREP02 zone"

# 4  
Code:
#rcapadm -z sunrep02  -m 8G

Code:
# zonecfg -z sunrep02

    zonecfg:my-zone> select capped-memory
    zonecfg:zone:capped-memory> set physical=8G
    zonecfg:zone:capped-memory> set swap=10G
    zonecfg:zone:capped-memory> set locked=8G
    zonecfg:zone:capped-memory> end
    zonecfg:zone:> commit

# 5  
MySQL

Thanks h@foorsa.biz

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #903
Difficulty: Medium
There are less than 10 million lines of code in the Linux kernel as of 2018.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

High Memory threshold notification script

Hello Folks, I have created the script which use to send email notification when server memory breach the threshold limits. Script works fine, but the issue is sometimes i am receiving mail alerts for lower threshold memory also. Please let me know why and any updates required in script? ... (7 Replies)
Discussion started by: seenuvasan1985
7 Replies

2. Solaris

How the free memory threshold?

If I understand your question correctly, you are asking for an explanation of Solaris memory manager. You'd better ask Oracle that question because you are talking about Solaris kernel internals. The operating system kernel has no reason to kick a process's memory set out of real memory until... (4 Replies)
Discussion started by: hicksd8
4 Replies

3. Solaris

Finding capped memory of a non global zone

Is there a way to find the capped memory of a solaris non global zone from the non global zone itself (given rcapd is disabled) (6 Replies)
Discussion started by: CuriousDev
6 Replies

4. Solaris

Zone memory issue

We have a zone configured in our X4600 machine with memory capped to 16GB. Most of the time zone is running with high physical memory utilization. It seems from "top" command shows that the command "kernel" is locks 15GB phy. memory and not using swap memory. Whenever we restart the application... (2 Replies)
Discussion started by: rock123
2 Replies

5. UNIX for Dummies Questions & Answers

Threshold for swap memory

hi guys the monitoring team is using a tool for monitoring linux boxes and they set an alarm for swap memory to 10%(critical) I really has no idea when swap memory usage is high.... Can someone recommend me a threshold for this? when is warning or critical and this parameters can affect... (3 Replies)
Discussion started by: karlochacon
3 Replies

6. Solaris

restrcit physical memory with zone.max-locked-memory

Is it possible to restrict physical memory in solaris zone with zone.max-locked-memory just like we can do with rcapd ? I do not want to used rcapd (1 Reply)
Discussion started by: fugitive
1 Replies

7. Solaris

Reserve Memory for Global Zone

We have several containers on one machine and would like to reserve some memory for the global zone. capped-memory only allows max physical/swap and setting a max on each container isn't an option. The server has 32GB physical and 30GB swap. Currently there are ten containers on it. Normally... (6 Replies)
Discussion started by: kharjahn
6 Replies

8. Solaris

Memory usuage per zone in solaris

Hello all, How can i find the memory usuage per zone in solaris. (5 Replies)
Discussion started by: sophos
5 Replies

9. Solaris

How to find memory size on solaris zone

Guys, How to find memory size on solaris zone? We have total 16 GB and have 3 zone, but not sure how to find memory size for each zone? Please help. (1 Reply)
Discussion started by: mokkan
1 Replies

10. Solaris

capped-memory in zone

How does capped-memory work in zones? I have 32G of memory and 10 zones. I want about physical=4G and swap=4G in each zone. Is this possible? I am going over the 32G. (1 Reply)
Discussion started by: photon
1 Replies

Featured Tech Videos