Willy Tarreau
26ed183556
MINOR: pools: call malloc_trim() under thread isolation
...
pool_gc() was adjusted to run under thread isolation by commit c0e2ff202
("MEDIUM: memory: make pool_gc() run under thread isolation") so that the
underlying malloc() and free() don't compete between threads during these
potentially aggressive moments (especially when mmap/munmap are involved).
Commit 88366c292 ("MEDIUM: pools: call malloc_trim() from pool_gc()")
later added a call to malloc_trim() but made it outside of the thread
isolation, which is contrary to the principle explained above. Also it
missed it in the locked version, meaning that those without a lockless
implementation cannot benefit from trimming.
This patch fixes that by calling it before thread_release() in both
places.
2021-06-10 17:46:50 +02:00
..
2021-04-21 09:20:17 +02:00
2021-06-07 17:19:16 +02:00
2021-05-13 10:00:17 +02:00
2021-04-28 10:51:08 +02:00
2021-05-31 10:51:09 +02:00
2021-05-08 12:29:51 +02:00
2021-06-01 15:54:50 +02:00
2021-04-13 17:28:13 +02:00
2021-05-08 13:03:55 +02:00
2021-04-26 10:42:58 +02:00
2021-05-07 15:07:21 +02:00
2021-05-08 13:00:23 +02:00
2021-06-09 17:10:13 +02:00
2021-06-08 11:17:19 +02:00
2021-06-07 17:19:16 +02:00
2021-04-10 19:27:41 +02:00
2021-05-10 07:47:05 +02:00
2021-05-31 10:51:04 +02:00
2021-05-08 20:24:09 +02:00
2021-04-27 14:11:26 +02:00
2021-05-07 11:51:26 +02:00
2021-04-07 18:18:37 +02:00
2021-05-09 06:50:46 +02:00
2021-04-19 15:24:33 +02:00
2021-06-08 11:40:44 +02:00
2021-04-10 19:27:41 +02:00
2021-04-07 18:18:37 +02:00
2021-04-10 19:27:41 +02:00
2021-04-07 18:18:37 +02:00
2021-04-08 20:11:58 +02:00
2021-04-21 09:20:17 +02:00
2021-06-07 17:19:16 +02:00
2021-05-08 20:35:39 +02:00
2021-05-21 09:59:00 +02:00
2021-06-10 08:57:55 +02:00
2021-05-08 12:57:17 +02:00
2021-04-28 17:44:37 +02:00
2021-04-01 11:06:48 +02:00
2021-05-25 10:41:50 +02:00
2021-04-28 10:51:08 +02:00
2021-06-08 11:17:19 +02:00
2021-05-08 10:52:12 +02:00
2021-05-08 20:35:39 +02:00
2021-04-02 17:48:42 +02:00
2021-04-10 19:27:41 +02:00
2021-05-31 10:50:55 +02:00
2021-06-02 17:17:34 +02:00
2021-05-10 14:48:55 +02:00
2021-06-07 17:19:16 +02:00
2021-05-31 10:51:08 +02:00
2021-04-28 10:51:08 +02:00
2021-04-21 09:20:17 +02:00
2021-06-04 15:40:50 +02:00
2021-06-04 15:40:50 +02:00
2021-06-04 15:40:50 +02:00
2021-06-04 15:40:50 +02:00
2021-05-08 20:35:39 +02:00
2021-06-07 16:58:15 +02:00
2021-04-21 09:20:17 +02:00
2021-05-09 06:45:16 +02:00
2021-05-25 08:44:45 +02:00
2021-04-15 17:05:38 +02:00
2021-06-02 12:04:42 +02:00
2021-06-07 17:19:16 +02:00
2021-05-05 14:39:23 +02:00
2021-04-10 19:29:26 +02:00
2021-04-21 09:20:17 +02:00
2021-05-31 10:51:06 +02:00
2021-05-25 08:44:45 +02:00
2021-05-08 13:55:40 +02:00
2021-05-31 10:50:46 +02:00
2021-04-07 18:18:37 +02:00
2021-06-10 17:46:50 +02:00
2021-04-07 18:07:49 +02:00
2021-04-07 18:07:49 +02:00
2021-04-07 18:07:49 +02:00
2021-05-08 13:59:56 +02:00
2021-04-07 18:07:49 +02:00
2021-04-21 09:20:17 +02:00
2021-06-07 17:19:16 +02:00
2021-05-08 13:59:05 +02:00
2021-04-21 09:20:17 +02:00
2021-04-07 18:07:49 +02:00
2021-06-07 17:19:16 +02:00
2021-04-21 09:20:17 +02:00
2021-05-14 08:51:53 +02:00
2021-05-08 13:08:34 +02:00
2021-06-10 17:44:05 +02:00
2021-05-08 13:03:04 +02:00
2021-04-21 09:20:17 +02:00
2021-04-21 09:20:17 +02:00
2021-05-08 20:24:09 +02:00
2021-05-14 08:44:52 +02:00
2021-04-07 18:10:36 +02:00
2021-04-07 18:10:36 +02:00
2021-04-07 18:07:49 +02:00
2021-06-10 16:44:11 +02:00
2021-05-17 10:50:24 +02:00
2021-06-09 17:10:13 +02:00
2021-06-10 16:44:11 +02:00
2021-05-08 12:52:56 +02:00
2021-05-12 17:50:16 +02:00
2021-05-31 10:50:46 +02:00
2021-05-26 13:56:06 +02:00
2021-05-25 10:51:20 +02:00
2021-05-08 20:27:08 +02:00
2021-04-07 18:18:37 +02:00
2021-05-31 10:51:02 +02:00
2021-04-19 08:31:05 +02:00
2021-06-07 17:19:16 +02:00
2021-05-08 20:35:39 +02:00
2021-04-28 17:43:55 +02:00
2021-06-08 10:56:10 +02:00
2021-05-07 11:51:26 +02:00
2021-05-11 17:24:32 +02:00
2021-06-02 11:55:14 +02:00
2021-05-08 12:29:01 +02:00
2021-05-10 07:40:27 +02:00