On Thu, Aug 22, 2019 at 2:59 AM wangyan <wangyan122@xxxxxxxxxx> wrote: > I will test it when I get the patch, and post the compared result with > 9p. Could you please try the attached patch? My guess is that it should improve the performance, perhaps by a big margin. Further improvement is possible by eliminating page copies, but that is less trivial. Thanks, Miklos
Index: linux/fs/fuse/virtio_fs.c =================================================================== --- linux.orig/fs/fuse/virtio_fs.c 2019-08-22 13:38:31.782833564 +0200 +++ linux/fs/fuse/virtio_fs.c 2019-08-22 13:37:55.436406261 +0200 @@ -891,6 +891,9 @@ static int virtio_fs_fill_super(struct s if (err < 0) goto err_free_init_req; + /* No strict accounting needed for virtio-fs */ + sb->s_bdi->capabilities = 0; + fc = fs->vqs[VQ_REQUEST].fud->fc; /* TODO take fuse_mutex around this loop? */