Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: simark@simark.ca (Simon Marchi)
Subject: [lttng-dev] babletrace2 graph performance considerations
Date: Mon, 30 Mar 2020 18:26:57 -0400	[thread overview]
Message-ID: <1cc5fee9-487d-61f5-6376-8b3d40dc47f5@simark.ca> (raw)
In-Reply-To: <CADtyBo7EBkHsDv-=-94oFnuviFvHnYQW_R6vHv08QCfo8QTyqg@mail.gmail.com>

On 2020-03-30 1:30 p.m., Rocky Dunlap wrote:
> In my case I have CTF trace where some analyses can be performed on a per-stream basis (no need to mux the streams together).? In this case, I was thinking that it would make sense to thread over the streams.? However, I think can easily do this at a level above the graph simply by creating multiple graphs where each one is handling a single stream.? In my case I am thinking this will be mostly I/O bound, so I'm not sure what kind of payoff the threads will give.? Overall, I just want to make sure that I am not doing anything that would, in the long run, preclude threading/concurrency if it is added to the graph model itself.

Creating multiple graphs and handling a single stream in each would
work, but each graph would end up reading and parsing the while CTF
trace, which is not great.

If you streams are in a data file of their own, you could move them
to their own directory, each with a copy of the metadata, effectively
creating one trace for each.  Then create one graph for each trace.

I can't really tell you right now how to design your components to work
with a future model where there is concurrency, since that model does
not exist yet :).

Simon



  reply	other threads:[~2020-03-30 22:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-30  4:10 Rocky Dunlap
2020-03-30 13:32 ` Simon Marchi
2020-03-30 17:30   ` Rocky Dunlap
2020-03-30 22:26     ` Simon Marchi [this message]
2020-03-30 22:34       ` Rocky Dunlap
2020-03-30 22:41         ` Simon Marchi

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=1cc5fee9-487d-61f5-6376-8b3d40dc47f5@simark.ca \
    --to=simark@simark.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