xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Tim Deegan <tim@xen.org>
To: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Cc: xen-api@lists.xensource.com, andres@gridcentric.ca,
	xen-devel@lists.xensource.com, adin@gridcentric.ca
Subject: Re: [PATCH 1 of 4] Prevent low values of max_pages for domains doing sharing or paging
Date: Thu, 16 Feb 2012 14:58:37 +0000	[thread overview]
Message-ID: <20120216145837.GA41163@ocelot.phlegethon.org> (raw)
In-Reply-To: <5612c7c996f87bb6a0e864258766e926.squirrel@webmail.lagarcavilla.org>

At 06:45 -0800 on 16 Feb (1329374751), Andres Lagar-Cavilla wrote:
> Fair enough (also referring to Jan's comments). We would be building
> policy into the hypervisor.
> 
> But I've seen squeezed set criminally low max_pages value (i.e. 256).
> Granted, this is squeezed's problem, but shouldn't some sanity checking be
> wired into the hypervisor?

Some operating systems do just fine in 640K. :)  But seriously, what
lower limit would we use?  Stupidly low max_pages for some uses would be
just fine for others. 

> Why should we even allow max_pages < tot_pages?

The reasoning is:
 - the tools want a hard guarantee that a rogue balloon driver can't 
   mess up their calculations of how much free RAM there is.
 - when a VM is ballooning down we don't want to have the tools spinning
   watching actual max_pages and adjusting tot_pages down as it
   changes.

It's not a particularly nice interface, though, and I'd be happy to see
it revert to the old one (where new max had to be <= current tot).  But
that will need a fix for Xapi/squeezed to handle the ballooning-down
case some other way.

Cc-ing xen-API.  Any XCP folks got an opinion about this?  Would it be
easy to make squeezed not need this behaviour?

Cheers,

Tim.

  reply	other threads:[~2012-02-16 14:58 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-16  3:57 [PATCH 0 of 4] Handling of (some) low memory conditions Andres Lagar-Cavilla
2012-02-16  3:57 ` [PATCH 1 of 4] Prevent low values of max_pages for domains doing sharing or paging Andres Lagar-Cavilla
2012-02-16  9:16   ` Jan Beulich
2012-02-16 10:20   ` Tim Deegan
2012-02-16 14:45     ` Andres Lagar-Cavilla
2012-02-16 14:58       ` Tim Deegan [this message]
2012-02-16 15:32       ` Jan Beulich
2012-02-16 16:08         ` Tim Deegan
2012-02-16 16:44           ` Jan Beulich
2012-02-16  3:57 ` [PATCH 2 of 4] x86/mm: Allow to not sleep on mem event ring Andres Lagar-Cavilla
2012-02-16 16:11   ` Tim Deegan
2012-02-17 16:57     ` Andres Lagar-Cavilla
2012-02-16  3:57 ` [PATCH 3 of 4] Memory sharing: better handling of ENOMEM while unsharing Andres Lagar-Cavilla
2012-02-16 16:19   ` Tim Deegan
2012-02-17 17:01     ` Andres Lagar-Cavilla
2012-02-16  3:57 ` [PATCH 4 of 4] Global virq for low memory situations Andres Lagar-Cavilla
2012-02-16  9:31 ` [PATCH 0 of 4] Handling of (some) low memory conditions Jan Beulich
2012-02-16 14:40   ` Andres Lagar-Cavilla
2012-02-16 15:22     ` Jan Beulich
2012-02-16 15:34       ` Andres Lagar-Cavilla
2012-02-16 16:26         ` 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=20120216145837.GA41163@ocelot.phlegethon.org \
    --to=tim@xen.org \
    --cc=adin@gridcentric.ca \
    --cc=andres@gridcentric.ca \
    --cc=andres@lagarcavilla.org \
    --cc=xen-api@lists.xensource.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 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).