<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I was looking at the following item in the backlog:<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<table style="box-sizing: border-box; border-collapse: collapse;
border-spacing: 0px; margin-top: 0px !important; margin-bottom:
0px !important; display: block; width: 580px; overflow: auto;
word-break: normal; color: rgb(51, 51, 51); font-family:
'Helvetica Neue', Helvetica, 'Segoe UI', Arial, freesans,
sans-serif; font-size: 16px; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal; line-height:
25.6000003814697px; orphans: auto; text-align: start; text-indent:
0px; text-transform: none; white-space: normal; widows: auto;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">
<tbody style="box-sizing: border-box;">
<tr style="box-sizing: border-box; border-top-width: 1px;
border-top-style: solid; border-top-color: rgb(204, 204, 204);
background-color: rgb(255, 255, 255);">
<td style="box-sizing: border-box; padding: 6px 13px; border:
1px solid rgb(221, 221, 221);">Guests</td>
<td style="box-sizing: border-box; padding: 6px 13px; border:
1px solid rgb(221, 221, 221);" align="left">Stats: Display
memory utilization (use virt-df or virt-top or ...)</td>
</tr>
</tbody>
</table>
<br>
If I understood it right, the idea here is to show the -inner-
memory allocation of the guest. If you have a VM with 4Gb of RAM
running an Ubuntu, we want to know how much memory the Ubuntu OS and
its processes are using. <br>
<br>
I've done an investigation and I haven't found any tool to
accomplish this. "virt-top", "virsh dommemstat" and the libvirt API
retrieves the information of the memory usage of the guest relative
to the host. In the example mentioned before, supposing that the
host has 64Gb of RAM, all these tools would show that the VM is
using 12% of the host RAM. They do not dive in the VM and shows the
actual mem usage of the Ubuntu and its processes running there.<br>
<br>
Haven't found anything useful in other MLs and forums. The common
answer is 'run top in a terminal inside the VM', which of course
does not suit us. My question is: any thoughts about how we can
implement this feature? Because I am starting to think that, in the
end, this kind of info is strict to the guest OS and can't be polled
from the outside.<br>
<br>
Thanks!<br>
</body>
</html>