From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles Coffing" Subject: Overcommitting memory (was: Disable auto-balloon on ia64) Date: Mon, 22 May 2006 09:12:27 -0600 Message-ID: <44718139.D169.003C.0@novell.com> References: <571ACEFD467F7749BC50E0A98C17CDD8094E7C7F@pdsmsx403> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser , Kevin Tian Cc: xen-devel , Alex Williamson , xen-ia64-devel List-Id: xen-devel@lists.xenproject.org >>> On Mon, May 22, 2006 at 3:37 AM, in message , Keir Fraser wrote: > On 22 May 2006, at 10:06, Tian, Kevin wrote: > >> We just need to reverse the whole change for ia64, since both domU >> and domVTI are insert a hole by this auto- balloon patch. Due to >> missing balloon support on xen/ia64 as you said, both domU and domVTI >> failed due to this change. > > The first patch that you work around seems okay to me. That is, it > seems correct that we make initial reservation exclude 'getDomainMemory > headroom'. Shouldn't ia64 reserve extra memory as it needs it, as x86 > does, rather than up front? > > The second bit of your workaround, which applies to getDomainMemory: > I'll wait and see if Charles has anything to say, but otherwise I'll > remove the code that adds the extra slack entirely. I think we have a more general problem here. Xen, historically, hasn't overcommitted memory. But with shadow page tables and HVM, that's not really true, is it? Suppose I start up a 256 MB HVM domain running, say, a forking web server. How much physical RAM does this take? Depends on the load, doesn't it? Unless I'm missing something, there is no "big enough" amount of slack, if you care about reliability. With Yunhong's BUG -> domain_crash patch, the box shouldn't crash, but the domain still might. In shadow32.c, I see a FIXME comment that refers to "shadow flush". Even if such things are done, can you put an upper limit on the runtime memory overhead for an HVM domain?