[lttng-dev] Using LTTng for an application with a single thread per core

Aprameya Rao Aprameya.Rao at microsoft.com
Mon Jun 8 14:14:03 EDT 2020


Hi

Any suggestions on this?

Thanks
Aprameya

From: lttng-dev <lttng-dev-bounces at lists.lttng.org> On Behalf Of Aprameya Rao via lttng-dev
Sent: Thursday, May 28, 2020 9:21 PM
To: lttng-dev at lists.lttng.org
Subject: [EXTERNAL] [lttng-dev] Using LTTng for an application with a single thread per core

Hi

I am working on an application where I have a single thread per core (the application is based on top of SPDK - https://spdk.io/<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fspdk.io%2F&data=02%7C01%7Caprameya.rao%40microsoft.com%7C99c722863c7f4b084b2808d80387ae95%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637263228592195561&sdata=KwAOEkqx%2FIsWtd7zEuntGKZVnqkfUNU4s6VeEXI3jG8%3D&reserved=0>). Ideally, I would like to have a set of buffers allocated per core and since there is a single thread it can write the trace event to this buffer directly with no synchronization. Once the buffer is filled up, the buffer can be given to LTTng to take care of the persistence.

I'm looking at the LTTng code to figure out what kind of changes would need to be made to support something like this. I imagine it would need to change the ring buffer because the configuration for that while tunable does not have any mode which does what I want. Am I looking in the right place? If you can provide me to pointers on how I can prototype this with lttng that would be most helpful. Once I have it prototyped, I would be happy to work with you on making these changes back into LTTng if you feel that this would be of value to other users as well.

Regards
Aprameya

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.lttng.org/pipermail/lttng-dev/attachments/20200608/fa6fd571/attachment.htm>


More information about the lttng-dev mailing list