From: Mark McLoughlin <markmc@redhat.com>
To: kvm <kvm@vger.kernel.org>
Subject: Re: [PATCH] posix-timers: Do not modify an already queued timer signal
Date: Wed, 16 Jul 2008 16:33:30 +0100 [thread overview]
Message-ID: <1216222410.29458.13.camel@muff> (raw)
In-Reply-To: <1216219846-663-1-git-send-email-markmc@redhat.com>
On Wed, 2008-07-16 at 15:50 +0100, Mark McLoughlin wrote:
> The race was observed with a modified kvm-userspace when
> running a guest under heavy network load. When it occurs,
> KVM never sees another SIGALRM signal because although
> the signal is queued up the appropriate bit is never set
> in the pending mask. Manually sending the process a SIGALRM
> kicks it out of this state.
I should clarify what I mean by "modified kvm-userspace". Basically, I
was trying out a suggestion of Marcelo's to drop the global qemu mutex
when reading GSO packets from a tap device i.e.
@@ -4299,7 +4299,9 @@ static void tap_send(void *opaque)
sbuf.buf = s->buf;
s->size = getmsg(s->fd, NULL, &sbuf, &f) >=0 ? sbuf.len : -1;
#else
+ kvm_mutex_unlock();
s->size = read(s->fd, s->buf, sizeof(s->buf));
+ kvm_mutex_lock();
It seems to work fine, but more on that later ... important thing is
that if people see a hard-to-reproduce condition where things seem to
slow down or lock up, try manually doing a "kill -ALRM $(qemu)" and if
that fixes it, then you're probably seeing this bug.
Cheers,
Mark.
next prev parent reply other threads:[~2008-07-16 15:33 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-16 14:50 [PATCH] posix-timers: Do not modify an already queued timer signal Mark McLoughlin
2008-07-16 15:33 ` Mark McLoughlin [this message]
2008-07-16 16:21 ` Oleg Nesterov
2008-07-17 11:08 ` Mark McLoughlin
2008-07-17 13:55 ` Oleg Nesterov
2008-07-18 10:39 ` Mark McLoughlin
2008-07-19 16:37 ` Oleg Nesterov
2008-07-20 6:52 ` Roland McGrath
2008-07-20 11:08 ` Oleg Nesterov
2008-07-20 12:26 ` Oleg Nesterov
2008-07-21 0:47 ` Roland McGrath
2008-07-21 15:23 ` Oleg Nesterov
2008-07-21 15:40 ` do_schedule_next_timer && si_overrun (Was: [PATCH] posix-timers: Do not modify an already queued timer signal) Oleg Nesterov
2008-07-21 15:55 ` [PATCH] posix-timers: Do not modify an already queued timer signal Oliver Pinter
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=1216222410.29458.13.camel@muff \
--to=markmc@redhat.com \
--cc=kvm@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.