Received: from eggs.gnu.org ([2001:4830:134:3::10]:56214) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmfeO-0001TY-PC for qemu-devel@nongnu.org; Wed, 12 Jun 2013 03:39:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UmfeN-00052i-Hx for qemu-devel@nongnu.org; Wed, 12 Jun 2013 03:39:24 -0400 Received: from mail-ee0-x22a.google.com ([2a00:1450:4013:c00::22a]:59766) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UmfeN-00052S-Bd for qemu-devel@nongnu.org; Wed, 12 Jun 2013 03:39:23 -0400 Received: by mail-ee0-f42.google.com with SMTP id c4so4170243eek.29 for ; Wed, 12 Jun 2013 00:39:22 -0700 (PDT) Date: Wed, 12 Jun 2013 09:39:19 +0200 From: Stefan Hajnoczi Message-ID: <20130612073919.GC946@stefanha-thinkpad.muc.redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] how to do performance monitor for single VM? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Cheung Cc: "qemu-devel@nongnu.org" On Tue, Jun 11, 2013 at 06:06:34PM +0800, Peter Cheung wrote: > Dear All My name is Peter, i am working on a open source project called "Pandora". It is a new admin console for openstack. http://peter.kingofcoders.com/?p=663 How to do performance monitor for single VM? For public cloud billing system, i need to know information about CPU/memory/IO traction/Network bandwidth for that VM > Thanksfrom Peter OpenStack uses libvirt so you should take a look at the APIs available there instead of accessing QEMU directly: http://libvirt.org/html/libvirt-libvirt.html If you want to quickly explore what information is available, try running virt-manager(1) or virsh(1). They can report guest/host CPU utilization, memory usage, block I/O statistics, network I/O stats, etc. For help with libvirt, see: http://libvirt.org/contact.html Stefan