visualization and jiffies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On a guests (or domU or whatever) that are sharing a single CPU what
bucket to jiffies go into when a guest waits for its turn on the CPU?.

In /proc/stat the first line starting with "cpu" is the USER_HZ
(jiffies) that the  system  spent  in  user mode, user mode with low
priority (nice), system mode, and  the  idle  task.
So as time passes every jiffy must go into one of those numbers. The
procps commands among other things rely on it.

So if a guest wants a 100% of the cpu, but only gets 50% because
another guests  (of the same priority) running on the same cpu wants
100% too, where does it put the jiffies that have passed while it
wanted to do something but didn't have the cpu?

My guess would be idle? If thats so and you have a guest using 100% of
its allocated cpu and its only getting 50% of the physical cpu
programs like top will report 50% cpu utilization. Am i thinking that
though correctly there?

Eli Criffield

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux