Skip to contentSkip to conversation

Question about CPU utilization

DISCUSSION Eric Tessler 8 participants 9 messages Jan 20, 2005

lore
Share & tools
lore
#0 lore raw

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'

#1 lore raw
Quoted 5 lines · Eric Tessler

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.

Signature · 10 lines
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
#2 lore raw
Quoted 12 lines · Eric Tessler
Quoted 5 lines

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

#3 lore raw

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.

Quoted 24 lines · Steven Hand
Quoted 11 lines · Eric Tessler
Quoted 5 lines

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.

Quoted 10 lines

-------------------------------------------------------
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
[email protected]
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

#4 lore raw
Quoted 4 lines

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

#5 lore raw
In reply to B.G. Bruce
Quoted 4 lines · B.G. Bruce

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

#6 lore raw

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

#7 lore raw
In reply to Ronald G. Minnich

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.

Quoted 7 lines · Ronald G. Minnich
Quoted 4 lines · B.G. Bruce

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.

Quoted 6 lines

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

#8 lore raw
In reply to Steven Hand
Quoted 9 lines · Steven Hand
Quoted 5 lines · Matt Ayres

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.

Signature · 9 lines
David Hopwood <[email protected]>



-------------------------------------------------------
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