<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On Jun 26, 2014, at 2:50 AM, Eric Blake <<a href="mailto:eblake@redhat.com">eblake@redhat.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;">I'm still not clear how you are getting vcpu PID numbers for reading</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;">from /proc; it's not something that libvirt is currently advertising.</span></blockquote></div><br><div>I thought the VM process’s /proc statistics information is exactly the same </div><div>as the guest’s behaviour. It turns out to be my misunderstanding.</div><div><br></div><div>Each vcpu is a thread of the VM process in qemu implementation, whose </div><div>thread id can be obtained by the “-L” option of the “ps” command.  It seems </div><div>that I don't mention the vcpu PID. I’m referring to the VM process’s /proc/$pid.</div><div><br></div><div>If running a VM whose image file is located on the local disk, how can i </div><div>calculate the disk bandwidth(the percentage, e.g. 40% disk) used by the VM? </div><div> </div><div><br></div><div><br></div><div><br></div></body></html>