All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dario Faggioli <raistlin@linux.it>
To: "Yu-An(Victor) Chen" <chen116@usc.edu>, xen-devel@lists.xen.org
Subject: Re: how to trace scheduling overheads using xentrace/xenalyze
Date: Wed, 07 Oct 2015 12:32:25 +0200	[thread overview]
Message-ID: <1444213945.4015.20.camel@linux.it> (raw)
In-Reply-To: <CANwucLko6Sa8dDK-Ej0AweXg37UA-dmWc1qmJgcvqq=X2q+oeg@mail.gmail.com>


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

On Tue, 2015-10-06 at 20:46 -0700, Yu-An(Victor) Chen wrote:
> Hi,
> 
Hi,

> I am new to xen environment 
>
Welcome :-)

> and I am wondering how to trace scheduling overhead of guest vm using
> xentrace/xenalyze ?
> 
Have you had a look at this blog entry? It's from some time ago, but
the basic concepts should still hold.

 https://blog.xenproject.org/2012/09/27/tracing-with-xentrace-and-xenal
yze/

Of course, that tells how to use the tools (xentrace and xenalyze), not
how to "trace scheduling overhead". For doing so, I think you should
first define what it is really that you want to measure (many
definitions of scheduling overhead are possible) and, only after that,
check whether it is possible to do that with existing tools.

> I have tried using $xentrace -D -e all -S 256 {filename}
> 
> and then use various xenalyze options but most of them gave me empty
> result, and I dont really see where I can get scheduling overhead so

>
Mmm... The command above works for me (just tried). However, '-e all'
is a lot of data, and it may actually take a bit to xenalyze to parse
it.

Maybe, if you are interested in tracing scheduling related events, use
the appropriate event mask?

> I can see how are the jobs are scheduled and its execution time and
> stuff. Please point me to a direction. Thank you!
> 
Again, you should detail more what you think 'scheduling overhead' is.
If you are interested in seeing how and where the vcpus are scheduled,
you want a dump.

With this:

 xentrace -D -e 0x0002f000 trace.bin

and then this:

 xenalyze --dump-all trace.bin

Here's an excerpt of what I get:

]  0.000019647 x----------  -- d32767v0   22802(2:2:802) 0 [ ]
]  0.000019969 x----------  -- d32767v0   22805(2:2:805) 5 [ 7fff 0 0 0 0 ]
   0.000020474 x----------  -- d32767v0 runstate_continue d32767v0 running->running
]  0.000021170 ----x------  -- d32767v4   22802(2:2:802) 0 [ ]
]  0.000021370 ----x------  -- d32767v4   22805(2:2:805) 5 [ 47fff 0 0 0 0 ]
   0.000021817 ----x------  -- d32767v4 runstate_continue d32767v4 running->running
]  0.000022235 ---------x-  -- d32767v9   22802(2:2:802) 0 [ ]
]  0.000022467 ---------x-  -- d32767v9   22805(2:2:805) 5 [ 97fff 0 0 0 0 ]
   0.000022983 ---------x-  -- d32767v9 runstate_continue d32767v9 running->running
]  0.000023438 --------x--  -- d32767v8   22802(2:2:802) 0 [ ]
]  0.000023638 --------x--  -- d32767v8   22805(2:2:805) 5 [ 87fff 0 0 0 0 ]

Regards,
Dario
-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)


[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

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

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

  reply	other threads:[~2015-10-07 10:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-07  3:46 how to trace scheduling overheads using xentrace/xenalyze Yu-An(Victor) Chen
2015-10-07 10:32 ` Dario Faggioli [this message]
2015-10-07 15:18   ` Yu-An(Victor) Chen

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=1444213945.4015.20.camel@linux.it \
    --to=raistlin@linux.it \
    --cc=chen116@usc.edu \
    --cc=xen-devel@lists.xen.org \
    /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 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.