[Virtio-fs] 答复: [PATCH][RFC] Support multiqueue mode by setting cpu affinity

piaojun piaojun at huawei.com
Sun Apr 26 02:12:15 UTC 2020



-----邮件原件-----
发件人: 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.

Jun





More information about the Virtio-fs mailing list