Archives
« November 2009
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
     
       
Today
Click me to subscribe
Search

Links
 

Today's Page Hits: 22

« LDoms Have Arrived | Main | LDoms Docs and Downl... »
Monday May 14, 2007
Create a Temporary Pool for Your Zone and More

You can use zonecfg to dynamically create a pool for your zone when it is running.
zonecfg:new-zone> add dedicated-cpu
zonecfg:new-zone:dedicated-cpu> set ncpus=1-3
zonecfg:new-zone:dedicated-cpu> set importance=2
zonecfg:new-zone:dedicated-cpu> end

The capped-memory resource sets limits for physical, swap, and locked memory.
zonecfg:new-zone> add capped-memory
zonecfg:new-zone:capped-memory> set physical=50m
zonecfg:new-zone:capped-memory> set swap=100m
zonecfg:new-zone:capped-memory> set locked=30m
zonecfg:new-zone:capped-memory> end

You can specify zone-wide resource controls as global property names:
zonecfg:new-zone> set cpu-shares=5

There are two new ways to set the scheduling class:

The other new features in Solaris 10 7/07 and Solaris Express Developer Edition 5/07 include: Enhancements to rcapd and prstat and the ability to use the zonecfg command to configure the resource management settings for the global zone, and a new IP type in addition to shared-IP for non-global zones, exclusive-IP (dedicated network interface), specified in zonecfg:
zonecfg:new-zone> set ip-type=exclusive
zonecfg:new-zone> add net
zonecfg:new-zone:net> set physical=bge32001
zonecfg:new-zone> end

Some references for more information include: an advance copy of the System Administration Guide: Solaris Containers--Resource Management and Solaris Zones posted on the Zones community site, Jerry's blog on containers, and Donghai Han's Weblog on new IP functionality.

Posted at 12:07PM May 14, 2007 by Penelope Cotten in Sun  |  Comments[3]

Comments:

Notice how you have set physical to 50M and swap to 100M. Does that mean you have 100M total virtual memory available for the zone.. ie 50M RAM and 50M disk??

Posted by Jason on May 15, 2007 at 07:25 AM PDT #

I consulted with the engineers. As a first approximation I think you could say that having swap set to 100m means you have 100mof VM. If it were just additive then you would have 150m. If I get any more information, I will post another comment.

Posted by Penny Cotten on May 22, 2007 at 03:34 PM PDT #

Another response to Jason's question - You essentially have a 100Mb cap on "virtual memory" for the zone. This means that the zone cannot allocate more than 100Mb of anonymous memory. There is a caveat here. When using 50Mb of physical memory, the zone could still use more than 50Mb of disk swap. This is because sometimes the contents of physical memory are filesystem pages, not anonymous pages.

Posted by Penny Cotten on May 22, 2007 at 05:14 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed