From: Avi Kivity Subject: Re: [Qemu-devel] [RFC PATCH 1/1] ceph/rbd block driver for qemu-kvm Date: Tue, 25 May 2010 19:16:20 +0300 Message-ID: <4BFBF7D4.80900@redhat.com> References: <20100519192222.GD61706@ncolin.muc.de> <4BF5A9D2.5080609@codemonkey.ws> <4BF91937.2070801@redhat.com> <4BFBAE46.5050801@redhat.com> <4BFBB3C1.9020905@redhat.com> <4BFBCFAC.9070807@codemonkey.ws> <4BFBD13C.60605@redhat.com> <4BFBD20E.5060207@codemonkey.ws> <4BFBD2D5.2000201@redhat.com> <4BFBD6CD.3000503@codemonkey.ws> <4BFBD82F.3020404@redhat.com> <4BFBD943.8020704@codemonkey.ws> <4BFBE614.9080306@redhat.com> <4BFBE64F.6020901@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Kevin Wolf , Blue Swirl , ceph-devel@vger.kernel.org, Christian Brunner , kvm@vger.kernel.org, qemu-devel@nongnu.org To: Anthony Liguori Return-path: In-Reply-To: <4BFBE64F.6020901@codemonkey.ws> Sender: ceph-devel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 05/25/2010 06:01 PM, Anthony Liguori wrote: > On 05/25/2010 10:00 AM, Avi Kivity wrote: >> The latter. Why is it less important? If you don't inherit the >> memory, you can't access it. >> >>> You can also pass /dev/shm fd's via SCM_RIGHTs to establish shared >>> memory segments dynamically. >> >> Doesn't work for anonymous memory. > > What's wrong with /dev/shm memory? The kernel treats anonymous and nonymous memory differently for swapping (see /proc/sys/vm/swappiness); transparent hugepages won't work for /dev/shm (though it may be argued that that's a problem with thp); setup (/dev/shm defaults to half memory IIRC, we want mem+swap); different cgroup handling; somewhat clunky (a minor concern to be sure). Nothing is a killer, but we should prefer anonymous memory. -- error compiling committee.c: too many arguments to function