From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=37976 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Paa4q-0001E2-Nq for qemu-devel@nongnu.org; Wed, 05 Jan 2011 15:35:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Paa4p-0006hV-JA for qemu-devel@nongnu.org; Wed, 05 Jan 2011 15:35:24 -0500 Received: from mx1.redhat.com ([209.132.183.28]:8577) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Paa4p-0006hJ-9t for qemu-devel@nongnu.org; Wed, 05 Jan 2011 15:35:23 -0500 Date: Wed, 5 Jan 2011 21:35:18 +0100 From: Andrea Arcangeli Subject: Re: [Qemu-devel] [PATCH] add MADV_DONTFORK to guest physical memory Message-ID: <20110105203518.GH15823@random.random> References: <20100915170824.GL5981@random.random> <20110105151012.GC15823@random.random> <4D24B22C.4010302@linux.vnet.ibm.com> <20110105195430.GF15823@random.random> <4D24D3EB.1080702@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D24D3EB.1080702@linux.vnet.ibm.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Roth Cc: Blue Swirl , Andreas =?iso-8859-1?Q?F=E4rber?= , Anthony Liguori , Alexander Graf , "qemu-devel@nongnu.org Developers" On Wed, Jan 05, 2011 at 02:26:19PM -0600, Michael Roth wrote: > Yah you're right, but I've seen several discussions about using mempath > for tmpfs/ram-backed files for things like numa/zram/etc so tend to > think of it as something potentially more than just a hook for > hugetlbfs, which is becoming less and less useful. But the MADV_DONTFORK > stuff should still be immediately applicable. Yes, MADV_DONTFORK should be set all on all guest physical memory without options so I hope the new patch I just posted is fine to stop the spurious -ENOMEM failures in fork. The ksm part should go incremental but 99% of it will be about changing the command line, making the madvise conditional will be trivial as well.