
Hi, When trying to pin a VM CPU's to Physical CPU's, I'm getting this error in case the number of physical CPU slots are > 35 (e.g. 40): Error attempting to pin CPUs. Full error: Fault reason is "Operation Failed". Fault detail is "[size must be between 0 and 4000, Attribute: vmStatic.cpuPinning]". HTTP response code is "400". HTTP response message is "Bad Request". It is working for me up to 35 physical CPU's. but above it, I get that error. Can you please tell what this error means and how to overcome it? Version we are using is: 4.3.6.6-1.0.9.el7 Thanks, Lavi

On Thu, Mar 11, 2021 at 4:27 PM lavi.buchnik--- via Users <users@ovirt.org> wrote:
Hi,
When trying to pin a VM CPU's to Physical CPU's, I'm getting this error in case the number of physical CPU slots are > 35 (e.g. 40):
Error attempting to pin CPUs. Full error: Fault reason is "Operation Failed". Fault detail is "[size must be between 0 and 4000, Attribute: vmStatic.cpuPinning]". HTTP response code is "400". HTTP response message is "Bad Request".
It is working for me up to 35 physical CPU's. but above it, I get that error.
Can you please tell what this error means and how to overcome it? Version we are using is: 4.3.6.6-1.0.9.el7
You've specified a pinning-string that is longer than 4K characters - the pinning string shouldn't be that long..
Thanks, Lavi _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/TBC5WUEKU7Y4KG...

Hi Arik, I'm using this tool to pin the VM cpu's: olvm-vmcontrol -m <ENGINE> -u api_cpu_pin@internal -v <VM> -c setvcpu -s 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55 -e Thanks, Lavi

On Thu, Mar 11, 2021 at 5:20 PM lavi.buchnik--- via Users <users@ovirt.org> wrote:
Hi Arik,
I'm using this tool to pin the VM cpu's: olvm-vmcontrol -m <ENGINE> -u api_cpu_pin@internal -v <VM> -c setvcpu -s 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55 -e
So there's probably a bug in that olvm-vmcontrol thingie, I don't know how it generates the pinning string You can write your own script to generate a shorter one :) or update to 4.4 and use the auto-pinning feature
Thanks, Lavi _______________________________________________ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-leave@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/NLZX6QLZ4IWUPG...

Hi Arik, You are right. I tried this syntax and it worked: olvm-vmcontrol -m <ENGINE> -u api_cpu_pin@internal -v <VM> -c setvcpu -s 0-19,40-59 -e (Pinning to 40 Physical cpus). Will see how to convert a long list of digits to the shorten syntax... Thanks, Lavi
participants (2)
-
Arik Hadas
-
lavi.buchnik@exlibrisgroup.com