When you use "capped-cpu" in a zone configuration, you limit the amount of cpu resources this zone can consume. It does not guarantee the availability of those resources to the zone. Therefore, you can create 100s of zones, each with "capped-cpu=5" on a system with only a small number of cpus. They will all compete for available resources, the cap will make sure that none of them exceeds the 5cpu limit. If you want to guarantee cpu resources to a zone, you'd need to use dedicated-cpu or cpu shares.
Here is what I was able to find.
REF: Oracle Partitioning Policy
REF: Best Practices for Running Oracle Databases in Oracle Solaris Containers
Administering Resource Management in Oracle® Solaris 11.2
so a zone start with let`s say 1 vcpu and can have max of 5 vcpus,but can run with 4vcpus if there is high competition to vcpu resource by other zone,even if the application in that zone require 5 vcpus.right?
capped-memory=1Gb does not guarantee that zone has available 1 Gb RAM.right?
The zone will start with a limit of 5 cpu shares. This does not guarantee a minimum, e.g. no reservations. Only a maximum.
As for memory, it is the same behavior. Only a maximum allowed, no reservations.
This video is a nice overview, but definitely dig into the Solaris documentation for better understanding. This is a very broad subject and can't be taught in a thread. I hope you enjoy reading.
Edit: the above link isn't working for me. Search on MOS for Doc ID 1007175.1
And, maybe this link will work?
Edit 2: Links I'm trying to embed are not working. Search for the Doc ID 1007175.1