lttng-dev.lists.lttng.org archive mirror
 help / color / mirror / Atom feed
* [lttng-dev] In lttng-live mode, if the printing speed cannot keep up with the generation speed of the parsed ctf data, where will the data be stored?
@ 2022-03-08 16:25 熊毓华 via lttng-dev
  2022-03-08 16:39 ` Jonathan Rajotte-Julien via lttng-dev
  2022-04-11  2:37 ` [lttng-dev] Question about Open Source License 熊毓华 via lttng-dev
  0 siblings, 2 replies; 5+ messages in thread
From: 熊毓华 via lttng-dev @ 2022-03-08 16:25 UTC (permalink / raw)
  To: lttng-dev; +Cc: ychen@northwestern.edu


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

Hi~

I am getting the trace data using lttng-live mode via babeltrace2. In the final step, I borrowed the code in doc/api/libbabeltrace2/examples/epitome.c.




The difference is that in print_message(line 172) in function epitome_out_consume, instead of printing the data directly to the console, I send it out using the socket.

Of course, I can get the parsed results, such as timestamp, event->name, etc., through the socket's recv function on the other end.




However, we know that LTTng is continuously generating CTF data, and BabelTrace2 will continuously parse CTF data. Babeltrace2 then continuously sends parsed CTF data over the socket(in my code) or prints it directly to the console(in the example "epitome" given).




I wonder if my socket recv function is blocked on the other end, causing the socket send function to block in print_message function in babeltrace2;or when printing to the console, the printing speed can't keep up with the parsed CTF data generation speed and the print buffer is also full.

In this case, how will Babeltrace2 handle the parsed CTF data that has not been sent yet, store them in a buffer, a queue or just discard them? Or would the blocking directly cause LTTng to discard the original CTF data at the ring buffer before LTTng Consumer daemon?




I thought I can find the reason in the bt_message_iterator_next function(line 144),but I failed.So I wrote this email hoping to find out why.




Looking forward to your reply.It would be better if you could help me point it out in the code.




thanks,

Yuhua.

[-- Attachment #1.2: Type: text/html, Size: 4129 bytes --]

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

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-04-11  2:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-08 16:25 [lttng-dev] In lttng-live mode, if the printing speed cannot keep up with the generation speed of the parsed ctf data, where will the data be stored? 熊毓华 via lttng-dev
2022-03-08 16:39 ` Jonathan Rajotte-Julien via lttng-dev
2022-03-08 17:26   ` 熊毓华 via lttng-dev
2022-03-08 18:31     ` Jonathan Rajotte-Julien via lttng-dev
2022-04-11  2:37 ` [lttng-dev] Question about Open Source License 熊毓华 via lttng-dev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).