summaryrefslogtreecommitdiff
path: root/sql/threadpool_common.cc
Commit message (Collapse)AuthorAgeFilesLines
* MDEV-5205 - MariaDB does not start if more than 128 cpu's are availableSergey Vojtovich2013-11-051-0/+1
| | | | | | | | | | | - thread_pool_size command line option upper limit increased to 100 000 (same as for max_connections) - thread_pool_size system variable upper limit is maximum of 128 or the value given at command line - thread groups are now allocated dynamically Different limit for command line option and system variable was done to avoid additional mutex for all_groups and threadpool_max_size.
* MDEV-4685 Compile error on LFSSergei Golubchik2013-06-221-0/+8
| | | | fix the code to compile w/o perfomance schema
* MDEV-3945 - do not hold LOCK_thread_count when freeing THD.Vladislav Vaintroub2012-12-211-1/+0
| | | | | | | | | The patch decreases the duration of LOCK_thread_count, so it is not hold during THD destructor and freeing memory. This mutex now only protects the integrity of threads list, when removing THD from it, and thread_count variable. The add_to_status() function that updates global status during client disconnect, is now correctly protected by the LOCK_status mutex. Benchmark : in a "non-persistent" sysbench test (oltp_ro with reconnect after each query), ~ 25% more connects/disconnects were measured
* MDEV-531 : Warning: Forcing close of thread ... in rpl_binlog_indexVladislav Vaintroub2012-11-021-1/+1
| | | | | | Use post_kill_notification in for one_thread_per_connection scheduler, the same as already used in threadpool, to reliably wake a thread stuck in read() or in different poll() variations.
* MDEV-246 - Aborted_clients incremented during ordinary connection closeVladislav Vaintroub2012-05-031-1/+0
| | | | | | The problem was increment of aborted_threads variable due to thd->killed which was set when threadpool connection was terminated . The fix is not to set thd->killed anymore, there is no real reason for doing it.. Added a test that checks that status variable aborted_clients does not grow for ordinary disconnects, and that successful KILL increments this variable.
* Added copiright, some more commentsVladislav Vaintroub2012-02-171-0/+27
|
* address second round review commentsVladislav Vaintroub2012-02-161-9/+9
|
* Threadpool : Rest of monty's reviewVladislav Vaintroub2012-01-271-4/+0
|
* small cleanupsVladislav Vaintroub2012-01-241-0/+3
|
* Threadpool -address review commentsVladislav Vaintroub2012-01-151-46/+33
|
* Simplify thread attach/detach. Use connection specific mysys_var, rather ↵Vladislav Vaintroub2012-01-131-77/+92
| | | | than sharing worker thread's my_thread_var with THD.
* Allow for faster creation of threads in corner cases where pool would be ↵Vladislav Vaintroub2011-12-311-0/+1
| | | | | | | | 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.
* fix test suiteVladislav Vaintroub2011-12-271-1/+3
|
* Small adjustements to threadpoolVladislav Vaintroub2011-12-181-4/+2
|
* Initial threadpool implementation for MariaDB 5.5Vladislav Vaintroub2011-12-081-0/+246