On 2023-03-06 00:12, Yuan Bin via lttng-dev wrote:
 Can I disable local-file-writing in lttng-relayd to avoid the disk space overhead, only using it as a live viewer?

Not explicitly, but you can store your temporary files on a tmpfs file system (see lttng-relayd(8) --output command line parameter), which will only keep the relayd files in memory, and use the tracefile rotation feature to prevent the files from growing forever, e.g.:

https://lttng.org/docs/v2.13/#doc-enabling-disabling-channels

Example:Create a Linux kernel channel which rotates eight trace files of 4 MiB each for each stream.

lttng enable-channel --kernel --tracefile-count=8 \
                     --tracefile-size=4194304 my-channel

See lttng-enable-channel(1) for more info.

I hope this helps!

Mathieu


--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com

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

Reply via email to