From: Keir Fraser <keir@xen.org>
To: George Dunlap <dunlapg@umich.edu>, Olaf Hering <olaf@aepfle.de>
Cc: xen-devel@lists.xensource.com
Subject: Re: Re: how to avoid lost trace records?
Date: Mon, 22 Nov 2010 13:46:40 +0000 [thread overview]
Message-ID: <C91024C0.AC61%keir@xen.org> (raw)
In-Reply-To: <AANLkTinprmdxM3EWN_59hEVc5fp0xNdh2XmDwUypimLR@mail.gmail.com>
Is there a good reason that T_INFO_PAGES cannot be specified dynamically by
the toolstack, when enabling tracing? It doesn't seem particularly necessary
that this piece of policy is expressed statically within the hypervisor.
-- Keir
On 22/11/2010 11:53, "George Dunlap" <dunlapg@umich.edu> wrote:
> Olaf,
>
> Dang, 8 megs per cpu -- but I guess that's really not so much overhead
> on a big machine; and it's definitely worth getting around the lost
> records issue. Send the T_INFO_PAGES patch to the list, and see what
> Keir thinks.
>
> There's probably a way to modify xenalyze to do start up gzip
> directly; may not be a bad idea.
>
> -George
>
> On Sat, Nov 20, 2010 at 8:21 PM, Olaf Hering <olaf@aepfle.de> wrote:
>> On Fri, Nov 19, Olaf Hering wrote:
>>
>>>
>>> Today I inspected the xenalyze and the dump-raw output and noticed that
>>> huge number of lost trace records, even when booted with tbuf_size=200:
>>>
>>> grep -wn 1f001 log.sles11_6.xentrace.txt.dump-raw
>>> 274438:R p 5 o000000000063ffd4 1f001 4 t0000006d215b3c6b [ b6aed 57fff
>>> 9e668fb6 51 ]
>> ...
>>> That means more than 740K lost entries on cpu5,3,2,1,0.
>>> Is this expected?
>>
>> After reading the sources more carefully, its clear now.
>> There are a few constraints:
>>
>> If booted with tbuf_size=N, tracing starts right away and fills up the
>> buffer until xentrace collects its content. So entries will be lost.
>>
>> Once I just ran xentrace -e all > output, which filled up the whole disk
>> during my testing. So I changed the way to collect the output to a
>> compressed file:
>>
>> # mknod pipe p
>> # gzip -v9 < pipe > output.gz &
>> # xentrace -e all pipe &
>>
>> This means xentrace will stall until gzip has made room in the pipe.
>> Which also means xentrace cant collect more data from the tracebuffer
>> while waiting. So that is the reason for the lost entries.
>>
>> Now I changed T_INFO_PAGES in trace.c from 2 to 16, and reduced the
>> compression rate to speedup gzip emptying the pipe.
>>
>> # mknod pipe p
>> # nice -n -19 gzip -v1 < pipe > output.gz &
>> # nice -n -19 xentrace -s 1 -S 2031 -e $(( 0x10f000 )) pipe &
>>
>>
>> This means no more lost entries even with more than one guest running.
>>
>>
>> Olaf
>>
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
>> http://lists.xensource.com/xen-devel
>>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2010-11-22 13:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-19 15:46 how to avoid lost trace records? Olaf Hering
2010-11-19 21:30 ` Olaf Hering
2010-11-20 20:21 ` Olaf Hering
2010-11-22 11:53 ` George Dunlap
2010-11-22 12:40 ` Olaf Hering
2010-11-22 12:51 ` George Dunlap
2010-11-22 13:46 ` Keir Fraser [this message]
2010-11-22 14:43 ` George Dunlap
2010-11-25 21:04 ` Olaf Hering
2010-11-25 22:27 ` Keir Fraser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C91024C0.AC61%keir@xen.org \
--to=keir@xen.org \
--cc=dunlapg@umich.edu \
--cc=olaf@aepfle.de \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).