commit | 09e0d9ecbc49d33635f2b035864b086b317fa2dd | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Jul 01 16:39:33 2020 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Jul 01 16:42:05 2020 +0200 |
tree | 493543a46cc70108744216bb6979d470b826026f | |
parent | eb8c2c69fa0e75569df80e040da6424dbc181682 [diff] |
MEDIUM: mux-h1: use task_kill() during h1_takeover() instead of task_wakeup() task_wakeup() passes the task through the global run queue under the global RQ lock, which is expensive when dealing with large amounts of h1_takeover() calls. Let's use the new task_kill() instead to kill the task. By doing so, a scenario involving approximately 130k takeover/s running on 16 threads gained almost 3% performance from 319k req/s to 328k.