All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Dan Magenheimer <dan.magenheimer@oracle.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	Xen-devel@lists.xensource.com, Daniel Kiper <dkiper@net-space.pl>,
	Konrad Wilk <konrad.wilk@oracle.com>
Subject: Re: RE: Ballooning up
Date: Mon, 13 Sep 2010 16:06:24 -0700	[thread overview]
Message-ID: <4C8EAE70.3030902@goop.org> (raw)
In-Reply-To: <a36f32a9-f0f6-4744-b9bc-15a932170692@default>

 On 09/13/2010 02:39 PM, Dan Magenheimer wrote:
> Also, looking at the latest code in xen/next-2.6.32, I see
> you have removed the balloon lock.  Isn't this necessary
> to ensure multiple vcpus aren't racing on adjusting the
> balloon size (and performing the hypercalls to do it)?
> IOW, are increase/decrease_reservation and the calls
> into the hypervisor thread-safe?

Yes, because they are all done within the same tasklet, so there's no
possibility of races.

> And, related especially if the lock goes away (repeat
> of question asked here
> http://lists.xensource.com/archives/html/xen-devel/2010-08/msg01664.html )
> wouldn't it be better to use a separate workqueue rather than
> the kernel default queue,

There's a preference to use the default queue unless there's a strong
reason to do otherwise, to stop proliferation of kernel tasks.  Is there
a strong reason to use a specific balloon workqueue?

>  and is there any reason to
> queue the work on every cpu rather than just one?

There's a keventd on every CPU, but work is queued on only one CPU at a
time - it tends to end up running on the CPU which requested the work to
be queued, but if it is already queued then it will be left as-is.

I am seeing something queuing delayed work at 1kHz continiously, at
least in dom0.  Haven't worked out what's going on there...

    J

  reply	other threads:[~2010-09-13 23:06 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-07  8:36 Ballooning up Jeremy Fitzhardinge
     [not found] ` <54eebb3a-f539-43be-8134-a969a4f671c4@default4C8EAB0E.7040407@goop.org>
2010-09-07 10:14 ` Ian Campbell
2010-09-07 13:26   ` Jeremy Fitzhardinge
2010-09-07 14:10     ` Ian Campbell
2010-09-15 21:47     ` Dan Magenheimer
2010-09-15 22:41       ` Jeremy Fitzhardinge
2010-09-13 21:17 ` Dan Magenheimer
2010-09-13 21:39   ` Dan Magenheimer
2010-09-13 23:06     ` Jeremy Fitzhardinge [this message]
2010-09-13 22:51   ` Jeremy Fitzhardinge
2010-09-14  0:22     ` Dan Magenheimer
2010-09-14  0:46       ` Jeremy Fitzhardinge
2010-09-14 15:06         ` Dan Magenheimer
2010-09-14 22:05           ` Jeremy Fitzhardinge
2010-09-15  7:13             ` Ian Campbell
2010-09-14  8:41     ` Jan Beulich
2010-09-14 16:35       ` Jeremy Fitzhardinge
2010-09-14  9:07     ` Ian Campbell
2010-09-14 16:42       ` Jeremy Fitzhardinge
2010-09-15  7:10         ` Ian Campbell
2010-09-15 17:29           ` Jeremy Fitzhardinge
2010-09-15 18:06             ` Dan Magenheimer
2010-09-15 20:29               ` Jeremy Fitzhardinge
2010-09-14  8:34   ` Ian Campbell

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=4C8EAE70.3030902@goop.org \
    --to=jeremy@goop.org \
    --cc=Xen-devel@lists.xensource.com \
    --cc=dan.magenheimer@oracle.com \
    --cc=dkiper@net-space.pl \
    --cc=konrad.wilk@oracle.com \
    --cc=stefano.stabellini@eu.citrix.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 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.