Bug #70018 | PFS Overhead on frequent connect/disconnect | ||
---|---|---|---|
Submitted: | 13 Aug 2013 19:42 | Modified: | 7 Oct 2013 18:18 |
Reporter: | Dimitri KRAVTCHUK | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Performance Schema | Severity: | S5 (Performance) |
Version: | 5.6 / 5.7 | OS: | Any |
Assigned to: | Marc ALFF | CPU Architecture: | Any |
[13 Aug 2013 19:42]
Dimitri KRAVTCHUK
[14 Aug 2013 9:33]
Dimitri KRAVTCHUK
Verified, reproduced.
[25 Sep 2013 17:03]
Mark Callaghan
More results on PS and connection create performance: http://mysqlha.blogspot.com/2013/09/concurrent-connection-create.html http://mysqlha.blogspot.com/2013/09/single-threaded-connect-performance.html
[7 Oct 2013 18:18]
Paul DuBois
Noted in 5.6.15, 5.7.3 changelogs. Performance Schema instrumentation overhead was reduced for frequent connect/disconnect operations.
[4 Dec 2013 11:48]
Laurynas Biveinis
5.6$ bzr log -r 5489 ------------------------------------------------------------ revno: 5489 committer: Marc Alff <marc.alff@oracle.com> branch nick: mysql-5.6-bug17310878 timestamp: Fri 2013-10-04 22:21:58 +0200 message: Bug#17310878 PFS OVERHEAD ON FREQUENT CONNECT/DISCONNECT This fix is a back port from 5.7 to 5.6 This fix is a performance improvement. The issue was that the call to PSI_THREAD_CALL(delete_current_thread)(), which is executed each time a thread disconnects, was placed inside a critical section involving LOCK_thread_count. The fix is to perform the same call sooner, before entering the LOCK_thread_count critical section. Serializing all calls to pfs_delete_current_thread_v1() was the major cause of performance overhead, for frequent connect/disconnect.