Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | MDEV-10297 Add priorization to threadpool | Vladislav Vaintroub | 2016-09-22 | 1 | -1688/+0 |
| | | | | Also MDEV-10385 Threadpool refactoring | ||||
* | Merge branch '10.1' into 10.2 | Sergei Golubchik | 2016-06-30 | 1 | -2/+4 |
|\ | |||||
| * | Merge branch '5.5' into bb-10.0 | Sergei Golubchik | 2016-06-21 | 1 | -2/+4 |
| |\ | |||||
| | * | MDEV-10218 - rpl.rpl_binlog_errors fails in buildbot with valgrind warnings - | Sergey Vojtovich | 2016-06-13 | 1 | -2/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | bytes are possibly lost Timer thread of threadpool is created "joinable", but they're not "joined" on completion. This causes memory leaks around thread local storage. Fixed by joining timer thread. | ||||
* | | | Fix threadpool memory leak and connect2 test | Vladislav Vaintroub | 2016-03-09 | 1 | -0/+1 |
| | | | |||||
* | | | Fix threadpool after it was broken by MDEV-6150 | Vladislav Vaintroub | 2016-03-08 | 1 | -16/+15 |
| | | | |||||
* | | | Fix compilation10.2-ssl | Vladislav Vaintroub | 2016-02-10 | 1 | -13/+0 |
| | | | |||||
* | | | MDEV-6150 Speed up connection speed by moving creation of THD to new thread | Monty | 2016-02-07 | 1 | -30/+44 |
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Creating a CONNECT object on client connect and pass this to the working thread which creates the THD. Split LOCK_thread_count to different mutexes Added LOCK_thread_start to syncronize threads Moved most usage of LOCK_thread_count to dedicated functions Use next_thread_id() instead of thread_id++ Other things: - Thread id now starts from 1 instead of 2 - Added cast for thread_id as thread id is now of type my_thread_id - Made THD->host const (To ensure it's not changed) - Removed some DBUG_PRINT() about entering/exiting mutex as these was already logged by mutex code - Fixed that aborted_connects and connection_errors_internal are counted in all cases - Don't take locks for current_linfo when we set it (not needed as it was 0 before) | ||||
* | | MDEV-9156 : Fix tp_add_connection()'s error handling | Vladislav Vaintroub | 2015-12-04 | 1 | -1/+1 |
| | | | | | | | | Avoid possible my_thread_end() in the main polling thread. | ||||
* | | MDEV-8450: PATCH] Wrong macro expansion in Query_cache::send_result_to_client() | Oleksandr Byelkin | 2015-09-06 | 1 | -1/+1 |
| | | | | | | | | Expression in macro protected by () | ||||
* | | Fixing AIX compilation failires | Alexander Barkov | 2014-02-27 | 1 | -0/+5 |
| | | |||||
* | | merge 10-base->10.0 | unknown | 2013-11-11 | 1 | -7/+18 |
|\ \ | |/ | |||||
| * | MDEV-5205 - MariaDB does not start if more than 128 cpu's are available | Sergey Vojtovich | 2013-11-06 | 1 | -1/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An addition to fix for MDEV-5205, fixes server crash on shutdown. Thread groups are destroyed asynchronously, that is kill server thread sends shutdown request to all thread groups without waiting for compeltion. It means all_groups array must not be freed until all thread groups are down. This patch suggests that all_groups is freed when last thread group is destroyed. Note 1: threadpool code doesn't surround atomic ops with atomic locks, thus no locks for shutdown_group_count. Note 2: this patch preserves old behaviour, but we may need to wait until all thread groups are down before returning from tp_end(). | ||||
| * | MDEV-5205 - MariaDB does not start if more than 128 cpu's are available | Sergey Vojtovich | 2013-11-05 | 1 | -7/+15 |
| | | | | | | | | | | | | | | | | | | | | | | - 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. | ||||
* | | 10.0-base merge | Sergei Golubchik | 2013-07-18 | 1 | -0/+4 |
|\ \ | |/ | |||||
| * | MDEV-4685 Compile error on LFS | Sergei Golubchik | 2013-06-22 | 1 | -0/+4 |
| | | | | | | | | fix the code to compile w/o perfomance schema | ||||
* | | 10.0-base merge | Sergei Golubchik | 2013-06-06 | 1 | -4/+18 |
|\ \ | |/ | | | | | (without InnoDB - all InnoDB changes were ignored) | ||||
| * | MDEV-4553 - Fixes for compilation under NetBSD. | Vladislav Vaintroub | 2013-05-27 | 1 | -4/+18 |
| | | |||||
* | | 10.0-base merge | Sergei Golubchik | 2013-04-15 | 1 | -9/+8 |
|\ \ | |/ | |||||
| * | MDEV-4174 - Use kqueue for threadpool implementation on more BSD variants ↵ | Vladislav Vaintroub | 2013-02-19 | 1 | -7/+5 |
| | | | | | | | | | | | | | | than just FreeBSD or OSX - i.e NetBSD, OpenBSD, DragonFly, etc. | ||||
| * | MDEV-4113: Assertion (group->connection_count > 0) fails with Percona server ↵ | Vladislav Vaintroub | 2013-01-30 | 1 | -2/+3 |
| | | | | | | | | | | | | | | | | | | in replication test. Assertion happens in replication thread during THD destruction, when thread calls my_sync(), which in turn calls thd_wait_begin() callback. Connection count can be 0, because the counter was decremented before THD destructor. This assertion currently reproducible only in Percona server and not in MariaDB, due to differences in replication code. Fixed by moving code to decrement connection counter after the THD destructor. | ||||
* | | merge with 5.5 | Sergei Golubchik | 2012-11-03 | 1 | -17/+1 |
|\ \ | |/ | |||||
| * | MDEV-531 : Warning: Forcing close of thread ... in rpl_binlog_index | Vladislav Vaintroub | 2012-11-02 | 1 | -17/+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. | ||||
* | | Next part of merge. See TODO for details | Michael Widenius | 2012-08-14 | 1 | -2/+2 |
|/ | |||||
* | Threadpool - use EV_ONESHOT with kevent, to prevent race condition when 2 | Vladislav Vaintroub | 2012-04-12 | 1 | -12/+4 |
| | | | | threads are retrieving events at the same time. | ||||
* | Added copiright, some more comments | Vladislav Vaintroub | 2012-02-17 | 1 | -6/+40 |
| | |||||
* | address second round review comments | Vladislav Vaintroub | 2012-02-16 | 1 | -50/+60 |
| | |||||
* | some more whitespace, remove pending_thread_start_count. increment counters ↵ | Vladislav Vaintroub | 2012-01-28 | 1 | -44/+49 |
| | | | | (thread_group->count, thread_group->active_thread_count) whenever mysql_create_thread returns success. | ||||
* | Threadpool : Rest of monty's review | Vladislav Vaintroub | 2012-01-27 | 1 | -18/+27 |
| | |||||
* | Further review points and simplify Windows implementation | Vladislav Vaintroub | 2012-01-26 | 1 | -61/+71 |
| | |||||
* | small cleanups | Vladislav Vaintroub | 2012-01-24 | 1 | -2/+0 |
| | |||||
* | ensure that lock is held, whenever active thread counter changes. | Vladislav Vaintroub | 2012-01-18 | 1 | -2/+2 |
| | | | | It was not the case inside listener routine. | ||||
* | Threadpool : address some of the monty's review points | Vladislav Vaintroub | 2012-01-17 | 1 | -33/+108 |
| | | | | Also, print message when pool blocks. | ||||
* | Fix threadpool on BSD and Solaris | Vladislav Vaintroub | 2012-01-16 | 1 | -3/+3 |
| | |||||
* | Get rid of idle thread counter atomic variable. | Vladislav Vaintroub | 2012-01-15 | 1 | -19/+27 |
| | | | | | Instead, use function that loops over groups and calculates idle threads for "show status". | ||||
* | Threadpool -address review comments | Vladislav Vaintroub | 2012-01-15 | 1 | -257/+406 |
| | |||||
* | Allow for faster creation of threads in corner cases where pool would be ↵ | Vladislav Vaintroub | 2011-12-31 | 1 | -2/+2 |
| | | | | | | | | 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. | ||||
* | Make threadpool_stall_limit variable really dynamic | Vladislav Vaintroub | 2011-12-29 | 1 | -0/+11 |
| | |||||
* | LP909537: Ensure thd_wait_begin/thd_wait_end callbacks are called. | Vladislav Vaintroub | 2011-12-29 | 1 | -1/+1 |
| | |||||
* | LP909512: Fix crash on tp_set_threadpool_size if threadpool is not ↵ | Vladislav Vaintroub | 2011-12-29 | 1 | -0/+3 |
| | | | | used(thread_handling != pool-of-threads) | ||||
* | Fix LP#909414: Valgrind warnings in threadpool code | Vladislav Vaintroub | 2011-12-29 | 1 | -0/+2 |
| | |||||
* | LP9091416: destroy timer mutex when threadpool scheduler shuts down. | Vladislav Vaintroub | 2011-12-29 | 1 | -0/+5 |
| | | | | Fixes valgrind warning. | ||||
* | use performance-schema friendly mysql_thread_create() instead of ↵ | Vladislav Vaintroub | 2011-12-28 | 1 | -1/+2 |
| | | | | pthread_create() | ||||
* | Fix build on old 32 bit Centos (kernel 2.6.18) | Vladislav Vaintroub | 2011-12-26 | 1 | -0/+4 |
| | |||||
* | make sys_vars suite pass | Vladislav Vaintroub | 2011-12-20 | 1 | -4/+1 |
| | |||||
* | allow changing thread_pool_size without server restart | Vladislav Vaintroub | 2011-12-19 | 1 | -39/+147 |
| | |||||
* | Fix pool_of_threads test case | Vladislav Vaintroub | 2011-12-18 | 1 | -2/+13 |
| | |||||
* | Small adjustements to threadpool | Vladislav Vaintroub | 2011-12-18 | 1 | -1/+0 |
| | |||||
* | Fix Unix build | Vladislav Vaintroub | 2011-12-10 | 1 | -11/+10 |
| | |||||
* | Initial threadpool implementation for MariaDB 5.5 | Vladislav Vaintroub | 2011-12-08 | 1 | -0/+1238 |