[lkml]   [2010]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] x86/kvm: Show guest system/user cputime in cpustat
On 03/11/2010 09:20 AM, Sheng Yang wrote:
> Currently we can only get the cpu_stat of whole guest as one. This patch
> enhanced cpu_stat with more detail, has guest_system and guest_user cpu time
> statistics with a little overhead.
> Signed-off-by: Sheng Yang<>
> ---
> This draft patch based on KVM upstream to show the idea. I would split it into
> more kernel friendly version later.
> The overhead is, the cost of get_cpl() after each exit from guest.

This can be very expensive in the nested virtualization case, so I
wouldn't like this to be in normal paths. I think detailed profiling
like that can be left to 'perf kvm', which only has overhead if enabled
at runtime.

For example you can put the code to note the cpl in a tracepoint which
is enabled dynamically.

error compiling committee.c: too many arguments to function

 \ /
  Last update: 2010-03-11 08:39    [W:0.039 / U:35.540 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site