HPT resizing for pseries guests (qemu part)
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 10 lines · David Gibson
Quoted 4 lines
Do we want to expose a knob for controlling this to the user at the libvirt level, or should we just enable resize-hpt unconditionally whenever we detect that the QEMU binary supports it?
I'm not sure if we need a knob. I think in general enabling for pseries-2.9 and later machine types is correct. The difficulty is that for HV guests, we can only enable it if the host kernel also has support. Explicitly setting "resize-hpt=enable" means qemu will not start if the kernel doesn't support it.
I thought that would be the case for resize-hpt=required, not resized-hpt=enabled.
Quoted 2 lines
My inclination would be to enable unconditionally for pseries-2.9 and later machine types.
So I guess the question is, will users want to enable this manually for older machine types, or is it reasonable to expect them to simply switch to pseries-2.9 if they want the feature?
Moreover, do you foresee any situation in which users might reasonably want to turn the feature off even though the entire stack (host kernel, QEMU, guest kernel) understands it?
--
Andrea Bolognani / Red Hat / Virtualization
Quoted 12 lines · Andrea Bolognani
Quoted 10 lines · David Gibson
Quoted 4 lines
Do we want to expose a knob for controlling this to the user at the libvirt level, or should we just enable resize-hpt unconditionally whenever we detect that the QEMU binary supports it?
I'm not sure if we need a knob. I think in general enabling for pseries-2.9 and later machine types is correct. The difficulty is that for HV guests, we can only enable it if the host kernel also has support. Explicitly setting "resize-hpt=enable" means qemu will not start if the kernel doesn't support it.
Quoted 2 lines
I thought that would be the case for resize-hpt=required, not resized-hpt=enabled.
resize-hpt=enabled requires the host to support resizing, but not the guest. resize-hpt=required requires both the host and the guest to support resizing.
If you can think of a less ambiguous word for it, let me know.
Quoted 7 lines
Quoted 2 lines
My inclination would be to enable unconditionally for pseries-2.9 and later machine types.
So I guess the question is, will users want to enable this manually for older machine types, or is it reasonable to expect them to simply switch to pseries-2.9 if they want the feature?
I can't see any particular reason you'd enable it on an old machine type.
Quoted 4 lines
Moreover, do you foresee any situation in which users might reasonably want to turn the feature off even though the entire stack (host kernel, QEMU, guest kernel) understands it?
Nothing clearly compelling. In the nearish term, being able to turn it off to isolate possible bugs could be useful of course. It's also possible that you could have a VM where the latency of each resize could be too much downtime - although in that case I doubt you'd want to hotplug memory anyway.
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
Quoted 8 lines · David Gibson
Quoted 8 lines
Quoted 5 lines
I'm not sure if we need a knob. I think in general enabling for pseries-2.9 and later machine types is correct. The difficulty is that for HV guests, we can only enable it if the host kernel also has support. Explicitly setting "resize-hpt=enable" means qemu will not start if the kernel doesn't support it.
I thought that would be the case for resize-hpt=required, not resized-hpt=enabled.
Quoted 6 lines
resize-hpt=enabled requires the host to support resizing, but not the guest. resize-hpt=required requires both the host and the guest to support resizing.
If you can think of a less ambiguous word for it, let me know.
The name makes sense, we just need to document the host kernel requirement properly. The error message should of course mention it as well.
Quoted 10 lines
Quoted 4 lines
Moreover, do you foresee any situation in which users might reasonably want to turn the feature off even though the entire stack (host kernel, QEMU, guest kernel) understands it?
Nothing clearly compelling. In the nearish term, being able to turn it off to isolate possible bugs could be useful of course. It's also possible that you could have a VM where the latency of each resize could be too much downtime - although in that case I doubt you'd want to hotplug memory anyway.
It seems like the use case would be fairly narrow, if it existed at all. Given that, I think we should avoid adding yet another knob to libvirt until its value can be unquestionably proven.
--
Andrea Bolognani / Red Hat / Virtualization
Quoted 16 lines · Andrea Bolognani
Quoted 8 lines · David Gibson
Quoted 8 lines
Quoted 5 lines
I'm not sure if we need a knob. I think in general enabling for pseries-2.9 and later machine types is correct. The difficulty is that for HV guests, we can only enable it if the host kernel also has support. Explicitly setting "resize-hpt=enable" means qemu will not start if the kernel doesn't support it.
I thought that would be the case for resize-hpt=required, not resized-hpt=enabled.Quoted 6 lines
resize-hpt=enabled requires the host to support resizing, but not the guest. resize-hpt=required requires both the host and the guest to support resizing.
If you can think of a less ambiguous word for it, let me know.
Quoted 3 lines
The name makes sense, we just need to document the host kernel requirement properly. The error message should of course mention it as well.
The error message is currently
"Hash page table resizing not available with this KVM version"
Does that cover it?
Quoted 11 lines
Quoted 10 lines
Quoted 4 lines
Moreover, do you foresee any situation in which users might reasonably want to turn the feature off even though the entire stack (host kernel, QEMU, guest kernel) understands it?
Nothing clearly compelling. In the nearish term, being able to turn it off to isolate possible bugs could be useful of course. It's also possible that you could have a VM where the latency of each resize could be too much downtime - although in that case I doubt you'd want to hotplug memory anyway.
Quoted 4 lines
It seems like the use case would be fairly narrow, if it existed at all. Given that, I think we should avoid adding yet another knob to libvirt until its value can be unquestionably proven.
I tend to agree.
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
Quoted 9 lines · David Gibson
Quoted 3 lines
The name makes sense, we just need to document the host kernel requirement properly. The error message should of course mention it as well.
The error message is currently
"Hash page table resizing not available with this KVM version"
Does that cover it?
Sounds good to me.
Signature · 1 line
Andrea Bolognani / Red Hat / Virtualization