WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] Fix restore handling checks

To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Fix restore handling checks
From: Michal Novotny <minovotn@xxxxxxxxxx>
Date: Wed, 23 Jun 2010 16:14:56 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 23 Jun 2010 07:15:52 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <6cdb3fbe-ba59-4e42-8089-4c119a18c855@default>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <C846136B.18263%keir.fraser@xxxxxxxxxxxxx> <4C205583.80609@xxxxxxxxxx> <4C20B2F8.4030409@xxxxxxxxxx> <b0eca5df-d715-41f4-b774-04f183293ac5@default 4C21EE3E.2090906@xxxxxxxxxx> <6cdb3fbe-ba59-4e42-8089-4c119a18c855@default>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Thunderbird/3.0.4
On 06/23/2010 03:51 PM, Dan Magenheimer wrote:
From: Michal Novotny [mailto:minovotn@xxxxxxxxxx]

Honestly I don't know about how tmem features work since I have them
disabled because I'm unable to start any guest with them enabled
because it fails on creation.
If you are booting Xen enabling tmem and NOT setting dom0_mem=
there was a bug just reported and fixed (or patch posted at
least).  If this is another problem with tmem (e.g. you ARE
setting both tmem and dom0_mem), please tell me more.

However, note that just enabling tmem in Xen doesn't do
anything.  Tmem must also be enabled in guests.


Well, I double-checked the configuration and I was not using dom0_mem on HV command-line so this is the bug I hit. It's a version about week old or something like that so I guess it was the issue I met.

Why should it give too many false-positives/false-negatives...
The issue is that in a tmem system (with self-ballooning enabled
which will be the default for tmem-enabled guests), all the
guests are dynamically changing in size between their maximum
memory and some minimum which may be smaller than the mem=
they were launched with.

And "free" memory as reported by Xen is also changing dynamically
due to guest tmem calls.

The only way to ensure a fixed amount of memory is available is:
1) freeze tmem
2) get free memory and "tmem freeable" memory and if there
    is enough
3) ALLOCATE the memory NOW
4) check to ensure the allocation worked
5) unfreeze tmem

The code in xends currently does this when launching new domains.

Tmem freeze only stops tmem from allocating more free memory
from Xen (by failing all tmem calls from tmem-enabled guests).
It doesn't stop guest ballooning activity.  So even the
"ALLOCATE the memory NOW" may fail... but that is acceptable
when launching a new domain.

Hope that helps,
Dan

Oh, ok. Then I guess that the patch could be dropped since there are objections against both IDE read-only disk violation and memory check parts, i.e. against both parts.

Michal

--
Michal Novotny<minovotn@xxxxxxxxxx>, RHCE
Virtualization Team (xen userspace), Red Hat


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>