[MXS-731] Optimise the use of spinlock while draining the write queue Created: 2016-05-18 Updated: 2017-12-01 Resolved: 2016-05-31 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | Core |
| Affects Version/s: | 1.4.3 |
| Fix Version/s: | 2.0.0 |
| Type: | New Feature | Priority: | Major |
| Reporter: | martin brampton (Inactive) | Assignee: | martin brampton (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Access to the write queue, which is a linked list of buffers, results in contention. This can cause spinlocks to spin for excessive periods. Modifications are needed to make the locked sections of code much shorter . |
| Comments |
| Comment by martin brampton (Inactive) [ 2016-05-31 ] |
|
This code demonstrates significant gains in profiling tests, and is now merged into the develop branch, for release as part of version 2.0. The gains will vary considerably according to different patterns of usage. |