[MDEV-23224] better defaults for Windows native threadpool implementation Created: 2020-07-20  Updated: 2021-02-17  Resolved: 2020-08-13

Status: Closed
Project: MariaDB Server
Component/s: Server
Fix Version/s: 10.6.0

Type: Task Priority: Major
Reporter: Vladislav Vaintroub Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 0
Labels: None


 Description   
  • There is a measurable (on benchmarks) overhead from "auto" priority implementation, which increases prio inside transaction.

The "auto" implementation shuffles low-priority (outside of transaction) clients into work queue, and handles high prio clients(inside transaction), directly, on socket IO notification. The "shuffle" costs some CPU overhead, and can result in more threads than necessary.

So, while we still allow "auto", we rather make it non-default here, because of non-zero overhead.

  • As reported by MS folks, setting max.threads too high may have detrimental
    effects on native threadpool, so use native default.

Generated at Thu Feb 08 09:20:48 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.