All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <jbeulich@novell.com>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: xen-devel@lists.xensource.com
Subject: Re: balloon question
Date: Fri, 09 Jun 2006 09:00:42 +0200	[thread overview]
Message-ID: <448938BA.76E4.0078.0@novell.com> (raw)
In-Reply-To: <15e85c6aa3f95ddc8a8d4d121ca056cc@cl.cam.ac.uk>

>>> Keir Fraser <Keir.Fraser@cl.cam.ac.uk> 08.06.06 18:25 >>>
>
>On 8 Jun 2006, at 14:51, Jan Beulich wrote:
>
>> Running with Xen option dom0_mem=6G and kernel option mem=8G, I would 
>> have expected that I would see the system with a
>> 2G balloon right after boot. However, the balloon is empty. Briefly 
>> looking at this, it would seem to me that, with all
>> pages being reserved when the system starts and only the populated 
>> ones getting the reserved status cleared in
>> __free_pages_bootmem(), the condition to put pages into the balloon in 
>> balloon_init() is inverted.

>i386 deliberately marks pages beyond start_info->nr_pages as not 
>Reserved so they get picked up by the balloon driver. Either x86/64 
>needs to do the same, or we stop doing that in i386. But then there 
>will be pages that are legitimately Reserved that the balloon driver 

Where would, under Xen, such pages originate from? Namely beyond
start_info->nr_pages?

>will erroneously pick up. Or we could make the balloon driver 
>explicitly pick up all pages from start_info->nr_pages. Or have an 

It is already starting its scan at start_info->nr_pages.

>interface to allow arch code to register page ranges with the balloon 
>driver. This needs a little thought....
>
>> Also, dying in xen_destroy_contiguous_region() (and similarly in the 
>> failure recovery code in
>> xen_create_contiguous_region()) if the space just unmapped can't be 
>> re-populated seems overly harsh (we're having a case
>> where this actually happens); wouldn't it make sense to make this 
>> fatal only when the page can't be replaced by a free
>> one (allocated inside the domain, with the page stolen for this then 
>> simply pushed into the balloon, similar to
>> balloon_alloc_empty_page_range() except without freeing the memory to 
>> Xen)?
>
>As it happens I'm fixing this exact problem right now. :-) Expect a fix 
>in -unstable and -testing in the next few days.

Great!

Jan

  reply	other threads:[~2006-06-09  7:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-08 13:51 balloon question Jan Beulich
2006-06-08 16:25 ` Keir Fraser
2006-06-09  7:00   ` Jan Beulich [this message]
2006-06-09  7:05     ` Keir Fraser
2006-06-09  9:52       ` Jan Beulich
2006-06-09 10:35         ` Keir Fraser
  -- strict thread matches above, loose matches on Subject: below --
2016-04-28  6:58 Zhang, Chunyu
2016-04-28  9:07 ` George Dunlap
2016-04-28 10:10   ` Zhang, Chunyu

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=448938BA.76E4.0078.0@novell.com \
    --to=jbeulich@novell.com \
    --cc=Keir.Fraser@cl.cam.ac.uk \
    --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.