On Monday 07 July 2008 17:34:13 Jun Koi wrote:
> On Mon, Jul 7, 2008 at 11:07 PM, Christian Ehrhardt
>
> <[EMAIL PROTECTED]> wrote:
> > Jun Koi wrote:
> >> Hi,
> >>
> >> Could anybody explain a bit about kvmtrace? I cannot find any doc on
> >> it anywhere.
> >>
> >> - Is there any short usage instruction for kvmtrace?
> >
> > I don't know if there is an official doc yet, but you can just start with
> > the simple version like:
> >  ./kvmtrace -o outfile -w 5
> > which traces for 5 seconds to outfile.*
>
> This really surprises me. I expected that we can collect trace for a
> specific VM. But it seems that we always trace all the VMs currently
> running??

usually you want to trace all to ensure that you can interpret sideeffects.
Otherwise you might often urn into wrong interpretation or a good assumption 
and you would "just" need the data for the other guests to ensure your 
theory.
Anyway if you really think we need it you might code it in the probe function
near the head of kvm_add_trace, there is a check for KVM_TRACE_STATE_RUNNING
and there you could easily implement some filter mechanism (you'll want to 
extend the ioctls too to get your mask).
But anyway, as I mentioned you usually want all data to "be sure" what you see 
in your trace.

The only scenario where I think we would really need a mask is in very big 
many guest scenarios, but today I think no one except the s390 guys have 
enough guests to have that need practically.

> With trace feature always ON, I guess we suffer some overhead, right?
> Perhaps the overhead is little, but still we have. If so, is there
> anyway to turn the trace feature OFF?

Well, you can turn it off permanent by disabling CONFIG_KVM_TRACE.
But be aware that kvm_trace uses the markers infrastructure (see 
Documentation/markers.txt) which means that the overhead is really really low 
as long as you don't actively use kvmtrace (invoked via the userspace tool).
And if you use it, well then it should do something ;-)

> Many thanks,
> Jun
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to [EMAIL PROTECTED]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 

GrĂ¼sse / regards, 
Christian Ehrhardt
IBM Linux Technology Center, Open Virtualization
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to