Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: dunlap@ucar.edu (Rocky Dunlap)
Subject: [lttng-dev] babletrace2 graph performance considerations
Date: Mon, 30 Mar 2020 16:34:33 -0600	[thread overview]
Message-ID: <CADtyBo7w2bTGkvjA7jFo-iwrXCrS3yQ89MJg2G0M7rYoaNV4Fg@mail.gmail.com> (raw)
In-Reply-To: <1cc5fee9-487d-61f5-6376-8b3d40dc47f5@simark.ca>

Each graph would parse the whole stream?  What if I only connect one of the
outputs from the source.ctf.fs?  I would think it would only access that
one stream file.

Rocky

On Mon, Mar 30, 2020 at 4:27 PM Simon Marchi <simark at simark.ca> wrote:

> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20200330/04375035/attachment.htm>


  reply	other threads:[~2020-03-30 22:34 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
2020-03-30 22:34       ` Rocky Dunlap [this message]
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=CADtyBo7w2bTGkvjA7jFo-iwrXCrS3yQ89MJg2G0M7rYoaNV4Fg@mail.gmail.com \
    --to=dunlap@ucar.edu \
    /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