Re: [Virtio-fs] [QUESTION] A performance problem for buffer write compared with 9p

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 22, 2019 at 3:30 PM Miklos Szeredi <mszeredi@xxxxxxxxxx> wrote:
>
> On Thu, Aug 22, 2019 at 3:18 PM wangyan <wangyan122@xxxxxxxxxx> wrote:
>
> > I used these commands:
> > virtiofsd cmd:
> >         ./virtiofsd -o vhost_user_socket=/tmp/vhostqemu -o source=/mnt/share/
> > -o cache=always -o writeback
> > mount cmd:
> >         mount -t virtio_fs myfs /mnt/virtiofs -o
> > rootmode=040000,user_id=0,group_id=0
>
> Good.
>
> I think I got it now, updated patch attached.
>
> Thanks for your patience!
>
> Miklos

Previous one was broken as well.   I hope this one works...
---
 fs/fuse/virtio_fs.c |    4 ++++
 1 file changed, 4 insertions(+)

--- a/fs/fuse/virtio_fs.c
+++ b/fs/fuse/virtio_fs.c
@@ -891,6 +891,10 @@ 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 = BDI_CAP_NO_ACCT_WB;
+	bdi_set_max_ratio(sb->s_bdi, 100);
+
 	fc = fs->vqs[VQ_REQUEST].fud->fc;
 
 	/* TODO take fuse_mutex around this loop? */

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux