Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: michel.dagenais@polymtl.ca (Michel Dagenais)
Subject: [lttng-dev] Tracing peak size of the running queue
Date: Wed, 30 Nov 2011 15:51:01 -0500 (EST)	[thread overview]
Message-ID: <276700515.788381322686261463.JavaMail.root@srv11.zimbra.polymtl.ca> (raw)
In-Reply-To: <4ED64981.6020709@keymile.com>


> I thinkg it might be useful if I could get some representation 
> (graphical or otherwise) about the number of RUNNable tasks at any
> given time to get an idea of how much contention is ongoing on the CPU.
> 
> So I guess something like the following information:
> - peak measurement of the running queue length
> - max/mean task latency (i.e. time from the task enters the running 
> queue to the time it actually gets the CPU)
> - cpu distribution among tasks
> when measured over a given time window, might help a lot understand 
> these problematic scenarios.

Yes, these would be nice in the GUI views. This is on our TODO list. The current statistics are precomputed in the background but do not provide quick access to intermediate values for intervals. For small intervals this is not a problem but for large intervals rescanning every event would be costly. We now have a nice scheme that we prototyped to keep intermediate results and quickly compute values for any interval. We need to integrate that stuff.

Note that lttng-top offers that type of information and views, for lttng 2.0 and with newer kernels.

> I think the above information could be so useful that I am surprised 
> lttng does not provide it out of the box. After all, ALL scheduling 
> events are traced so it should trivially be a matter of displaying
> this data.

Correct, the challenge is to do it efficiently for large intervals. You may want to contribute a view with a trivial implementation and we would insert our optimized algorithm later.



      reply	other threads:[~2011-11-30 20:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-30 15:19 Gerlando Falauto
2011-11-30 20:51 ` Michel Dagenais [this message]

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=276700515.788381322686261463.JavaMail.root@srv11.zimbra.polymtl.ca \
    --to=michel.dagenais@polymtl.ca \
    /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