* Tmf Ctf Parser Scalability issues (2/3)
@ 2013-11-26 16:44 Matthew Khouzam
2013-11-26 23:05 ` Mathieu Desnoyers
0 siblings, 1 reply; 2+ messages in thread
From: Matthew Khouzam @ 2013-11-26 16:44 UTC (permalink / raw)
To: lttng-dev-bnB2LGs2QVJ+nrgayQ7rhA@public.gmane.org,
Linux Tools developer discussions
Hello all,
I was looking at the CTF parser in the TMF project of Linux Tools. I
have come up with three points where scalability will be an issue. I am
sending 3 emails, each one describing one of the issues so we can
aggregate them more cohesively. First a primer, CTF is a file format
that has traces written in packets, the packets are parts of files in
streams, the streams are files in a directory.
Issue 2: Packet size
CTF can have an packet with an unlimited size in within a stream. We use
a memory map to access the data. We are limited to 2GB as the size of an
individual packet, as far as I know. If a packet is larger this will
make the trace unreadable. I can imagine hardware tracers that have ~3gb
buffers and dump them to a file in a single packet would be affected by
this.
Proposed solution:
I envision fixing them by having a sliding window of the maximum memory
map size. I see a problem if a single event is say 3GB in size, but I
can't see a short term solution for that, would you have any suggestions
on this front?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Tmf Ctf Parser Scalability issues (2/3)
2013-11-26 16:44 Tmf Ctf Parser Scalability issues (2/3) Matthew Khouzam
@ 2013-11-26 23:05 ` Mathieu Desnoyers
0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Desnoyers @ 2013-11-26 23:05 UTC (permalink / raw)
To: Matthew Khouzam; +Cc: lttng-dev, Linux Tools developer discussions
----- Original Message -----
> From: "Matthew Khouzam" <matthew.khouzam@ericsson.com>
> To: lttng-dev@lists.lttng.org, "Linux Tools developer discussions" <linuxtools-dev@eclipse.org>
> Sent: Tuesday, November 26, 2013 11:44:48 AM
> Subject: [lttng-dev] Tmf Ctf Parser Scalability issues (2/3)
>
> Hello all,
> I was looking at the CTF parser in the TMF project of Linux Tools. I
> have come up with three points where scalability will be an issue. I am
> sending 3 emails, each one describing one of the issues so we can
> aggregate them more cohesively. First a primer, CTF is a file format
> that has traces written in packets, the packets are parts of files in
> streams, the streams are files in a directory.
>
> Issue 2: Packet size
> CTF can have an packet with an unlimited size in within a stream. We use
> a memory map to access the data. We are limited to 2GB as the size of an
> individual packet, as far as I know. If a packet is larger this will
> make the trace unreadable. I can imagine hardware tracers that have ~3gb
> buffers and dump them to a file in a single packet would be affected by
> this.
>
> Proposed solution:
> I envision fixing them by having a sliding window of the maximum memory
> map size. I see a problem if a single event is say 3GB in size, but I
> can't see a short term solution for that, would you have any suggestions
> on this front?
I just opened a bug entry http://bugs.lttng.org/issues/700 against babeltrace
to track this limitation in babeltrace too.
I don't think we need to address this quickly, but at least we should fail
with a descriptive error message when this situation is encountered.
If it every becomes useful to users, I would be tempted to go with a
sliding window for the memory map, as you suggest. However, you need to do
it in a way that ensures you can read every field. This can be done by
encapsulating every "read" operation on the trace, and making sure the
mmap'd window contains the field range to be read. There will probably
still be limitations for things like a string of more than 2gb, but again,
in this case, we could probably just provide a meaningful error message to
the user.
Thanks,
Mathieu
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
>
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-26 23:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-26 16:44 Tmf Ctf Parser Scalability issues (2/3) Matthew Khouzam
2013-11-26 23:05 ` Mathieu Desnoyers
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.