All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dan Magenheimer" <dan.magenheimer@oracle.com>
To: Keir Fraser <keir.fraser@eu.citrix.com>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: RE: [PATCH] linux/balloon: don't allow ballooningdowna domain below a reasonable limit
Date: Sat, 3 May 2008 13:27:56 -0600	[thread overview]
Message-ID: <20080503132756296.00000041924@djm-pc> (raw)
In-Reply-To: <C4423134.18270%keir.fraser@eu.citrix.com>

> > I was planning on providing both Model C and Model D (see below),
> > but let me know if you will only accept Model C (or even Model B)
> > and I will adjust accordingly.
> 
> I don't know that what you are trying to do is, in full generality,
> tractable. Who knows how valuable the memory pages belonging 
> to a domU are,
> relative to other domains? Just because they are only 
> buffer-cache pages,
> for example, may not necessarily mean we want the domU to 
> aggressively page
> them out every N seconds.
>
> At least if you can extract some measure of memory pressure 
> from each domU
> (e.g., paging frequency, size of active/inactive page lists) 
> dom0 can then
> make some global optimisation periodically based on e.g., relative
> priorities of domains.
> 
> Not that your approach is not applicable for some scenarios. 
> As long as it's
> a switchable option, perhaps it is the kind of thing to let 
> users vote on.

I agree the general case is not tractable.  But I think the
basic concept is useful and an initial implementation may
serve as a good foundation for later tuning.  The initial
selfballooning policy is simply "if I have extra memory,
give it up; and if I need memory, ask for it back"; where
"extra" and "need" are admittedly poorly estimated (but are
good enough for some workloads) and the grant-memory-to-
asking-domain policy is first-come-first-served.  Any
more complex policy certainly requires more information
to be passed from the guest to domain0.

OK, I will submit a patch to cover both Model C and D.
Still tracking down a bug or two...

Dan

  reply	other threads:[~2008-05-03 19:27 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-04 15:07 [PATCH] linux/balloon: don't allow ballooning down a domain below a reasonable limit Jan Beulich
2008-04-05 21:39 ` Keir Fraser
2008-04-07  7:10   ` [PATCH] linux/balloon: don't allow ballooningdown " Jan Beulich
2008-04-29 18:35     ` Dan Magenheimer
2008-04-30  6:29       ` [PATCH] linux/balloon: don't allow ballooningdowna " Jan Beulich
2008-04-30 16:04         ` Dan Magenheimer
2008-04-30 23:49           ` Dan Magenheimer
2008-05-01  7:01             ` Keir Fraser
2008-05-01 14:44               ` Dan Magenheimer
2008-05-01 16:36               ` Alan Cox
2008-05-01 16:56                 ` Keir Fraser
2008-05-01 20:05                   ` Alan Cox
2008-05-01 16:59                 ` Dan Magenheimer
2008-05-01 21:18                   ` Keir Fraser
2008-05-01 23:03                     ` Alan Cox
2008-05-01 23:27                       ` Dan Magenheimer
2008-05-02  7:05                         ` Keir Fraser
2008-05-03 13:53                           ` Dan Magenheimer
2008-05-03 14:11                             ` Keir Fraser
2008-05-03 19:27                               ` Dan Magenheimer [this message]
2008-05-03 17:32                             ` Mark Williamson
2008-05-03 19:43                               ` Dan Magenheimer
2008-05-12 22:19                             ` [PATCH] linux/balloon: don't allowballooningdowna " Ian Pratt
2008-05-12 23:34                               ` Dan Magenheimer
2008-05-13 10:35                               ` Markus Hochholdinger
  -- strict thread matches above, loose matches on Subject: below --
2008-05-02 19:30 [PATCH] linux/balloon:don't allow ballooningdowna " Jan Beulich
2008-05-02 22:22 ` Dan Magenheimer
2008-05-03 13:24   ` Goswin von Brederlow
2008-05-09 20:38 ` Dan Magenheimer

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=20080503132756296.00000041924@djm-pc \
    --to=dan.magenheimer@oracle.com \
    --cc=keir.fraser@eu.citrix.com \
    --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 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.