Hudratronium commented on issue #6744:
URL: https://github.com/apache/cloudstack/issues/6744#issuecomment-1251588583

   > Unless something has changed, CloudStack will not block 1 physical core on 
the host per vCPU. The cloudstack allocators just sum the MHz available on the 
host (host cores * speed) and sum the MHz required to run the offering, and 
subtract each instance's required MHz from the available MHz on the hypervisor 
host. I know that at some point in the last decade someone added the concept of 
"CPU cores" as a distinct resource to CloudStack, visible on the dashboard, but 
you can easily exceed that number.
   
   You are completely right - looking at a trace-log i have to admitt that I 
missed the step where the "definition" of cpu switched from cores & speed to 
the actual used product of cores * frequency for allocation purposes.
   
   > Yes, this is why a scale down should work fine, as the proportion is what 
is important, not the raw value. Just scaling down by a factor of 100 when 
defining the shares in libvirt should work. The main issue is lack of 
granularity as anything lower than 100MHz offering would still get 1 share. 
Probably not a real issue :-)
   
   Not that i think this will ever happen, but at least you will need to use 
200MHz otherwise the value would be to low to be accepted as a 'shares' value 
:-D


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to