From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yrowu-00085t-MF for qemu-devel@nongnu.org; Mon, 11 May 2015 10:44:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yrown-0004rw-Js for qemu-devel@nongnu.org; Mon, 11 May 2015 10:44:52 -0400 Received: from smtp.uni-ulm.de ([134.60.1.26]:43384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yrown-0004pW-B6 for qemu-devel@nongnu.org; Mon, 11 May 2015 10:44:45 -0400 Received: from [134.60.30.87] (omi-student2.e-technik.uni-ulm.de [134.60.30.87]) (authenticated bits=0) by mail.uni-ulm.de (8.14.9/8.14.7) with ESMTP id t4BEibG4012176 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Mon, 11 May 2015 16:44:37 +0200 (CEST) Message-ID: <5550C04D.1080804@uni-ulm.de> Date: Mon, 11 May 2015 16:44:29 +0200 From: Daniel Seybold MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Behaviour of the qemu-monitor info mem/tlb command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi everyone, I've already posted this question to the qemu-user list but I didn't receive any answer so maybe you can help me. I'm not trying to spam the lists ;-) I'm playing a bit with the qemu-monitor commands, especially with the"mem" and "tlb" commands with the intent to get a deeper look into theactually memory usage of the guest. My test setup consists of a host with the following specifications: CentOS release 6.6 (Final) Linux version 2.6.32-431.29.2.el6.x86_64 Compiled against library: libvirt 0.10.2 Using library: libvirt 0.10.2 Using API: QEMU 0.10.2 Running hypervisor: QEMU 0.12.1 The guest system is a Ubuntu Server 14.04 (Cloud Image), 4 Cores, 4 GB RAM On the guest the the load generation tool stress is running andallocates 100MB of RAM. Now I'm trying to get the virtual memory mapping inside the guest systemwith through this command: virsh qemu-monitor-command --hmp INSTANCEID 'info mem' Running this aforementioned setup I observed different behaviours of the"info mem"/"info tlb" commands.The follwowing two points describe the possible behaviours when runningstress. But I wasn't able to determine in which case behaviour 1 or 2occurs. 1. I don't get any results when executing info mem/tlb but there is 2Gbof RAM allocated inside the VM 2. I get the the virtual memory mapping and physical memory mapping fromthe insode of the VM. But if I sum up all the virtual memory pages I geta clearly higher amout of memory which is allocated (nearly 1GB) . AndI get the same results summing up the tlb pages.Or is this the wrong approach to get a deeper look into the actualmemory allocation inside a VM? (I'm aware of the virsh dommemstatcommand and possible agent based solutions inside the VM but I'm tryingto get a the memory information on the host level) Thanks in advance for your help! Cheers, Daniel