WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] unconditionally enable the trace buffer

To: "Rob Gardner" <rob.gardner@xxxxxx>, "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] unconditionally enable the trace buffer
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Thu, 27 Oct 2005 20:45:41 +0100
Delivery-date: Thu, 27 Oct 2005 19:42:51 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcXZguDeCzpKKVZESu6zDxqgdkizgQBqjMWw
Thread-topic: [Xen-devel] unconditionally enable the trace buffer
> Last month Mark Williamson sent out a patch to 
> unconditionally enable the trace buffer. I'd like to suggest 
> that his patch be accepted and merged. I have performed some 
> simple benchmarks to quantify the overhead associated with 
> the trace buffer and calls, and found a negligable 
> performance loss due to them. The actual number was .069%, 
> and was gotten by timing a simple cpu-intensive task running 
> with trace buffers compiled in and again with trace buffers 
> not compiled in. 

Of course, a cpu intensive workload is likely to be generating fewest
trace events. I doubt the overhead is a big deal, though.

I haven't looked at xentrace in a while, but last time I did it could
seriously do with some tidying up. Here's a list of features I'd like to
see it have. I'd be grateful if you could tell me what the current state
is:

* ability to turn on/off via hypercall
* trace events grouped by type, with a bitmap to enable the event types
of interest
* ability to set the per CPU tracebuffer size when turning it on
* ability for the user-space reader to explicitly block (select on fd)
on an eventchn notification that the buffer is e.g. half full. (reader
should write out all the pages that are full of trace events)
* user space reader should log when it misses blocks of events
(overwrite last trace message in buffer with a special 'missed X events'
message) 

Thanks,
Ian

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel