[libvirt] [PATCHv6 0/6] Add virNodeGetCPUStats() API

Minoru Usui usui at mxm.nes.nec.co.jp
Mon May 30 02:03:35 UTC 2011


On Mon, 30 May 2011 09:36:50 +0900
KAMEZAWA Hiroyuki <kamezawa.hiroyu at jp.fujitsu.com> wrote:

> On Wed, 25 May 2011 15:01:29 +0900
> Minoru Usui <usui at mxm.nes.nec.co.jp> wrote:
> 
> > Hi,
> > 
> > This is v6 of virNodeGetCPUTimeParameters() API. 
> > (This time, I rename it to virNodeGetCPUStats())
> > It returns cpu utilization or 
> > cumulative cpu time of the node from /proc/stat since node boots up.
> > This patch only supports linux host.
> > 
> 
> Can I make a question ?
> 
> What "CPU' means here ? 
> 
> CPU usage statistics from the Guest OS's point of view  ?
> 
> Do we get the information by asking an daemon or module on the guest 
> to gather statistics on the guest ?

No.
This API gets host cpu statistics, not guest.

It's just read statistics from /proc/stat of the host.

> Thanks,
> -Kame
> 


-- 
Minoru Usui <usui at mxm.nes.nec.co.jp>




More information about the libvir-list mailing list