Resource Capping Help!

Hi guys.

Quick question for some hopefully :wink:

When using resource capping (for CPU in this case). If a container is restricted to use a single CPU/core, are the other containers intelligent enough to know that they have fewer CPU's available to them?

My question relates to a T2000 which is 8core. I want to restrict one zone to use only a single core while the other remain unrestricted, Would the other zone still think they've got 8core available to them though?

Ta

Take a look at the dedicated-cpu property of the zonecfg tool: zonecfg(1M) (man pages section 1M: System Administration Commands)

No, they are intelligent enough to know they (potentially) still have all of the CPUs available. The other containers are not implicitly capped.

Sure, they'll have the CPUs available (more precisely all zones will still share all of the CPUs).
By the way, if you want to cap the container to one core on a T2000, make sure you set ncpu to 8, not 1.

thats great thanks.

i did wonder if the machine was capable of taking that core out of use as it were to other zones, but i guess not.

thanks guys

The machine is capable to do it too, just use dedicated-cpu, as already suggested by bartus11, not capped-cpu.

thanks guys....just me being stupid and not reading things correctly :wink:

ta

pooladm is the best way to go. I had this excercise when I had to enforce Oracle licensing. Only latest versions of solaris 10 will allow dedicated cpu parameters to be used within the zone.

Therefore I tend to use pooladm / set up dedicated processor pools, align the zone to use them. This means that when in the zone, if you do a `mpstat` you will see on the number of dedicated cpus. If you use the zonecfg configuration method, `mpstat` will show all cpus from the GZ.

pooladm -c / see /etc/pooladm.conf

SBK

Cheers matey.

I'll take a look at it as well.

Thanks