Merge lp:~akopytov/percona-server/tp-low-prio-queue-throttling-5.5 into lp:percona-server/5.5
Status: | Merged |
---|---|
Approved by: | Laurynas Biveinis |
Approved revision: | no longer in the source branch. |
Merged at revision: | 603 |
Proposed branch: | lp:~akopytov/percona-server/tp-low-prio-queue-throttling-5.5 |
Merge into: | lp:percona-server/5.5 |
Diff against target: |
229 lines (+93/-29) 1 file modified
Percona-Server/sql/threadpool_unix.cc (+93/-29) |
To merge this branch: | bzr merge lp:~akopytov/percona-server/tp-low-prio-queue-throttling-5.5 |
Related bugs: | |
Related blueprints: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Laurynas Biveinis (community) | Approve | ||
Review via email: mp+198720@code.launchpad.net |
Description of the change
Implementation of
https:/
Introduced a limit on ‘busy’ threads. A busy thread is either in the
active (i.e. executing a statement) or waiting (i.e. between calls to
thd_
priority queue are processed when that limit is reached in a thread
group.
Also made the code that creates new threads in thd_wait_begin() a
compile-time option. It’s currently enabled, but benchmarks show that
the code has essentially no effect. That code will likely be removed
later.
http://