qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Behaviour of the qemu-monitor info mem/tlb command
@ 2015-05-11 14:44 Daniel Seybold
  0 siblings, 0 replies; only message in thread
From: Daniel Seybold @ 2015-05-11 14:44 UTC (permalink / raw)
  To: qemu-devel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-05-11 14:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-11 14:44 [Qemu-devel] Behaviour of the qemu-monitor info mem/tlb command Daniel Seybold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).