Use pthread_setname_np for meaningful thread names

Bug #1107080 reported by Raghavendra D Prabhu
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to

Bug Description

Glibc since 2.12 allows pthread_setname_np to set thread names (, like this (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 -- -- 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:

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

Other bug subscribers