xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@novell.com>
To: Dan Magenheimer <dan.magenheimer@oracle.com>
Cc: jeremy@goop.org, xen-devel@lists.xensource.com,
	Keir Fraser <Keir.Fraser@eu.citrix.com>
Subject: Re: Linux balloon driver stops accepting target_kb for a long time
Date: Tue, 24 Aug 2010 08:45:10 +0100	[thread overview]
Message-ID: <4C7394A60200007800011D5D@vpn.id2.novell.com> (raw)
In-Reply-To: <af1cf3f8-2df8-496e-83a0-4d6407ab7e4f@default>

>>> On 24.08.10 at 00:45, Dan Magenheimer <dan.magenheimer@oracle.com> wrote:
> Reviewing code, one thing caught my attention.  In balloon_process(),
> the balloon_mutex is down'ed then, under certain conditions
> schedule() is called with the balloon_mutex still held and without
> another timer set.  Any chance this could be a problem, especially
> if another kernel thread invokes balloon_set_new_target()?
> If so, what might finally kick the scheduled-out thread after
> 30 minutes to reset the balloon_timer and up the mutex?

How could this be a problem? Calling schedule() is a yield, not an
indefinite sleep, and hence the loop will resume as soon as there's
no higher priority runnable task anymore for a long enough time
(obviously very much less than 30 minutes, unless something
really odd is running on your box).

Furthermore, besides the obvious option of inserting some debug
code, I think SysRq-t would also allow you to check whether
balloon_process() indeed doesn't exit over a period of minutes.

Jan

  reply	other threads:[~2010-08-24  7:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-23 22:45 Linux balloon driver stops accepting target_kb for a long time Dan Magenheimer
2010-08-24  7:45 ` Jan Beulich [this message]
2010-08-24 22:38   ` Dan Magenheimer
2010-08-25  8:16     ` Jan Beulich

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=4C7394A60200007800011D5D@vpn.id2.novell.com \
    --to=jbeulich@novell.com \
    --cc=Keir.Fraser@eu.citrix.com \
    --cc=dan.magenheimer@oracle.com \
    --cc=jeremy@goop.org \
    --cc=xen-devel@lists.xensource.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).