[XCP-ng 8] max_grant_frames reached
-
@olivierlambert: I've read since 4.10 it is a domU configuration via max_grant_frames parameter. Since XCP-ng has no config files per domU, how can I set domU parameter?
I've tried it via
xe vm-param-set platform:max_grant_frames=64 uuid=b61297e6-a413-135a-fa1e-647b547247ef
but no success.
-
- Please use Markdown syntax for code/console blocks (I edited your post)
- Sorry I don't understand the problem you have, can you rephrase?
-
@olivierlambert: The problem is that there are not enough grants for creating queues for 9 vif on a system running 4 vcpu. Trying to create the 4th queue for vif-7 raises a max_grant_frames reached error. The netfront driver could create only 3 of 4 queues for vif-7 and 0 queues for vif-8, which is configured in Xen but therefore not present in the guest.
That is not a problem of the "Other media install" template, all created VMs (different templates, different OSs) have the same issue, max_nr_frames=32, which seems a default value for XCP-ng. Since Xen version 4.10 max_grant_frames isn't a global config parameter issued to the hypervisor at boot time anymore. Since version 4.10 it is a parameter per domU.
The question is, since XCP-ng has no config files per domU, how can I set domU parameter?
-
@cfischer thanks for your feedback. I might have a solution. Note this is a really complex problem in the end (interactions between xenops/xenguest and XAPI)
I might have an patch idea to see if it works. Stay tuned.
-
Due to the complicated modification, we'd like to have a support ticket created please, so we can continue to discuss those details in depth
-
@olivierlambert: How can I open a support ticket without buying support?
-
-
@olivierlambert: Thanks, I wasn't aware the possibility submitting tickets. Ticket created.
-
This is a free support without any commitment to answer, but it's a good way to discuss more in depth details when we can.
-
Does not having all the grants requested result in network slowdown?
-
@rjt
The November 2019 security, bugfix, and enhancement updates address this issue in the section "Enable increasing max_grant_frames for guests."Indicates that with not enough grant frames, the guest VM will not be able to use the all the virtual NICs that it expects. Still wonder if increasing max_grant_frames would speed up existing network interfaces even when they have enough working vNICS.