Can libvirt parse virtiofsd -o writeback?
Is there any libvirt xml parser rev that knows about how to set virtiofsd -o writeback?
Thanks
Harry Coin
Quoted 2 lines · * Harry G. Coin ([email protected]) wrote:
Is there any libvirt xml parser rev that knows about how to set virtiofsd -o writeback?
I don't think so ; the docs say:
https://libvirt.org/formatdomain.html#filesystems
says:
binary
The optional binary element can tune the options for virtiofsd. All of the following attributes and elements are optional. The attribute path can be used to override the path to the daemon. Attribute xattr enables the use of filesystem extended attributes. Caching can be tuned via the cache element, possible mode values being none and always. Locking can be controlled via the lock element - attributes posix and flock both accepting values on or off. ( Since 6.2.0 )
Hmm, I've never tried the -o writeback; have you found it beneficial?
Dave
Quoted 9 lines
Thanks
Harry Coin
_______________________________________________
Virtio-fs mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virtio-fs
Signature · 1 line
Dr. David Alan Gilbert / [email protected] / Manchester, UK
Quoted 18 lines · Dr. David Alan Gilbert
Quoted 2 lines · * Harry G. Coin ([email protected]) wrote:
Is there any libvirt xml parser rev that knows about how to set virtiofsd -o writeback?
I don't think so ; the docs say:
https://libvirt.org/formatdomain.html#filesystems
says:binary
The optional binary element can tune the options for virtiofsd. All of the following attributes and elements are optional. The attribute path can be used to override the path to the daemon. Attribute xattr enables the use of filesystem extended attributes. Caching can be tuned via the cache element, possible mode values being none and always. Locking can be controlled via the lock element - attributes posix and flock both accepting values on or off. ( Since 6.2.0 )
Quoted 3 lines
Hmm, I've never tried the -o writeback; have you found it beneficial?
Dave
Jury is still out. Writeback without dax (which is unavailable outside the high-interest bubble) subjectively seems to help a bit. I have managed to get a kernel boot going with generic environments, calls for some hacking of initramfs, and most of the instructions about kernel command line content is wrong on the info page.
Here's how folks can try writeback without having to cook up a dev environment:
The paths below are for debian/ubuntu style distos, the rhel/centos paths differ a bit. I don't have the SELinux equivalent to the apparmor glue.
Libvirt xml:
...
<filesystem type="mount" accessmode="passthrough"> <driver type="virtiofs" queue="1024"/>
<binary path="/usr/local/sbin/custom_virtiofsd" xattr="on"> <lock posix="off" flock="on"/>
</binary>
cat > /usr/local/sbin/custom_virtiofsd #!/bin/bash
#Provide a way to add arguments libvirt doesn't know about. set -o allexport/usr/lib/qemu/virtiofsd $@ -o writeback
and
cat > /etc/apparmor.d/local/usr.sbin.libvirtd/usr/local/sbin/custom_virtiofsd rux,
Quoted 10 lines
Quoted 10 lines
Thanks
Harry Coin
_______________________________________________
Virtio-fs mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/virtio-fs