diff options
author | Vladislav Vaintroub <wlad@montyprogram.com> | 2011-12-31 05:24:11 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@montyprogram.com> | 2011-12-31 05:24:11 +0100 |
commit | c216c9f0f039836f2b8c9edad0884511303101fd (patch) | |
tree | 0e07375300ca8ee89960313f3749258de167a890 /sql/threadpool_common.cc | |
parent | bb0a0c52a65ce3a0621fcfc133d724b0485bb5c3 (diff) | |
download | mariadb-git-c216c9f0f039836f2b8c9edad0884511303101fd.tar.gz |
Allow for faster creation of threads in corner cases where pool would be overloaded with long non-yielding queries.
To allow it, change minimum of thread_pool_stall_limit to be 10 milliseconds.
Also introduce a new parameter to oversubscribe a group . Number of threads running in parallel would be higher than it normally should, leading to thrashing, but it may improving preemptiveness, which is useful for the described corner case.
Diffstat (limited to 'sql/threadpool_common.cc')
-rw-r--r-- | sql/threadpool_common.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/threadpool_common.cc b/sql/threadpool_common.cc index b6676576fb3..91ae41a058f 100644 --- a/sql/threadpool_common.cc +++ b/sql/threadpool_common.cc @@ -23,6 +23,7 @@ uint threadpool_idle_timeout; uint threadpool_size; uint threadpool_stall_limit; uint threadpool_max_threads; +uint threadpool_oversubscribe; /* |