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

[Xen-devel] How to read the xen format file and the generated trace content ?


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Mahendra Kutare <mahendra.kutare@xxxxxxxxx>
  • Date: Mon, 26 Jul 2010 09:24:13 -0400
  • Delivery-date: Mon, 26 Jul 2010 06:25:56 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=w6cvc8QVwN9CJLhhyw2ZA35cbl9/173QdQ2NiafcFuYp8Sx9tFrctvinYHxQ/m+8qi o7gvJJ+4/t8vbIq8s1PZDnUtckuCHvQK/MuR0PcEYA0KIRJQNyLDc4jfy2Vca3WLqzwO 5TMxLZnyzmqamV3UKzsWBpI10x0zxPnOZYdzo=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi All,

I am trying to understand the format file which comes with too/xentrace/formats.

If anyone can help in understanding the following, that will be great -

Take for example -

0x0002800e ÂCPU%(cpu)d Â%(tsc)d (+%(reltsc)8d) Âswitch_infprev  Â[
old_domid = 0x%(1)08x, runtime = %(2)d ]
0x0002800f ÂCPU%(cpu)d Â%(tsc)d (+%(reltsc)8d) Âswitch_infnext  Â[
new_domid = 0x%(1)08x, time = %(2)d, r_time = %(3)d ]

In the above format rule,

1. Can anyone point me to the source code that populates the cpu and
tsc using xentrace data ?

2. In the above, I understand 1, 2 and 3 means first, second and third
field from the TRACE but what does the whole field description means
i.e.

0x%(1)08x apart from the fact that it represents hexadecimal value for DOM IDs.

If above represents DOM ID values then from the trace data generated like this -

CPU0 Â7997860846654673 (+  Â4133) Âswitch_infprev  Â[ old_domid =
0x00007fff, runtime = 79935 ]
CPU0 Â7997860846655190 (+   517) Âswitch_infnext  Â[ new_domid =
0x00000000, time = 3889, r_time = 30000000 ]

old_domid = 0x00007fff represents 32767 for some some DOM ID. ÂThere
is no domain which has been assigned the 32767 id Âor for that matter
DOM0.

new_domid = Â0x00000000 represents 0 which is clearly the DOM0 id.

So what is this old_domid value means ? Or is it just some junk value
? My understanding was the SWITCH_INFPREV traces the domain to be
descheduled and SWITCH_INFNEXT traces to be scheduled. If thats the
case, then why is current DOM ID a junk value.

Any pointer to the the source code to understand this better will be helpful.

If I look at xm list it shows -
[root@samoa3 mahendra 04:13 PM]$ xm list
Name                    ÂID  Mem VCPUs   ÂState  Time(s)
Domain-0 Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 0 Â1022 Â Â 8 Â Â r----- Â94726.9
mapache                   24  256   1   -b----  Â739.7
mmysql                   Â22  256   1   -b----   99.1
mtomcat                   23  256   1   -b----  Â522.4

So for Domain-0 with DOM ID of 0 makes sense but what about the OLD
DOM ID value.

If I look at another trace record -

CPU0 Â7997860846373115 (+  Â2130) Âdomain_wake    [ domid =
0x00000018, edomid = 0x00000000 ]

Here, it make sense that domid is 24 which is mpache domain as listed
by xm list.

Can anyone help me understand this and point to relevant source code ?

Thanks
Mahendra

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


 


Rackspace

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