From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sasha Levin Subject: Re: [PATCH v2 6/8] kvm tools: Add rwlock wrapper Date: Mon, 30 May 2011 14:58:01 +0300 Message-ID: <1306756681.14564.95.camel@lappy> References: <1306748069.14564.52.camel@lappy> <1306748796.14564.62.camel@lappy> <20110530095451.GB8461@elte.hu> <20110530201110.f3bf20b5.yoshikawa.takuya@oss.ntt.co.jp> <1306753954.14564.92.camel@lappy> <20110530202646.eff0ea28.yoshikawa.takuya@oss.ntt.co.jp> <4DE381DB.8040804@redhat.com> <20110530114949.GD22324@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Ingo Molnar , Avi Kivity , Takuya Yoshikawa , kvm@vger.kernel.org, asias.hejun@gmail.com, gorcunov@gmail.com, prasadjoshi124@gmail.com, "Paul E. McKenney" , takuya.yoshikawa@gmail.com To: Pekka Enberg Return-path: Received: from mail-ww0-f44.google.com ([74.125.82.44]:41881 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751651Ab1E3L6b (ORCPT ); Mon, 30 May 2011 07:58:31 -0400 Received: by wwa36 with SMTP id 36so3839498wwa.1 for ; Mon, 30 May 2011 04:58:30 -0700 (PDT) In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Mon, 2011-05-30 at 14:55 +0300, Pekka Enberg wrote: > On Mon, May 30, 2011 at 2:49 PM, Ingo Molnar wrote: > > [*] Would be nice if tools/kvm/ had a debug option to simulate 'lots > > of RAM' as well somehow - perhaps by not pre-initializing it and > > somehow catching all-zeroes pages and keeping them all zeroes and > > shared? It would obviously OOM after some time but would allow me > > to at least boot a fair deal of userspace. The motivation is that > > i have recently received a 1 TB RAM bugreport. 1 TB of RAM mapped > > with 2MB mappings should still be able to boot to shell on a 32 > > GB RAM testbox of mine, and survive there for some time. We could > > even do some kernel modifications to make this kind of simulation > > easier. > > Doesn't our mmap() overcommit work for you? IIRC, Sasha booted guests > with huge amounts of overcommitted RAM. It should. I can (easily) boot 64GB guest on my 4GB laptop. We fail at >64GB due to an issue with our mappings (I haven't investigated it yet) - not due to running out of memory. -- Sasha.