All of lore.kernel.org
 help / color / mirror / Atom feed
* Using LTTng for an application with a single thread per core
@ 2020-05-29  4:20 ` Aprameya Rao via lttng-dev
  0 siblings, 0 replies; 4+ messages in thread
From: Aprameya Rao via lttng-dev @ 2020-05-29  4:20 UTC (permalink / raw)
  To: lttng-dev


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

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/). 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


[-- Attachment #1.2: Type: text/html, Size: 2898 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] 4+ messages in thread

* [lttng-dev] Using LTTng for an application with a single thread per core
@ 2020-05-29  4:20 ` Aprameya Rao via lttng-dev
  0 siblings, 0 replies; 4+ messages in thread
From: Aprameya Rao via lttng-dev @ 2020-05-29  4:20 UTC (permalink / raw)
  To: lttng-dev


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

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/). 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


[-- Attachment #1.2: Type: text/html, Size: 2898 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] 4+ messages in thread

* Re: Using LTTng for an application with a single thread per core
@ 2020-06-08 18:14   ` Aprameya Rao via lttng-dev
  0 siblings, 0 replies; 4+ messages in thread
From: Aprameya Rao via lttng-dev @ 2020-06-08 18:14 UTC (permalink / raw)
  To: lttng-dev


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

Hi

Any suggestions on this?

Thanks
Aprameya

From: lttng-dev <lttng-dev-bounces@lists.lttng.org> On Behalf Of Aprameya Rao via lttng-dev
Sent: Thursday, May 28, 2020 9:21 PM
To: lttng-dev@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


[-- Attachment #1.2: Type: text/html, Size: 3875 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] 4+ messages in thread

* Re: [lttng-dev] Using LTTng for an application with a single thread per core
@ 2020-06-08 18:14   ` Aprameya Rao via lttng-dev
  0 siblings, 0 replies; 4+ messages in thread
From: Aprameya Rao via lttng-dev @ 2020-06-08 18:14 UTC (permalink / raw)
  To: lttng-dev


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

Hi

Any suggestions on this?

Thanks
Aprameya

From: lttng-dev <lttng-dev-bounces@lists.lttng.org> On Behalf Of Aprameya Rao via lttng-dev
Sent: Thursday, May 28, 2020 9:21 PM
To: lttng-dev@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


[-- Attachment #1.2: Type: text/html, Size: 3875 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] 4+ messages in thread

end of thread, other threads:[~2020-06-08 18:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-29  4:20 Using LTTng for an application with a single thread per core Aprameya Rao via lttng-dev
2020-05-29  4:20 ` [lttng-dev] " Aprameya Rao via lttng-dev
2020-06-08 18:14 ` Aprameya Rao via lttng-dev
2020-06-08 18:14   ` [lttng-dev] " Aprameya Rao via lttng-dev

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.