colo-compare: Processpactkets inthe IOThreadofthe primary
A message that is not in the archive (sent off-list or not yet received): [email protected],[email protected]
Quoted 24 lines · Paolo Bonzini
Quoted 22 lines · Fam Zheng
Quoted 11 lines · Zhang Chen
Quoted 6 lines
CC. Fam and David.
Any idea about it?
Quoted 5 lines
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_querylike main threadand poll the fds in
aio_poll?How would you do that without making
aio_pollperformance worse for
Quoted 7 lines
Quoted 1 line
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
原始邮件
发件人: <[email protected]>
收件人: <[email protected]>
抄送人: <[email protected]>王勇10170530 <[email protected]>王广10165992 <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> <[email protected]> 日 期 :2017年08月01日 22:52
主 题 :Re: [Qemu-devel] [PATCHv2 02/04] colo-compare: Processpactkets inthe IOThreadofthe primary
Quoted 4 lines · Paolo Bonzini
Quoted 3 lines · Fam Zheng
Quoted 2 lines · Zhang Chen
CC. Fam and David.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
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_querylike main thread and poll the fds inaio_poll?How would you do that without making
aio_pollperformance 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