From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 0/3] KVM-userspace: add NUMA support for guests Date: Sun, 30 Nov 2008 22:08:23 +0200 Message-ID: <4932F2B7.8020500@redhat.com> References: <20081129201032.GT6703@one.firstfloor.org> <4931A77F.6050505@redhat.com> <20081130154145.GU6703@one.firstfloor.org> <4932B37A.3070305@redhat.com> <20081130160539.GV6703@one.firstfloor.org> <4932C176.7020102@redhat.com> <20081130170414.GX6703@one.firstfloor.org> <4932C94C.1090504@redhat.com> <20081130174250.GY6703@one.firstfloor.org> <4932D65D.8000509@redhat.com> <20081130185558.GZ6703@one.firstfloor.org> <982D8D05B6407A49AD506E6C3AC8E7D6BEF93691A7@caralain.haven.nynaeve.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Andi Kleen , Andre Przywara , "kvm@vger.kernel.org" To: Skywing Return-path: Received: from mx2.redhat.com ([66.187.237.31]:59194 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752782AbYK3UIR (ORCPT ); Sun, 30 Nov 2008 15:08:17 -0500 In-Reply-To: <982D8D05B6407A49AD506E6C3AC8E7D6BEF93691A7@caralain.haven.nynaeve.net> Sender: kvm-owner@vger.kernel.org List-ID: Skywing wrote: >> The far majority of pages are allocated when a process wants them >> or the kernel uses them for file cache. >> > > Is that not going to be fairly guest-specific? For example, Windows has a thread that does background zeroing of unallocated pages that aren't marked as zeroed already. I'd imagine that touching such pages would translate to an "allocation" as far as any hypervisor would be concerned. > Yes. Most likely the thread runs on the same node as the memory, so it stays local. Still, we need to keep the vcpu within the memory node somehow, otherwise all memory becomes non-local. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.