Hi aetius1980,
Direct answer to your queries:
1. how to calculate total shares:
Sum of all the shares values allocated to each VM. In you case, Sum (8000+16000+4000+1000+.........) for all the VMs.
2. the % of shares:
Say Total shares are 12000 and VM1 has share value 1000.
Then % shares is : 1000x100/12000 =aprox. 8 %.
3. worst case allocation - mhz:
:The amount of (CPU or memory) resource that is allocated to the virtual machine based on user-configured resource allocation policies (for example, reservation, shares and limit), and with the assumption that all virtual machines in the cluster consume their full amount of allocated resources. The values for this field must be updated manually by pressing the F5 key. )
Refer:VMware vSphere 4 - ESX and vCenter Server
I am still investigating how it is calculated.
4. Would 8000 shares at normal priority equate to 0.5%?
No. It will not be 0.5%. still it would be 1%
I tested this in my environment with smaller setup (3 hosts and 2 VMs each with same configuration), for % share calculation, VMware has just considered sum of shares (not the priority).
In your case, we can see 8000-high=1% & even 8000-normal also =1%. Hence priority is not considered. This needs more investigation, I will come back to you.
My observation:
1. share values changes with different capacity host.
ex. In my case
H1 has 8 CPUs x 2.127 GHz CPU core (from host summary page) : Normal CPU share value was "1000": Hence all the VMs on this host will get share values wrt 1000. (In ratio 4:2:1)
H2 has 8 CPUs x 2.393 GHz CPU core: Normal CPU share value was "2000":Hence all the VMs on this host will get share values wrt 2000. (In 4:2:1)
Overall above observation shows that, as per UI : shares values are important than priority itself if the cluster is having hosts with different capacity but still this needs to be investigated and clarified.
I will be back on further investigation.