-
Notifications
You must be signed in to change notification settings - Fork 985
Device: Add thread pool option for VM filesystem disk shares using virtiofsd
#15792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1600298 to
1e125ac
Compare
35c05cc to
8e835dd
Compare
simondeziel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with the caveat that I think it breaks compat with the bundled version of virtiofsd in Jammy's QEMU.
Indeed, unfortunately only the rust version has the direct io option so think we will be forced to support only that. We wont backport anyhow to 5.0. |
skozina
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
… flag to avoid path parsing bug in rust implementation Fixes canonical#15248 Inspired-by: hamistao <[email protected]> Signed-off-by: Thomas Parrott <[email protected]>
Signed-off-by: Thomas Parrott <[email protected]>
Although it is the default behaviour, make this explicit to indicate why we use it
and not the other modes ("never" and "metadata" don't allow execution).
Signed-off-by: Thomas Parrott <[email protected]>
Allow directs I/O from guests. Signed-off-by: Thomas Parrott <[email protected]>
Signed-off-by: Thomas Parrott <[email protected]>
Signed-off-by: Thomas Parrott <[email protected]>
ec9fdb8 to
8ec06d7
Compare
…ead pool size This option can increase performance of virtiofsd based filesystem VM shares. Defaults to 0 (no thread pool) - which is the existing behaviour. Fixes canonical#15742 Signed-off-by: Thomas Parrott <[email protected]>
Signed-off-by: Thomas Parrott <[email protected]>
00b5b3f to
943fb3a
Compare
… in checkInstanceRestrictions Signed-off-by: Thomas Parrott <[email protected]>
…in restricted project without restricted.virtual-machines.lowlevel allowed This is to prevent restricted projects from configuring disks with a large virtiofsd thread pool size and consuming extra resources. Signed-off-by: Thomas Parrott <[email protected]>
Signed-off-by: Thomas Parrott <[email protected]>
…ads (#505) Adds tests for `disk` `io.threads` option from canonical/lxd#15792
From PR canonical/lxd#15792 Signed-off-by: Thomas Parrott <[email protected]>
…(latest-candidate) (#840) Cherry-picks virtiofsd io.threads option and direct I/O support into LXD 6.4. From PR canonical/lxd#15792 Fixes canonical/lxd#15248 Fixes canonical/lxd#15742
virtiofsd, in the process fixes VM: Invalid compat argument from virtiofsd for paths containing=#15248io.threadsoption for filesystemdiskdevices when being passed to the VM asvirtiofsdbased shares - this can improve performance. Fixes Poor write performance of LXD storage volume with cephfs driver on VM #15742io.threadsoption in restricted projects unlessrestricted.virtual-machines.lowlevelis set toallowto prevent restricted VMs from setting a high thread pool count and consuming extra host resources.disk_io_threads_virtiofsdAPI extension.