From: Stefan Hajnoczi <stefanha@redhat.com>
To: Stanislav Vorobiov <s.vorobiov@samsung.com>
Cc: sw@weilnetz.de, sangho1206.park@samsung.com,
qemu-devel@nongnu.org, alex@alex.org.uk, syeon.hwang@samsung.com,
pbonzini@redhat.com
Subject: Re: [Qemu-devel] [PATCH v3] glib: fix g_poll early timeout on windows
Date: Tue, 6 May 2014 14:23:04 +0200 [thread overview]
Message-ID: <20140506122304.GH15810@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <1397838243-17921-1-git-send-email-s.vorobiov@samsung.com>
On Fri, Apr 18, 2014 at 08:24:03PM +0400, Stanislav Vorobiov wrote:
> From: Sangho Park <sangho1206.park@samsung.com>
>
> g_poll has a problem on Windows when using
> timeouts < 10ms, in glib/gpoll.c:
>
> /* If not, and we have a significant timeout, poll again with
> * timeout then. Note that this will return indication for only
> * one event, or only for messages. We ignore timeouts less than
> * ten milliseconds as they are mostly pointless on Windows, the
> * MsgWaitForMultipleObjectsEx() call will timeout right away
> * anyway.
> */
> if (retval == 0 && (timeout == INFINITE || timeout >= 10))
> retval = poll_rest (poll_msgs, handles, nhandles, fds, nfds, timeout);
>
> so whenever g_poll is called with timeout < 10ms it does
> a quick poll instead of wait, this causes significant performance
> degradation of QEMU, thus we should use WaitForMultipleObjectsEx
> directly
>
> Signed-off-by: Stanislav Vorobiov <s.vorobiov@samsung.com>
> ---
> include/glib-compat.h | 19 +++++++++
> include/qemu-common.h | 12 ------
> util/oslib-win32.c | 112 +++++++++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 131 insertions(+), 12 deletions(-)
What is the status of this patch?
I haven't followed the discussions around the issue but can review/merge
if there is agreement now.
Stefan
next parent reply other threads:[~2014-05-06 12:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1397838243-17921-1-git-send-email-s.vorobiov@samsung.com>
2014-05-06 12:23 ` Stefan Hajnoczi [this message]
2014-05-06 12:38 ` [Qemu-devel] [PATCH v3] glib: fix g_poll early timeout on windows Paolo Bonzini
2014-05-06 15:49 ` Alex Bligh
2014-05-06 16:52 ` Stefan Weil
2014-05-07 8:02 ` Stefan Hajnoczi
2014-05-07 8:36 ` Stanislav Vorobiov
2014-05-07 8:49 ` Alex Bligh
2014-05-07 9:06 ` Stanislav Vorobiov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140506122304.GH15810@stefanha-thinkpad.redhat.com \
--to=stefanha@redhat.com \
--cc=alex@alex.org.uk \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=s.vorobiov@samsung.com \
--cc=sangho1206.park@samsung.com \
--cc=sw@weilnetz.de \
--cc=syeon.hwang@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).