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.h | |
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.h')
-rw-r--r-- | sql/threadpool.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/threadpool.h b/sql/threadpool.h index a8e7f9031b3..966dcbc18e0 100644 --- a/sql/threadpool.h +++ b/sql/threadpool.h @@ -7,6 +7,7 @@ extern uint threadpool_idle_timeout; /* Shutdown idle worker threads after this extern uint threadpool_size; /* Number of parallel executing threads */ extern uint threadpool_stall_limit; /* time interval in 10 ms units for stall checks*/ extern uint threadpool_max_threads; /* Maximum threads in pool */ +extern uint threadpool_oversubscribe; /* Maximum active threads in group */ /* Threadpool statistics |