From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXAAG-0005Id-CE for qemu-devel@nongnu.org; Fri, 18 Oct 2013 09:32:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VXAAA-0002Cc-1w for qemu-devel@nongnu.org; Fri, 18 Oct 2013 09:32:28 -0400 Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:36022 helo=socrates.bennee.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VXAA9-0002CJ-Sk for qemu-devel@nongnu.org; Fri, 18 Oct 2013 09:32:21 -0400 References: From: Alex =?utf-8?Q?Benn=C3=A9e?= In-reply-to: Date: Fri, 18 Oct 2013 14:32:20 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] Watching Resource consumption of guest from Qemu ? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sunil Agham Cc: qemu-devel sunil.agham@gmail.com writes: > Hello List, > > I am a graduate student trying to learn about virtualization. I wanted > to understand if there is any way to tell about resource consumption > of guest through Qemu ? e.g. if guest starts doing something cpu > intensive, would qemu be aware of that ? or is there a way to detect > that from qemu ? I assume your talking about a KVM quest rather than a system emulated guest within QEMU? KVM guests will appear as normal user-space tasks to the host OS so your normal top/htop/iotop tools will show activity associated with that guest. I don't think qemu directly monitors CPU utilisation but I could be wrong. Other information is available though - see docs/virtio-ballon-stats.txt for example. Things that trap to QEMU (i.e. hardware access, virtio) however can certainly be tracked. The the guest is in a pure CPU loop then qemu won't know about it until the next event it has to deal with. -- Alex Bennée