Skip to contentSkip to conversation

cpu specific fields in getdomaininfo

DISCUSSION Kip Macy 2 participants 2 messages May 9, 2005

lore
Share & tools
lore

Kip Macy

author
#0 lore raw

I'd like to know what you're recommendations are for cpu_time, processor, and per-exec_domain flags.

Quoted 1 line

From my usage standpoint, cpu_time should be the highest of all of the

vcpus, PAUSED and BLOCKED should be the logical AND of all the vcpus and RUNNING should be the logical OR of all of the vcpus, processor should simply be moved to getvcpucontext or be made into separate field along the lines of the bitmask discussed previously.

Thanks.
-Kip

#1 lore raw
Quoted 5 lines · Kip Macy
Quoted 1 line

From my usage standpoint, cpu_time should be the highest of all of the

vcpus, PAUSED and BLOCKED should be the logical AND of all the vcpus and RUNNING should be the logical OR of all of the vcpus, processor should simply be moved to getvcpucontext or be made into separate field along the lines of the bitmask discussed previously.

None of these fields make much sense to aggregate and ought probably to disappear from GETDOMAININFO. Possibly cpu_time should be the *sum* of all individual vcpu times. I think your method aggregating paused/blocked/running is probably the sanest.

-- Keir