Projects

Create a project :

# projadd -U root,webservd -p 100 demos

Rcap

Modify a project to setup a max rss value, enable rcapd daemon, and start a weblogic server inside the project demos :

# projmod -K rcap.mas-rss=1024M demos
# rcapd -E 
# newtask -p demos ./weblogic.sh start

Pools

In the following example, I have a bi-cpu box which run “guest” zones. I want to these zones can only use one cpu (while the other can use two.

Create a cpu set

# poolcfg -c 'create pset pset_guest ( uint pset.min = 1; uint pset.max = 1)'

Create a pool

# poolcfg -c 'create pool pool_guest'

Associate the cpu set

# poolcfg -c 'associate pool pool_guest (pset pset_guest)'

Commit the configuration

# pooladm -c

Bind a zone to a pool

# poolbind -p pool_guest -i zoneid <zonename>

Tasks

Create a project
# projadd -U root -p 100 sunoneds
Move a process into a project
# newtask -v -p sunoneds 100