[PATCH v2 19/25] netfs: Speed up buffered reading

Manu Bretelle chantr4 at gmail.com
Tue Sep 24 06:20:47 AEST 2024


On Mon, Sep 23, 2024 at 12:38 PM David Howells <dhowells at redhat.com> wrote:
>
> Hi Manu,
>
> Are you using any other network filesystem than 9p, or just 9p?

Should be 9p only.

We ended up reverting the whole merge with
https://patch-diff.githubusercontent.com/raw/kernel-patches/vmtest/pull/288.patch
as my initial commit revert happened to work because of the left over
cached .o.

FWIW, I quickly checked and virtiofs is not affected. e.g is I was to
apply https://github.com/danobi/vmtest/pull/88 to vmtest and recompile
the kernel with:
  CONFIG_FUSE_FS=y
  CONFIG_VIRTIO_FS=y
  CONFIG_FUSE_PASSTHROUGH=y

qemu-system-x86_64 "-nodefaults" "-display" "none" \
  "-serial" "mon:stdio" "-enable-kvm" "-cpu" "host" \
  "-qmp" "unix:/tmp/qmp-895732.sock,server=on,wait=off" \
  "-chardev" "socket,path=/tmp/qga-733184.sock,server=on,wait=off,id=qga0" \
  "-device" "virtio-serial" \
  "-device" "virtserialport,chardev=qga0,name=org.qemu.guest_agent.0" \
  "-object" "memory-backend-memfd,id=mem,share=on,size=4G" "-numa"
"node,memdev=mem" \
  "-device" "virtio-serial" "-chardev"
"socket,path=/tmp/cmdout-713466.sock,server=on,wait=off,id=cmdout" \
  "-device" "virtserialport,chardev=cmdout,name=org.qemu.virtio_serial.0" \
  "-chardev" "socket,id=root,path=/tmp/virtiofsd-807478.sock" \
  "-device" "vhost-user-fs-pci,queue-size=1024,chardev=root,tag=rootfs" \
  "-kernel" "/data/users/chantra/linux/arch/x86/boot/bzImage" \
  "-no-reboot" "-append" "rootfstype=virtiofs root=rootfs rw
earlyprintk=serial,0,115200 printk.devkmsg=on console=0,115200
loglevel=7 raid=noautodetect init=/tmp/vmtest-initBdg4J.sh panic=-1" \
  "-chardev" "socket,id=shared,path=/tmp/virtiofsd-992342.sock" \
  "-device" "vhost-user-fs-pci,queue-size=1024,chardev=shared,tag=vmtest-shared"
\
  "-smp" "2" "-m" "4G"

would work.

Manu

>
> David
>


More information about the Linux-erofs mailing list