Use pthread_setname_np for meaningful thread names

Bug #1107080 reported by Raghavendra D Prabhu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Triaged
Wishlist
Unassigned

Bug Description

Glibc since 2.12 allows pthread_setname_np to set thread names (http://repo.or.cz/w/glibc.git/blob_plain/HEAD:/NEWS), like this http://sprunge.us/jLLI (that is for firefox)

It would be useful for mysqld since it will/may allow to identify individual threads wrt. memory, CPU, disk etc. whenever required.

Naming may be like read/write threads, Innodb thread id (like innodb-123410413) for innodb query threads etc.

It would also be useful to have a correlation between Innodb thread ids (and/or mysql thread id) and thread task ids (the ones under /proc/$(pidof mysqld)/tasks/)

Changed in percona-server:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

The link mentioned above -- http://sprunge.us/jLLI -- is from atop.

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-2398

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers