All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Magenheimer <dan.magenheimer@oracle.com>
To: George Dunlap <dunlapg@umich.edu>
Cc: xen-devel@lists.xensource.com
Subject: RE: [RFC][PATCH] 0/9 Populate-on-demand memory
Date: Wed, 24 Dec 2008 06:32:42 -0800 (PST)	[thread overview]
Message-ID: <0ab6a86a-16ac-47fe-b6fd-6ce56f5b59f9@default> (raw)
In-Reply-To: <de76405a0812240555w3ced6a84nbcb05cebd4a2c233@mail.gmail.com>

> > The consequence for a no-swap-disk is application failures
> > and the consequence even if a swap disk IS configured is temporarily
> > very poor performance.
> 
> I don't think this is particular to the PoD patches, or even
> ballooning per se.  A swap disk would be required any time you boot
> with a small amount of memory, whether it could be increased or not.
>
> But you're right, in that this differs from a typical operating
> system's "demang-paging" mechanism, where the goal is to give a
> process only the memory it actually needs, so you can use it for other
> processes.  You're still allocating a fixed amount of memory to a
> guest at start-up.  The un-populated memory is not available to use by
> other VMs, and allocating more memory is a (relatively) slow process.
> I guess a brief note pointing out the difference between "populate on
> demand" and "allocate on demand" would be useful.

Yes, its just that with your fix, Windows VM users are much more
likely to use memory overcommit and will need to be "trained" to
always configure a swap disk to ensure bad things don't happen.
And this swap disk had better be on a network-based medium or
live migration won't work.
 
> > So this won't work for any domain that does start-of-day
> > scrubbing with a non-zero value?  I suppose that's OK.
> 
> Not if the scrubber might win the race against the balloon driver. :-)
>  If this really becomes an issue, it should be straightforward to add
> functionality to handle it.  It just requires having a simple way of
> specifying what "scrubbed" pages look like, an extra p2m type for "PoD
> scrubbed" (rather than PoD zero, the default), and how to change from
> scrubbed <-> zero.
> 
> Did you have a particular system in mind?

No, I had just given some limited thought to this problem previously,
had considered the idea of sharing a zero page for the Windows
start-of-day scrubbing problem, but didn't know if the scrubbing
always only used zeroes.  If it does, great!  I was worried that
something like a secure version of Windows might use some other random
bit pattern, but I'll bet Windows elsewhere assumes that all pages
start as zero-filled and is thus dependent on start-of-day ZERO
scrubbing, so I'll bet your approach will always work.

  reply	other threads:[~2008-12-24 14:32 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-23 12:55 [RFC][PATCH] 0/9 Populate-on-demand memory George Dunlap
2008-12-23 19:06 ` Dan Magenheimer
2008-12-24 13:55   ` George Dunlap
2008-12-24 14:32     ` Dan Magenheimer [this message]
2008-12-24 15:13       ` George Dunlap
2008-12-24 15:54         ` Dan Magenheimer
2008-12-24  1:46 ` Tian, Kevin
2008-12-24 14:42   ` George Dunlap
2008-12-24 15:35     ` Dan Magenheimer
2008-12-24 15:46       ` George Dunlap
2008-12-30  9:26         ` Tim Deegan
2008-12-31  1:40           ` Tian, Kevin
2009-01-02 10:03             ` Tim Deegan
2009-01-05  6:08               ` Tian, Kevin
2008-12-25  2:47       ` Tian, Kevin
2008-12-25  2:36     ` Tian, Kevin
2008-12-25  5:43       ` Han, Weidong
2008-12-25 11:45         ` Tian, Kevin
2008-12-26  0:42           ` Han, Weidong

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=0ab6a86a-16ac-47fe-b6fd-6ce56f5b59f9@default \
    --to=dan.magenheimer@oracle.com \
    --cc=dunlapg@umich.edu \
    --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.