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

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

  • To: "Rob Gardner" <rob.gardner@xxxxxx>, "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • 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
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • 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

* 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'


Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.