qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCHv2 02/04] colo-compare: Processpactkets inthe IO


From: wang.yong155
Subject: Re: [Qemu-devel] [PATCHv2 02/04] colo-compare: Processpactkets inthe IOThreadofthe primary
Date: Wed, 2 Aug 2017 10:03:39 +0800 (CST)

>On Tue, 08/01 12:25, Paolo Bonzini wrote:

>> On 28/07/2017 02:25, Fam Zheng wrote:

>> > 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?

>> 

>> How would you do that without making aio_poll performance worse for

>> everyone?

>

>I don't knoe. Maintain a flag and only do these slow stuff after at least one

>GSource has been moved around?




How about this, when Iothread's GMainContext is NULL, use io_poll, or else use 
g_main_context_* poll the fds ?




Iothread's GMainContext is NULL by default,so use aio_poll in iothread_run 
function.

In addition we can create a new GMainContext in chardev,use g_main_context_* in 
iothread_run.

Maybe this doesn't affect performance ?




Thanks

WangYong












原始邮件



发件人: <address@hidden>
收件人: <address@hidden>
抄送人: <address@hidden>王勇10170530 <address@hidden>王广10165992 <address@hidden> 
<address@hidden> <address@hidden> <address@hidden> <address@hidden> 
<address@hidden>
日 期 :2017年08月01日 22:52
主 题 :Re: [Qemu-devel] [PATCHv2 02/04] colo-compare: Processpactkets inthe 
IOThreadofthe primary





On Tue, 08/01 12:25, Paolo Bonzini wrote:
> On 28/07/2017 02:25, Fam Zheng wrote:
> > 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?
> 
> How would you do that without making aio_poll performance worse for
> everyone?

I don't knoe. Maintain a flag and only do these slow stuff after at least one
GSource has been moved around?

Fam

reply via email to

[Prev in Thread] Current Thread [Next in Thread]