From: Michal Novotny <minovotn@redhat.com>
To: Dan Magenheimer <dan.magenheimer@oracle.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: [PATCH] Fix restore handling checks
Date: Wed, 23 Jun 2010 16:14:56 +0200 [thread overview]
Message-ID: <4C2216E0.4020808@redhat.com> (raw)
In-Reply-To: <6cdb3fbe-ba59-4e42-8089-4c119a18c855@default>
On 06/23/2010 03:51 PM, Dan Magenheimer wrote:
>> From: Michal Novotny [mailto:minovotn@redhat.com]
>>
>> 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@redhat.com>, RHCE
Virtualization Team (xen userspace), Red Hat
next prev parent reply other threads:[~2010-06-23 14:14 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
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 [this message]
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=4C2216E0.4020808@redhat.com \
--to=minovotn@redhat.com \
--cc=dan.magenheimer@oracle.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).