GSC thread stats explanation

10 views
Skip to first unread message

Sudip Maitra

unread,
Mar 17, 2023, 2:09:29 PMMar 17
to us...@gramineproject.io
Hello,

When stats are enabled in the manifest file, GSC generates per-thread stats and I wanted to know if it is possible to identify my application thread from other operations (e.g., glibc, libos). Thank you.

Best regards,
Sudip 

Dmitrii Kuvaiskii

unread,
Mar 20, 2023, 4:25:42 AMMar 20
to Sudip Maitra, us...@gramineproject.io
Hi Sudip,

The short answer is: there is no simple way to map application thread
IDs to Gramine/GSC thread IDs. Sorry...

Typically, you need to know the internals of your application and how
it creates threads. When you know such information, the mapping of
application threads to Gramine threads becomes possible, though I
admit -- it is a bit painful (I typically cut the relevant parts of
the Gramine log into different files, and then just "mentally debug"
them to understand which thread corresponds to which logic in the
app).

If you have any ideas how to map app threads to Gramine threads,
please let us know.
> --
> You received this message because you are subscribed to the Google Groups "Gramine Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to gramine-user...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/gramine-users/CAOcR%2Bfb6fw%3DyEpO8amKeMwc8KrCABsu42SiLGYcrHKfr0Fyawg%40mail.gmail.com.



--
Yours sincerely,
Dmitrii Kuvaiskii
Reply all
Reply to author
Forward
0 new messages