[Virtio-fs] 答复: [PATCH][RFC] Support multiqueue mode by setting cpu affinity
Stefan Hajnoczi
stefanha at redhat.com
Wed Apr 29 11:39:06 UTC 2020
On Sun, Apr 26, 2020 at 02:12:15AM +0000, piaojun wrote:
>
>
> -----邮件原件-----
> 发件人: Eryu Guan [mailto:eguan at linux.alibaba.com]
> 发送时间: 2020年4月24日 10:15
> 收件人: piaojun <piaojun at huawei.com>
> 抄送: Stefan Hajnoczi <stefanha at redhat.com>; virtio-fs at redhat.com
> 主题: Re: [Virtio-fs] [PATCH][RFC] Support multiqueue mode by setting cpu affinity
>
> Hi Jun,
>
> On Wed, Aug 28, 2019 at 03:05:01PM +0800, piaojun wrote:
> >
> >
> > On 2019/8/27 22:42, Stefan Hajnoczi wrote:
> > > On Mon, Aug 26, 2019 at 09:08:20AM +0800, piaojun wrote:
> > >> On 2019/8/21 23:38, Stefan Hajnoczi wrote:
> > >>> On Fri, Aug 09, 2019 at 02:04:54PM +0800, piaojun wrote:
> > >>>> Set cpu affinity for each queue in multiqueue mode to improve the
> > >>>> iops performance.
>
> [snip]
>
> > >
> > > Doing the setup before entering the sandbox sounds like a good idea.
> > > That way the sandbox does not need to whitelist the required syscalls.
> > >
> > > Will you add an option similar to:
> > >
> > > --request-queues N
> > > --request-queue-cpu-affinity N=CPU_A[,CPU_B][-CPU_C]
> > >
> > > ?
> >
> > I'm writing the multi-queue code for virtiofsd according to your
> > suggestion, but the final shape may look a bit different.
>
> Just curious, what's the status of this multi-queue support? I'd like to try it out :)
>
> OK, I wrote a demo a few months ago, but it has little performance promote even setting CPU affinity.
> So, I'm glad you can try it.
Do you want to send RFC patches to virtio-fs at redhat.com so it can be
discussed?
A bug in the virtiofs.ko guest driver has just been discussed that
prevented multiqueue from working:
https://www.redhat.com/archives/virtio-fs/2020-April/msg00030.html
or
https://www.redhat.com/archives/virtio-fs/2020-April/msg00021.html
There is also discussion about multiqueue and performance here:
https://www.redhat.com/archives/virtio-fs/2020-April/msg00026.html
Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/virtio-fs/attachments/20200429/f4542ed6/attachment.sig>
More information about the Virtio-fs
mailing list