The OS will still display the whole amount of RAM with these RM entries ...
You cannot use it, but the installation scripts and other tools using the
usual OS command will still see the real RAM and configure their stuff as
is ...

bash-3.00# uname -a
SunOS sunny 5.10 Generic_127127-06 sun4u sparc SUNW,Ultra-60
bash-3.00# zonename
bash-3.00# prtconf | head -3
System Configuration:  Sun Microsystems  sun4u
Memory size: 1536 Megabytes
System Peripherals (Software Nodes):
bash-3.00# tail -100 /etc/zones/gmartinez.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE zone PUBLIC "-//Sun Microsystems Inc//DTD Zones//EN" "
    DO NOT EDIT THIS FILE.  Use zonecfg(1M) instead.
<zone name="gmartinez" zonepath="/export/home/gmartinez" autoboot="true">
  <inherited-pkg-dir directory="/lib"/>
  <inherited-pkg-dir directory="/platform"/>
  <inherited-pkg-dir directory="/sbin"/>
  <inherited-pkg-dir directory="/usr"/>
  <network address="" physical="hme0"/>
  <rctl name="zone.max-swap">
    <rctl-value priv="privileged" limit="144857600" action="deny"/>
  <mcap physcap="100428800"/>
  <rctl name="zone.cpu-cap">
    <rctl-value priv="privileged" limit="40" action="deny"/>
bash-3.00# zlogin gmartinez
[Connected to zone 'gmartinez' pts/7]
Last login: Sat Mar 15 20:16:21 on pts/7
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
# prtconf
System Configuration:  Sun Microsystems  sun4u
Memory size: 1536 Megabytes
System Peripherals (Software Nodes):
prtconf: devinfo facility not available

On Sat, Mar 15, 2008 at 7:51 PM, Mike Gerdts <[EMAIL PROTECTED]> wrote:

> If you are Solaris 10 Update 4 (8/07) or at least have recent patches
> installed you can set various parameters that can be useful.
> >From http://docs.sun.com/app/docs/doc/816-5166/6mbb1kqlf?a=view:
> zonecfg:my-zone3> add capped-memory
> zonecfg:my-zone3:capped-memory> set physical=50m
> zonecfg:my-zone3:capped-memory> set swap=100m
> zonecfg:my-zone3:capped-memory> end
> zonecfg:myzone3> exit
> Also see:
> http://opensolaris.org/os/community/zones/files/Zones_RM_Improvements.html
> http://blogs.sun.com/menno/entry/system_v_ipc_resource_controls
> http://opensolaris.org/jive/thread.jspa?messageID=156766
> http://mail.opensolaris.org/pipermail/zfs-discuss/2006-August/033717.html
>   (prstat and rcapd are much better about counting memory
>   now, but I would still contend that if rcapd has to do any
>   work it will induce poor performance across all workloads)
> --
> Mike Gerdts
> http://mgerdts.blogspot.com/
>  _______________________________________________
> zones-discuss mailing list
> zones-discuss@opensolaris.org

Gael Martinez
zones-discuss mailing list

Reply via email to