Received: from eggs.gnu.org ([2001:4830:134:3::10]:50710) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfJIY-00005o-Nq for qemu-devel@nongnu.org; Thu, 01 Sep 2016 00:08:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfJIT-0003EL-LV for qemu-devel@nongnu.org; Thu, 01 Sep 2016 00:08:17 -0400 Received: from nm30-vm5.bullet.mail.ne1.yahoo.com ([98.138.91.252]:56199) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfJIG-0003Bx-67 for qemu-devel@nongnu.org; Thu, 01 Sep 2016 00:08:13 -0400 Date: Thu, 1 Sep 2016 04:07:54 +0000 (UTC) From: journey journey Reply-To: journey journey Message-ID: <1384034234.2988374.1472702874881@mail.yahoo.com> MIME-Version: 1.0 References: <1384034234.2988374.1472702874881.ref@mail.yahoo.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] How to monitor guest vm memory usage List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org" Hi All Is there a tool to monitor qemu-kvm guest vm memory usage ( free in guest v= m)?Nowadays, I have already researched some methods:1. qemu-kvm process mem= ory usage.=C2=A0 =C2=A0 =C2=A0Since qemu-kvm process memory usage always in= creases as time goes on, it will not reflect the memory usage in vm.2.=C2= =A0virsh dommemstat=C2=A0 =C2=A0 =C2=A0Just as method 1.3.=C2=A0virsh qemu-= monitor-command --hmp [domain name] "info mem"=C2=A0 =C2=A0 =C2=A0(1) when = guest vm memory size less than 4Gbytes, it will output something like this:= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 7f882000-7f883000 00001000 urw=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A07fbf80= 00-7fbf9000 00001000 urw=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A088000000-88001000 00001000 -rw=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A088002000-88003000 00001000 = urw=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= 88004000-88005000 00001000 urw=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0c9000000-c9001000 00001000 urw=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0e8bfe000-e8bff000 000= 01000 urw=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0ea000000-ea001000 00001000 urw=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0ffbfc000-ffbfd000 00001000 -rw=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0ffbfe000-ffbff0= 00 00001000 urw=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0it shows pde info o= f PG_PRESENT_MASK, maybe has some relation with guest vm memory usage.=C2= =A0 =C2=A0 =C2=A0 (2) when guest vm memory size larger than 4Gbytes, it wil= l output noting. Please help!! =C2=A0 =C2=A0 =C2=A0=C2=A0