From: Chegu Vinod Subject: How to determine the backing host physical memory for a given guest ? Date: Wed, 9 May 2012 13:05:12 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from plane.gmane.org ([80.91.229.3]:41944 "EHLO plane.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756489Ab2EINF3 (ORCPT ); Wed, 9 May 2012 09:05:29 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SS6a7-0004Hd-ON for kvm@vger.kernel.org; Wed, 09 May 2012 15:05:28 +0200 Received: from zcce02cs1745-db20.houston.hp.com ([15.203.233.79]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 May 2012 15:05:27 +0200 Received: from chegu_vinod by zcce02cs1745-db20.houston.hp.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 09 May 2012 15:05:27 +0200 Sender: kvm-owner@vger.kernel.org List-ID: Hello, On an 8 socket Westmere host I am attempting to run a single guest and characterize the virtualization overhead for a system intensive workload (AIM7-high_systime) as the size of the guest scales (10way/64G, 20way/128G, ... 80way/512G). To do some comparisons between the native vs. guest runs. I have been using "numactl" to control the cpu node & memory node bindings for the qemu instance. For larger guest sizes I end up binding across multiple localities. for e.g. a 40 way guest : numactl --cpunodebind=0,1,2,3 --membind=0,1,2,3 \ qemu-system-x86_64 -smp 40 -m 262144 \ <....> I understand that actual mappings from a guest virtual address to host physical address could change. Is there a way to determine [at a given instant] which host's NUMA node is providing the backing physical memory for the active guest's kernel and also for the the apps actively running in the guest ? Guessing that there is a better way (some tool available?) than just diff'ng the per node memory usage...from the before and after output of "numactl --hardware" on the host. Thanks Vinod