xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Dan Magenheimer <dan.magenheimer@oracle.com>
To: Michal Novotny <minovotn@redhat.com>, xen-devel@lists.xensource.com
Subject: RE: [PATCH] Fix restore handling checks
Date: Tue, 22 Jun 2010 13:46:34 -0700 (PDT)	[thread overview]
Message-ID: <b0eca5df-d715-41f4-b774-04f183293ac5@default> (raw)
In-Reply-To: <4C20B2F8.4030409@redhat.com>

Correct me if I am wrong, but I think your patch assumes
that the amount of free memory in the system can be
computed by assuming each guest memory is fixed size.
Due to various features in Xen 4.0, this is no longer
a safe assumption.  Tmem has a libxc call to freeze
and unfreeze its use of memory so dynamic memory use
by tmem can be stopped, and another libxc call to
determine "freeable" memory, and another to free it.
I don't know if the page-sharing functionality added
at 4.0 has anything similar.

But in any case, simple algorithms to add up current
(or max) guest memory will have many false-positive
and false-negative results.

> -----Original Message-----
> From: Michal Novotny [mailto:minovotn@redhat.com]
> Sent: Tuesday, June 22, 2010 6:56 AM
> To: xen-devel@lists.xensource.com
> Subject: Re: [Xen-devel] [PATCH] Fix restore handling checks
> 
> On 06/22/2010 08:17 AM, Michal Novotny wrote:
> > On 06/22/2010 08:14 AM, Keir Fraser wrote:
> >> Okay, hopefully someone will be able to Ack this patch with better
> >> knwoledge
> >> of xend than me.
> >>
> >>   -- Keir
> >>
> > Ok, good. If it will be accepted and put into xen-staging/xen-
> unstable
> > tree please let me know about it.
> >
> > Thanks,
> > Michal
> >
> 
> Well, this is new version of the patch since I've tried now to both
> migrate from RHEL-5 host (python-2.4) to RHEL-6 host (python-2.6) using
> the RHEL-5 host as a source machine for migrations and also RHEL-6 host
> to restore the the guest locally using `xm restore` to see whether the
> guest memory calculated correctly and it did pass when there was enough
> memory to create the guest and failed when there was not enough memory
> to create the guest. Also, some fixing for comparing the values was
> necessary since it was treated as string comparison on one of the
> hosts.
> 
> Both the host machines were having the latest Xen-4.1 installed.
> 
> Michal
> 
> Signed-off-by: Michal Novotny <minovotn@redhat.com>
> 
> --
> Michal Novotny<minovotn@redhat.com>, RHCE
> Virtualization Team (xen userspace), Red Hat
> 

  parent reply	other threads:[~2010-06-22 20:46 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-21 16:30 [PATCH] Fix restore handling checks Michal Novotny
2010-06-21 18:04 ` Keir Fraser
2010-06-22  5:43   ` Michal Novotny
2010-06-22  6:11     ` Michal Novotny
2010-06-22  6:14       ` Keir Fraser
2010-06-22  6:17         ` Michal Novotny
2010-06-22 12:56           ` Michal Novotny
2010-06-22 14:10             ` Konrad Rzeszutek Wilk
2010-06-23 11:27               ` Michal Novotny
2010-06-22 20:46             ` Dan Magenheimer [this message]
2010-06-23  9:59               ` Michal Novotny
2010-06-23 11:21               ` Michal Novotny
2010-06-23 13:51                 ` Dan Magenheimer
2010-06-23 14:14                   ` Michal Novotny
2010-06-22 14:56     ` Ian Jackson
2010-06-23 11:19       ` Paolo Bonzini
2010-06-23 11:27         ` Ian Jackson
2010-06-23 11:29           ` Michal Novotny
2010-06-23 11:50             ` Ian Jackson
2010-06-23 11:54               ` Michal Novotny
2010-06-23 12:04                 ` Ian Jackson
2010-06-23 12:10                   ` Paolo Bonzini
2010-06-23 12:20                     ` Michal Novotny
2010-06-23 12:20                     ` Michal Novotny
2010-06-23 12:12                   ` Michal Novotny
2010-06-23 12:33                   ` Alan Cox
2010-06-23 15:12                     ` George Dunlap
2010-06-23 16:26                     ` Dan Magenheimer
2010-06-23 12:35             ` Alan Cox
2010-06-23 12:37               ` Michal Novotny

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=b0eca5df-d715-41f4-b774-04f183293ac5@default \
    --to=dan.magenheimer@oracle.com \
    --cc=minovotn@redhat.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).