[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCHv2 02/04] colo-compare: Processpactkets in the IO
From: |
Fam Zheng |
Subject: |
Re: [Qemu-devel] [PATCHv2 02/04] colo-compare: Processpactkets in the IOThreadofthe primary |
Date: |
Fri, 28 Jul 2017 08:25:01 +0800 |
User-agent: |
Mutt/1.8.3 (2017-05-23) |
On Thu, 07/27 15:47, Zhang Chen wrote:
> CC. Fam and David.
>
> Any idea about it?
Is it possible to use g_main_context_{push,pop}_thread_default to "move" chardev
GSources to IOThread's context, then use g_main_context_query like main thread
and poll the fds in aio_poll?
Fam
>
>
> Thanks
>
> Zhang Chen
>
>
> On 07/25/2017 09:02 AM, address@hidden wrote:
> >
> > >On 24/07/2017 12:38, address@hidden wrote:
> >
> > >> finally use g_main_loop_run to replace aio_poll in the
> >
> > >> iothread_run function.
> >
> > >
> >
> > >That would make the performance of virtio-blk with iothreads worse,
> >
> > >unfortunately. aio_poll is much more optimized than g_main_loop_run.
> >
> > Hi Paolo,
> >
> > Any other good idea to achieve this?
> >
> >
> > Thanks
> >
> >
> > >
> >
> > >Paolo
> >
> > >
> >
> > >> After that IOThread
> >
> > >> runs the GMainContext event loop,chardev and IOThread can work
> > together.
> >
> > >>
> >
> > >> How about it? If feasible, I will try to submit
> >
> >
> >
> >
> > 原始邮件
> > *发件人:*<address@hidden>;
> > *收件人:*王勇10170530;<address@hidden>;<address@hidden>;<address@hidden>;
> > *抄送人:*<address@hidden>;<address@hidden>;<address@hidden>;<address@hidden>;王广10165992;
> > *日 期 :*2017年07月24日 19:59
> > *主 题 :**Re: [PATCHv2 02/04] colo-compare: Processpactkets in the
> > IOThreadofthe primary*
> >
> >
> > On 24/07/2017 12:38, address@hidden wrote:
> > > finally use g_main_loop_run to replace aio_poll in the
> > > iothread_run function.
> >
> > That would make the performance of virtio-blk with iothreads worse,
> > unfortunately. aio_poll is much more optimized than g_main_loop_run.
> >
> > Paolo
> >
> > > After that IOThread
> > > runs the GMainContext event loop,chardev and IOThread can work together.
> > >
> > > How about it? If feasible, I will try to submit a patch.
> >
> >
> >
>
> --
> Thanks
> Zhang Chen
>
>
>
>