All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about CPU utilization
@ 2005-01-20  1:23 Eric Tessler
  2005-01-20  6:54 ` Matt Ayres
  0 siblings, 1 reply; 11+ messages in thread
From: Eric Tessler @ 2005-01-20  1:23 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 232 bytes --]

Is there anyway to get the CPU utilization for a machine as a whole - one that includes all domains (domain 0 + domain U)?
 
Eric

		
---------------------------------
Do you Yahoo!?
 Yahoo! Search presents - Jib Jab's 'Second Term'

[-- Attachment #2: Type: text/html, Size: 360 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Question about CPU utilization
  2005-01-20  1:23 Question about CPU utilization Eric Tessler
@ 2005-01-20  6:54 ` Matt Ayres
  2005-01-20  8:51   ` Steven Hand
  0 siblings, 1 reply; 11+ messages in thread
From: Matt Ayres @ 2005-01-20  6:54 UTC (permalink / raw)
  To: Eric Tessler; +Cc: xen-devel

On Wed, 2005-01-19 at 17:23 -0800, Eric Tessler wrote:
> Is there anyway to get the CPU utilization for a machine as a whole -
> one that includes all domains (domain 0 + domain U)?
>  
> Eric
> 

Just to chime in... I don't believe this feature exists, but it seems to
be one that many people desire.  Some sort of tool to be able to view
resource usage of domains in a real-time environment (xentop?) with a
"batch" option for scripts would be ideal.  

The primary purposes would be to peg down what domains are using what
resources and help track down problems.  An example I can think of is if
a domain is using too much CPU and/or I/O and causing all domains to
slow down.  I'd like to be able to quickly track the trouble domain
down.  Right now knowing the total seconds a domain has used since
creation is no help in that situation.

-- 
Thanks,
Matt



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Question about CPU utilization
  2005-01-20  6:54 ` Matt Ayres
@ 2005-01-20  8:51   ` Steven Hand
  2005-01-20 10:51     ` B.G. Bruce
  2005-01-20 18:22     ` David Hopwood
  0 siblings, 2 replies; 11+ messages in thread
From: Steven Hand @ 2005-01-20  8:51 UTC (permalink / raw)
  To: Matt Ayres; +Cc: Eric Tessler, xen-devel, Steven.Hand


>On Wed, 2005-01-19 at 17:23 -0800, Eric Tessler wrote:
>> Is there anyway to get the CPU utilization for a machine as a whole -
>> one that includes all domains (domain 0 + domain U)?
>>  
>> Eric
>> 
>
>Just to chime in... I don't believe this feature exists, but it seems to
>be one that many people desire.  Some sort of tool to be able to view
>resource usage of domains in a real-time environment (xentop?) with a
>"batch" option for scripts would be ideal.  

This is on our feature list - one way we had thought of doing it was 
to fake out a process in dom0 for each domU, and just have top report 
the (aggregate) usage for each domain, but there are other options too
for the way the data is presented.  Using an event channel to either 
push or poll for load averages is probably the basic underlying 
functionality required. 

cheers, 

S.


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: Question about CPU utilization
@ 2005-01-20 10:07 Neugebauer, Rolf
  0 siblings, 0 replies; 11+ messages in thread
From: Neugebauer, Rolf @ 2005-01-20 10:07 UTC (permalink / raw)
  To: Steven Hand, Matt Ayres; +Cc: Eric Tessler, xen-devel



> -----Original Message-----
> From: xen-devel-admin@lists.sourceforge.net [mailto:xen-devel-
> admin@lists.sourceforge.net] On Behalf Of Steven Hand
> Sent: 20 January 2005 08:51
> To: Matt Ayres
> Cc: Eric Tessler; xen-devel@lists.sourceforge.net;
> Steven.Hand@cl.cam.ac.uk
> Subject: Re: [Xen-devel] Question about CPU utilization
> 
> 
> >On Wed, 2005-01-19 at 17:23 -0800, Eric Tessler wrote:
> >> Is there anyway to get the CPU utilization for a machine as a whole
-
> >> one that includes all domains (domain 0 + domain U)?
> >>
> >> Eric
> >>
> >
> >Just to chime in... I don't believe this feature exists, but it seems
to
> >be one that many people desire.  Some sort of tool to be able to view
> >resource usage of domains in a real-time environment (xentop?) with a
> >"batch" option for scripts would be ideal.
> 
> This is on our feature list - one way we had thought of doing it was
> to fake out a process in dom0 for each domU, and just have top report
> the (aggregate) usage for each domain, but there are other options too
> for the way the data is presented.  Using an event channel to either
> push or poll for load averages is probably the basic underlying
> functionality required.

Also, the dom0 interface already allows you to get information about
each domain which includes the CPU usage from each domain (total of CPU
seconds consumed). One could write a little utility to periodically poll
this info and calculate the load average. I vaguely recall someone
posting such a script a while back. 

Rolf


> 
> cheers,
> 
> S.
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive
Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xen-devel


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Question about CPU utilization
  2005-01-20  8:51   ` Steven Hand
@ 2005-01-20 10:51     ` B.G. Bruce
  2005-01-20 11:19       ` Ian Pratt
  2005-01-20 15:48       ` Ronald G. Minnich
  2005-01-20 18:22     ` David Hopwood
  1 sibling, 2 replies; 11+ messages in thread
From: B.G. Bruce @ 2005-01-20 10:51 UTC (permalink / raw)
  To: Steven Hand; +Cc: Matt Ayres, Eric Tessler, xen-devel

My $.02 - would an snmp interface/extension be posssible to the xen core
through DOM0?  We could then monitor/record/report total memory/cpu
stats and possibly /domain stats with whatever our favorite tool of the
day happened to be.

B.


On Thu, 2005-01-20 at 04:51, Steven Hand wrote:
> >On Wed, 2005-01-19 at 17:23 -0800, Eric Tessler wrote:
> >> Is there anyway to get the CPU utilization for a machine as a whole -
> >> one that includes all domains (domain 0 + domain U)?
> >>  
> >> Eric
> >> 
> >
> >Just to chime in... I don't believe this feature exists, but it seems to
> >be one that many people desire.  Some sort of tool to be able to view
> >resource usage of domains in a real-time environment (xentop?) with a
> >"batch" option for scripts would be ideal.  
> 
> This is on our feature list - one way we had thought of doing it was 
> to fake out a process in dom0 for each domU, and just have top report 
> the (aggregate) usage for each domain, but there are other options too
> for the way the data is presented.  Using an event channel to either 
> push or poll for load averages is probably the basic underlying 
> functionality required. 
> 
> cheers, 
> 
> S.
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xen-devel
> 


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Question about CPU utilization
  2005-01-20 10:51     ` B.G. Bruce
@ 2005-01-20 11:19       ` Ian Pratt
  2005-01-20 15:48       ` Ronald G. Minnich
  1 sibling, 0 replies; 11+ messages in thread
From: Ian Pratt @ 2005-01-20 11:19 UTC (permalink / raw)
  To: bgb; +Cc: Steven Hand, Matt Ayres, Eric Tessler, xen-devel, Ian.Pratt

> My $.02 - would an snmp interface/extension be posssible to the xen core
> through DOM0?  We could then monitor/record/report total memory/cpu
> stats and possibly /domain stats with whatever our favorite tool of the
> day happened to be.

I'd like to see a little daemon written that binds to the
priv_cmd interface and reads the CPU usage data and generates
load stats etc. Having the option to export an SNMP interface
would be good, but we'll want it hooking into the rest of the
control interface too.

Ian


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Question about CPU utilization
  2005-01-20 10:51     ` B.G. Bruce
  2005-01-20 11:19       ` Ian Pratt
@ 2005-01-20 15:48       ` Ronald G. Minnich
  2005-01-20 17:05         ` Rob Gardner
  2005-01-20 17:19         ` B.G. Bruce
  1 sibling, 2 replies; 11+ messages in thread
From: Ronald G. Minnich @ 2005-01-20 15:48 UTC (permalink / raw)
  To: B.G. Bruce; +Cc: Steven Hand, Matt Ayres, Eric Tessler, xen-devel



On Thu, 20 Jan 2005, B.G. Bruce wrote:

> My $.02 - would an snmp interface/extension be posssible to the xen core
> through DOM0?  We could then monitor/record/report total memory/cpu
> stats and possibly /domain stats with whatever our favorite tool of the
> day happened to be.

This seems so unnecessary to me. SNMP means simple network management 
protocol after all. All the info we need from a domain is in memory, so 
why would it not just be there in the /sys tree?

ron


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Question about CPU utilization
  2005-01-20 15:48       ` Ronald G. Minnich
@ 2005-01-20 17:05         ` Rob Gardner
  2005-01-20 17:19         ` B.G. Bruce
  1 sibling, 0 replies; 11+ messages in thread
From: Rob Gardner @ 2005-01-20 17:05 UTC (permalink / raw)
  To: xen-devel

Just so somebody doesn't go off and duplicate a bunch of effort, this 
seems like a good time to announce that I've already written a 
considerable amount of code that provides detailed measurements of cpu 
usage for each domain along with some other interesting bits of data, 
for instance domain context switch frequency, etc. The code consists of 
some hooks in xen itself to record data, and an app that runs in Dom0 
that grabs the data and presents it either as a periodically updating 
text screen, or as semi-processed data through a network socket for use 
by other programs.

I'd like to make this code available to everyone by checking it in to 
the xen source, perhaps having the code activated through a build option 
or something. Then we can discuss the various ideas for the best 
interface to this data, snmp or whatever.

Rob Gardner
HP, Fort Collins





-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Question about CPU utilization
  2005-01-20 15:48       ` Ronald G. Minnich
  2005-01-20 17:05         ` Rob Gardner
@ 2005-01-20 17:19         ` B.G. Bruce
  1 sibling, 0 replies; 11+ messages in thread
From: B.G. Bruce @ 2005-01-20 17:19 UTC (permalink / raw)
  To: Ronald G. Minnich; +Cc: Steven Hand, Matt Ayres, Eric Tessler, xen-devel

As long as there is a way (which it sounds like there is) to get this
info from Dom0 to a management/reporting domain, I'm happy!

B.


On Thu, 2005-01-20 at 11:48, Ronald G. Minnich wrote:
> On Thu, 20 Jan 2005, B.G. Bruce wrote:
> 
> > My $.02 - would an snmp interface/extension be posssible to the xen core
> > through DOM0?  We could then monitor/record/report total memory/cpu
> > stats and possibly /domain stats with whatever our favorite tool of the
> > day happened to be.
> 
> This seems so unnecessary to me. SNMP means simple network management 
> protocol after all. All the info we need from a domain is in memory, so 
> why would it not just be there in the /sys tree?
> 
> ron
> 


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Question about CPU utilization
  2005-01-20  8:51   ` Steven Hand
  2005-01-20 10:51     ` B.G. Bruce
@ 2005-01-20 18:22     ` David Hopwood
  1 sibling, 0 replies; 11+ messages in thread
From: David Hopwood @ 2005-01-20 18:22 UTC (permalink / raw)
  To: xen-devel

Steven Hand wrote:
>Matt Ayres wrote:
>>
>>Just to chime in... I don't believe this feature exists, but it seems to
>>be one that many people desire.  Some sort of tool to be able to view
>>resource usage of domains in a real-time environment (xentop?) with a
>>"batch" option for scripts would be ideal.  
> 
> This is on our feature list - one way we had thought of doing it was 
> to fake out a process in dom0 for each domU, and just have top report 
> the (aggregate) usage for each domain, but there are other options too
> for the way the data is presented.  Using an event channel to either 
> push or poll for load averages is probably the basic underlying 
> functionality required.

Polling for cumulative CPU times, rather than averages, is probably a
better interface. Then the user-mode tool can average over whatever
period it wants.

-- 
David Hopwood <david.nospam.hopwood@blueyonder.co.uk>



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: Question about CPU utilization
@ 2005-01-20 21:56 Ian Pratt
  0 siblings, 0 replies; 11+ messages in thread
From: Ian Pratt @ 2005-01-20 21:56 UTC (permalink / raw)
  To: david.nospam.hopwood, xen-devel

> Polling for cumulative CPU times, rather than averages, is probably a
> better interface. Then the user-mode tool can average over whatever
> period it wants.

Indeed, that's why Xen exports cumulative CPU times, leaving it to
tools/daemons to do averages.

Ian


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-01-20 21:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-20  1:23 Question about CPU utilization Eric Tessler
2005-01-20  6:54 ` Matt Ayres
2005-01-20  8:51   ` Steven Hand
2005-01-20 10:51     ` B.G. Bruce
2005-01-20 11:19       ` Ian Pratt
2005-01-20 15:48       ` Ronald G. Minnich
2005-01-20 17:05         ` Rob Gardner
2005-01-20 17:19         ` B.G. Bruce
2005-01-20 18:22     ` David Hopwood
  -- strict thread matches above, loose matches on Subject: below --
2005-01-20 10:07 Neugebauer, Rolf
2005-01-20 21:56 Ian Pratt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.