Re: [PATCH] timer (6/6): add cpu steal time fields to procps.

From: Pavel Machek
Date: Sat Aug 21 2004 - 15:42:31 EST


Hi!

> [PATCH] timer (6/6): add cpu steal time fields to procps.
>
> From: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>
>
> Make use of the cpu steal time field in /proc/stat that has been
> introduces by the cputime patch. The new output of top looks like
> this:
>
> top - 09:50:20 up 11 min, 3 users, load average: 8.94, 7.17, 3.82
> Tasks: 78 total, 8 running, 70 sleeping, 0 stopped, 0 zombie
> Cpu0 : 38.7%us, 4.2%sy, 0.0%ni, 0.0%id, 2.4%wa, 1.8%hi, 0.0%si, 53.0%st
> Cpu1 : 38.5%us, 0.6%sy, 0.0%ni, 5.1%id, 1.3%wa, 1.9%hi, 0.0%si, 52.6%st
> Cpu2 : 54.0%us, 0.6%sy, 0.0%ni, 0.6%id, 4.9%wa, 1.2%hi, 0.0%si, 38.7%st
> Cpu3 : 49.1%us, 0.6%sy, 0.0%ni, 1.2%id, 0.0%wa, 0.0%hi, 0.0%si, 49.1%st
> Cpu4 : 35.9%us, 1.2%sy, 0.0%ni, 15.0%id, 0.6%wa, 1.8%hi, 0.0%si, 45.5%s
> Cpu5 : 43.0%us, 2.1%sy, 0.7%ni, 0.0%id, 4.2%wa, 1.4%hi, 0.0%si, 48.6%st
> Mem: 251832k total, 155448k used, 96384k free, 1212k buffers
> Swap: 524248k total, 17716k used, 506532k free, 18096k cached



You really need to write nice description into Documentation describing what cpu steal
time is. Will it be always 0 on non-virtualized machines?
What about hyperthreading?



--
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/