mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-19312 Make throttling interval depend on thread_pool_stall_limit
A thread_pool_stall_limit which is smaller than default would result in quicker creation of threads.
This commit is contained in:
@ -24,7 +24,7 @@ extern uint threadpool_min_threads; /* Minimum threads in pool */
|
||||
extern uint threadpool_idle_timeout; /* Shutdown idle worker threads after this timeout */
|
||||
extern uint threadpool_size; /* Number of parallel executing threads */
|
||||
extern uint threadpool_max_size;
|
||||
extern uint threadpool_stall_limit; /* time interval in 10 ms units for stall checks*/
|
||||
extern uint threadpool_stall_limit; /* time interval in milliseconds for stall checks*/
|
||||
extern uint threadpool_max_threads; /* Maximum threads in pool */
|
||||
extern uint threadpool_oversubscribe; /* Maximum active threads in group */
|
||||
extern uint threadpool_prio_kickup_timer; /* Time before low prio item gets prio boost */
|
||||
@ -36,6 +36,7 @@ extern uint threadpool_mode; /* Thread pool implementation , windows or generic
|
||||
#define TP_MODE_GENERIC 1
|
||||
#endif
|
||||
|
||||
#define DEFAULT_THREADPOOL_STALL_LIMIT 500U
|
||||
|
||||
struct TP_connection;
|
||||
extern void tp_callback(TP_connection *c);
|
||||
|
Reference in New Issue
Block a user