From: "Jan Beulich" <jbeulich@novell.com>
To: Keir Fraser <keir.fraser@eu.citrix.com>
Cc: Ky Srinivasan <KSrinivasan@novell.com>,
xen-devel@lists.xensource.com, Kurt Garloff <garloff@suse.de>
Subject: Re: [PATCH] linux/balloon: don't allow ballooningdown a domain below a reasonable limit
Date: Mon, 07 Apr 2008 08:10:21 +0100 [thread overview]
Message-ID: <47F9E4FD.76E4.0078.0@novell.com> (raw)
In-Reply-To: <C41DB02A.16039%keir.fraser@eu.citrix.com>
>>> Keir Fraser <keir.fraser@eu.citrix.com> 05.04.08 23:39 >>>
>On 4/4/08 16:07, "Jan Beulich" <jbeulich@novell.com> wrote:
>
>> +#ifndef CONFIG_XEN
>> +#define max_pfn totalram_pages
>> +#endif
>
>This is silly. We modify totalram_pages as we balloon up and down, so this
>really isn't very max_pfn-like after ballooning gets under way.
Indeed. It's been a very long time since I had to last touch this patch, so
I can only assume that originally was meant to address a build problem,
and then got forgotten about.
>So I've applied the patch but I made it a no-op if !defined(CONFIG_XEN),
>until/unless someone comes up with a better alternative to totalram_pages.
>Possibly just latching totalram_pages when we install the balloon driver
>would be sufficient?
That would be one option, though not exactly representing what is
intended here - the minimum memory requirement depends (at least for
FLATMEM) much more on the size of the 'struct page' array than on the
part of the array that's actually valid memory.
Since max_mapnr doesn't get initialized for x86-64 and end_pfn is no
longer being exported in 2.6.25, num_physpages would seem to be
the only other alternative.
Jan
next prev parent reply other threads:[~2008-04-07 7:10 UTC|newest]
Thread overview: 25+ 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 ` Jan Beulich [this message]
2008-04-29 18:35 ` [PATCH] linux/balloon: don't allow ballooningdown " 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
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
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=47F9E4FD.76E4.0078.0@novell.com \
--to=jbeulich@novell.com \
--cc=KSrinivasan@novell.com \
--cc=garloff@suse.de \
--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.