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''
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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/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.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
> -----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 seemsto> >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 -- InteractiveReporting> 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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/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.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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel