All of lore.kernel.org
 help / color / mirror / Atom feed
* About lost record of xentrace, how to avoid lost record?
@ 2014-11-26  7:21 hanyandong
  2014-11-26 10:53 ` Andrew Cooper
  2014-12-01 11:27 ` George Dunlap
  0 siblings, 2 replies; 3+ messages in thread
From: hanyandong @ 2014-11-26  7:21 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 341 bytes --]

hi all,
I found xentrace will lost record if there are too many  event to trace.
But every event is important to me, so I want to trace all of them, not lost one.
what  could I do to achieve this goal ?

If it need to modify the source code of xentrace, I will do it. But will anyone give me some instructions?



--
Best Regards,
yandong



[-- Attachment #1.2: Type: text/html, Size: 413 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: About lost record of xentrace, how to avoid lost record?
  2014-11-26  7:21 About lost record of xentrace, how to avoid lost record? hanyandong
@ 2014-11-26 10:53 ` Andrew Cooper
  2014-12-01 11:27 ` George Dunlap
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Cooper @ 2014-11-26 10:53 UTC (permalink / raw)
  To: hanyandong, xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 481 bytes --]

On 26/11/14 07:21, hanyandong wrote:
> hi all,
> I found xentrace will lost record if there are too many  event to trace.
> But every event is important to me, so I want to trace all of them,
> not lost one.
> what  could I do to achieve this goal ?
>
> If it need to modify the source code of xentrace, I will do it. But
> will anyone give me some instructions?

xentrace --trace-buf-size=$NUM where $NUM defaults to 32.  Try making it
larger and see whether that helps.

~Andrew

[-- Attachment #1.2: Type: text/html, Size: 1044 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: About lost record of xentrace, how to avoid lost record?
  2014-11-26  7:21 About lost record of xentrace, how to avoid lost record? hanyandong
  2014-11-26 10:53 ` Andrew Cooper
@ 2014-12-01 11:27 ` George Dunlap
  1 sibling, 0 replies; 3+ messages in thread
From: George Dunlap @ 2014-12-01 11:27 UTC (permalink / raw)
  To: hanyandong; +Cc: xen-devel

On Wed, Nov 26, 2014 at 7:21 AM, hanyandong <hanyandong@iie.ac.cn> wrote:
> hi all,
> I found xentrace will lost record if there are too many  event to trace.
> But every event is important to me, so I want to trace all of them, not lost
> one.
> what  could I do to achieve this goal ?
>
> If it need to modify the source code of xentrace, I will do it. But will
> anyone give me some instructions?

Fundamentally, you need to get the data from Xen out onto the disk.  A
few things to try:

* Make the in-Xen memory buffers larger, using the -S option.

This will help if the problem is just that your Xen traces are too
"bursty" or if dom0 doesn't get run often enough.  But if Xen is
simply generating traces faster than you can write to stable storage,
it's not going to work.

Note also that once you've run xentrace once, you can no longer resize
the buffers; you have to reboot your host.

* Reduce the volume of your traces.  You can use the "-e" option to
narrow down what kind of trace records you get -- make sure that you
only trace the records you want.  This will reduce the number of lost
records.

* Increase the speed of your disk.  SSD or RAID are of course options;
another would be to use a tmpfs or a ramdisk (although I haven't tried
this).

* If you only need data from a few seconds in the past, and you can
detect the condition you're trying to look at, you can use the "-M"
option.  This will copy trace records into a circular buffer in
xentrace's memory, and dump it to a file when xentrace exits.  This is
useful for example if you're trying to debug a crash, and you can tell
when the crash happens and send xentrace a SIGINT.

Good luck. :-)

 -George

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-12-01 11:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-26  7:21 About lost record of xentrace, how to avoid lost record? hanyandong
2014-11-26 10:53 ` Andrew Cooper
2014-12-01 11:27 ` George Dunlap

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.