# Solaris 10 11/06 moved the enabling of pools to SMF therefore to enable pools, use:
svcadm enable system/pools:default
svcadm enable system/pools/dynamic:default
# Create processor set
poolcfg -c 'create pset pset_batch (uint pset.min = 2; uint pset.max = 4)'
poolcfg -c 'modify pset pset_batch (string pset.comment="Batch processing")'
poolcfg -c 'transfer to pset pset_batch ( cpu 121; cpu 122 )'
# Create the pool
poolcfg -c 'create pool pool_appl1_batch'
poolcfg -c 'modify pool pool_appl1_batch (string pool.comment="appl1 batch")'
poolcfg -c 'associate pool pool_appl_batch (pset pset_batch)'
# Further pools can be created and associated with the same processor set:
poolcfg -c 'create pool pool_appl2_batch'
poolcfg -c 'modify pool pool_appl2_batch (string pool.comment="appl2 batch")'
poolcfg -c 'associate pool pool_app2_batch (pset pset_batch)'
# activate the config
pooladm -c
# After the pool has been configured, it can be bound to a zone:
poolbind -p pool_foo -i zoneid myzone
# To pin or unpin a CPU, use the pooladm commands:
poolcfg -c "modify cpu 166 (boolean cpu.pinned=true)"
poolcfg -c "modify cpu 167 (boolean cpu.pinned=false)"
pooladm -c
# To allow a processor set to take CPU from other pools when the server is as a whole is busy, it should have the utilisation option set, e.g.
poolcfg -c 'modify pset pset_foo ( string pset.poold.objectives="utilization < 90")'
# If the pool configuration is no longer required, remove the configuration & disable pools:
pooladm -x
pooladm -d
# Alternatively, for Solaris 10 11/06:
svcadm disable system/pools/dynamic:default
svcadm disable system/pools:default
# See also note on Solaris Projects
Friday, 11 July 2008
Solaris resource management
This isn't original, but then very little here is
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment