From: Vivek Goyal <vgoyal@redhat.com>
To: Miklos Szeredi <mszeredi@redhat.com>
Cc: virtio-fs-list <virtio-fs@redhat.com>,
"Shinde, Archana M" <archana.m.shinde@intel.com>,
"Venegas Munoz,
Jose Carlos" <jose.carlos.venegas.munoz@intel.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
Miklos Szeredi <miklos@szeredi.hu>
Subject: Re: [Virtio-fs] [PATCH] virtiofsd: Use --thread-pool-size=0 to mean no thread pool
Date: Wed, 18 Nov 2020 15:19:30 -0500 [thread overview]
Message-ID: <20201118201930.GC111728@redhat.com> (raw)
In-Reply-To: <CAOssrKeyRVSxCCyvPJvjoXgPYd3Dkkwn5fwAzxeyj-h3g8FqqA@mail.gmail.com>
On Thu, Nov 12, 2020 at 10:57:11AM +0100, Miklos Szeredi wrote:
[..]
>
> Another performance issue with virtiofs could be due to the strict
> page writeback rules in fuse that are meant to prevent misuse of
> kernel memory by unprivileged processes. Since virtiofs isn't
> subject to that limitation, these could be relaxed.
Hi Miklos,
I tried this patch with some of the write mmap workloads and it seems
to help. I ran virtiofsd with following options.
$ virtiofsd --socket-path=/tmp/vhostqemu -o source=/mnt//virtiofs-source -o no_posix_lock -o cache=auto --thread-pool-size=0 --daemonize
Note, these workloads are not doing any fsync after write. So
they are effectively testing how fast one can do cached writes.
NAME WORKLOAD Bandwidth IOPS
limit-bdi seqwrite-mmap 201.4mb 50.3k
nolimit-bdi seqwrite-mmap 253.4mb 63.3k
limit-bdi seqwrite-mmap-multi 386.7mb 96.6k
nolimit-bdi seqwrite-mmap-multi 752.2mb 188.0k
limit-bdi randwrite-mmap 53.5mb 13.3k
nolimit-bdi randwrite-mmap 60.6mb 15.1k
limit-bdi randwrite-mmap-multi 206.3mb 51.5k
nolimit-bdi randwrite-mmap-multi 255.5mb 63.8k
seqwrite-mmap-multi seems to see the biggest jump.
So it might be a good idea to apply this patch.
>
> Attaching a patch that does one half of this. The other half is
> getting rid of the page copying, that's a bit more involved, but
> shouldn't be too difficult. Just need to duplicate the cached
> writeback callbacks for virtiofs and do away with the complex temp
> page stuff.
Aha..., so we don't need all the complexity related to allocating
those temporary pages and then keeping track of writes in rb tree
and waiting for writes to finish etc. And it could be more like
a regular filesystem where lot of this stuff could be taken care
by common code for the case of virtiofs. That will be really nice.
Less code complexity to deal with. Also might provide performance
improvement.
Thanks
Vivek
next prev parent reply other threads:[~2020-11-18 20:21 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-05 19:44 [PATCH] virtiofsd: Use --thread-pool-size=0 to mean no thread pool Vivek Goyal
2020-11-05 19:52 ` [Virtio-fs] " Vivek Goyal
2020-11-06 20:33 ` Venegas Munoz, Jose Carlos
2020-11-06 22:35 ` Vivek Goyal
2020-11-09 10:02 ` Dr. David Alan Gilbert
2020-11-09 14:39 ` Vivek Goyal
2020-11-12 9:06 ` Miklos Szeredi
2020-11-12 9:57 ` Miklos Szeredi
2020-11-18 20:19 ` Vivek Goyal [this message]
2020-11-12 11:00 ` Christian Schoenebeck
2020-11-12 13:01 ` Miklos Szeredi
2020-11-17 16:00 ` Venegas Munoz, Jose Carlos
2020-11-17 16:39 ` Christian Schoenebeck
2020-11-17 18:55 ` Vivek Goyal
2020-11-23 15:06 ` Venegas Munoz, Jose Carlos
2020-11-17 22:24 ` Vivek Goyal
2020-11-23 15:07 ` Venegas Munoz, Jose Carlos
2020-11-18 19:51 ` Vivek Goyal
2020-11-23 9:46 ` Miklos Szeredi
2020-11-09 10:11 ` Dr. David Alan Gilbert
2020-11-09 14:40 ` Vivek Goyal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201118201930.GC111728@redhat.com \
--to=vgoyal@redhat.com \
--cc=archana.m.shinde@intel.com \
--cc=jose.carlos.venegas.munoz@intel.com \
--cc=miklos@szeredi.hu \
--cc=mszeredi@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=virtio-fs@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).