1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00
Files
mariadb/sql
Sergey Vojtovich 159a6c2e60 MDEV-14505 - Threads_running becomes scalability bottleneck
Instead of updating global counter, calculate Threads_running on the fly.
All threads having command != COM_SLEEP are included.

Behaviour changes:

Previously SHOW STATUS and SHOW GLOBAL STATUS returned the same values
representing global status. Now SHOW STATUS always returns 1 indicating that
current session has 1 thread running.

Previously only threads that were executing dispatch_command() or running events
were accounted by Threads_running. Now it is rough equivalent of
SELECT COUNT(*) FROM INFORMATION_SCHEMA.PROCESSLIST WHERE state!='Sleep'
2017-12-13 12:46:33 +04:00
..
2017-12-12 09:57:40 +02:00
2017-11-22 14:39:21 +04:00
2017-10-04 08:24:06 +03:00
2017-12-07 11:41:52 +02:00
2017-10-04 08:24:06 +03:00
2017-10-04 08:24:06 +03:00
2017-08-24 01:05:48 +02:00
2017-10-04 08:24:06 +03:00
2017-10-27 19:21:58 +00:00
2017-08-31 15:44:17 +04:00
2017-09-25 22:05:56 +03:00
2017-11-30 08:16:37 +02:00
2017-08-24 01:05:48 +02:00
2017-03-10 18:21:29 +01:00
2017-03-10 18:21:29 +01:00
2017-03-10 18:21:29 +01:00
2017-12-03 13:58:36 +02:00
2017-09-01 11:33:45 +03:00
2017-11-30 08:16:37 +02:00
2017-11-30 08:16:37 +02:00
2017-12-12 09:57:17 +02:00
2017-11-30 08:16:37 +02:00
2017-11-10 16:12:45 +02:00
2017-11-30 08:16:37 +02:00
2017-11-30 08:16:37 +02:00
2017-11-30 08:16:37 +02:00
2017-11-30 08:16:37 +02:00
2017-11-30 08:16:37 +02:00
2017-11-30 08:16:37 +02:00
2017-11-30 08:16:37 +02:00
2017-11-30 08:16:37 +02:00
2017-12-12 09:57:17 +02:00
2017-12-04 13:22:29 +02:00
2017-10-04 08:24:06 +03:00
2017-11-30 08:16:37 +02:00
2017-11-10 16:12:45 +02:00
2017-04-07 18:09:56 +04:00
2017-10-04 08:24:06 +03:00
2017-10-04 08:24:06 +03:00
2017-12-08 11:38:22 +02:00
2017-11-30 08:16:37 +02:00
2017-08-24 01:05:50 +02:00
2017-06-21 13:44:16 +03:00
2017-12-12 09:57:17 +02:00
2017-03-10 18:21:29 +01:00
2017-11-30 08:16:37 +02:00
2017-08-24 01:05:48 +02:00
2017-11-30 08:16:37 +02:00
2017-03-10 18:21:29 +01:00
2017-11-30 08:16:37 +02:00
2017-08-23 08:27:46 +00:00
2017-08-31 13:46:30 +04:00
2017-08-31 13:46:30 +04:00
2017-10-04 08:24:06 +03:00
2017-11-30 08:16:37 +02:00
2017-11-30 08:16:37 +02:00
2017-08-26 00:34:43 +02:00
2017-10-04 08:24:06 +03:00
2017-10-04 08:24:06 +03:00
2017-08-26 00:34:43 +02:00
2017-10-04 08:24:06 +03:00
2017-11-27 14:43:24 +00:00
2017-10-04 08:24:06 +03:00
2017-09-01 11:33:45 +03:00
2017-12-12 09:57:17 +02:00
2017-08-24 01:05:53 +02:00
2017-12-04 13:22:29 +02:00
2017-12-04 13:22:29 +02:00
2017-11-30 08:16:37 +02:00
2017-11-30 08:16:37 +02:00
2017-09-25 22:05:56 +03:00
2017-11-30 08:16:37 +02:00
2017-11-23 09:49:45 +02:00
2017-10-04 08:24:06 +03:00
2017-12-08 11:38:22 +02:00
2016-10-05 01:11:08 +03:00
2017-10-04 08:24:06 +03:00
2017-10-04 08:24:06 +03:00
2017-10-04 11:59:54 +00:00
2017-08-15 14:13:42 +04:00
2017-08-24 01:05:48 +02:00
2017-11-30 08:16:37 +02:00
2017-11-17 07:30:05 +02:00
2017-04-28 21:59:11 -07:00
2017-11-17 07:30:05 +02:00
2017-03-10 18:21:29 +01:00
2017-08-31 13:46:30 +04:00
2017-12-12 09:57:17 +02:00
2017-11-17 07:30:05 +02:00
2017-11-30 08:16:37 +02:00
2017-03-10 18:21:29 +01:00
2017-12-08 11:38:22 +02:00
2017-11-10 16:12:45 +02:00
2017-10-04 08:24:06 +03:00
2017-08-24 01:05:49 +02:00
2017-05-06 14:36:46 +03:00
2017-11-30 08:16:37 +02:00
2017-06-14 12:02:54 +02:00
2017-11-30 08:16:37 +02:00
2017-12-12 09:57:17 +02:00
2017-11-21 19:47:46 +01:00
2017-11-30 08:16:37 +02:00
2017-10-04 08:24:06 +03:00
2017-10-04 08:24:06 +03:00
2017-11-17 07:30:05 +02:00
2017-10-04 08:24:06 +03:00
2017-11-17 07:30:05 +02:00
2017-11-23 09:49:45 +02:00
2017-11-30 08:16:37 +02:00
2017-11-30 08:16:37 +02:00
2017-08-31 13:46:30 +04:00
2017-11-30 08:16:37 +02:00
2017-11-10 16:12:45 +02:00
2017-11-17 07:30:05 +02:00
2017-08-24 01:05:53 +02:00
2017-12-12 09:57:17 +02:00
2017-10-27 19:21:58 +00:00
2017-03-30 12:48:42 +02:00
2017-10-04 08:24:06 +03:00
2017-10-04 08:24:06 +03:00
2017-09-28 17:20:46 +00:00
2017-05-06 14:36:46 +03:00
2017-11-05 22:23:32 +02:00
2017-03-10 18:21:29 +01:00
2017-11-10 16:12:45 +02:00
2017-03-10 18:21:29 +01:00
2017-09-20 10:46:09 +03:00
2017-11-30 08:16:37 +02:00
2017-12-12 09:57:17 +02:00
2017-09-18 11:38:07 +03:00
2017-03-30 12:48:42 +02:00
2017-09-21 08:12:19 +03:00
2017-11-10 16:12:45 +02:00
2017-09-01 11:33:45 +03:00
2017-08-31 09:30:40 +03:00
2017-12-08 10:02:28 +02:00