Gitiles
Code Review
Sign In
git01.mediatek.com
/
haproxy
/
9aed1124edffdf314a352b265811da4adfb21394
/
src
/
pool.c
1751db1
MINOR: pools: report a replaced memory allocator instead of just malloc_trim()
by Willy Tarreau
· Wed Mar 22 18:01:41 2023 +0100
0c27ec5
BUG/MINOR: pools: restore detection of built-in allocator
by Willy Tarreau
· Wed Mar 22 17:52:05 2023 +0100
7aee683
MINOR: pools: export trim_all_pools()
by Willy Tarreau
· Wed Mar 22 15:36:29 2023 +0100
4138f15
MEDIUM: pools: move the compat code from trim_all_pools() to malloc_trim()
by Willy Tarreau
· Wed Mar 22 15:32:58 2023 +0100
eaba76b
MINOR: pools: intercept malloc_trim() instead of trying to plug holes
by Willy Tarreau
· Wed Mar 22 14:55:25 2023 +0100
4db0b04
MINOR: pools: make sure 'no-memory-trimming' is always used
by Willy Tarreau
· Wed Mar 22 14:52:30 2023 +0100
d8a97d8
BUG/MINOR: illegal use of the malloc_trim() function if jemalloc is used
by Miroslav Zagorac
· Wed Mar 22 12:52:19 2023 +0100
0c4348c
MINOR: pools: preset the allocation failure rate to 1% with -dMfail
by Willy Tarreau
· Tue Mar 21 09:24:53 2023 +0100
c960a3b
BUG/MINOR: pool/stats: Use ullong to report total pool usage in bytes in stats
by Christopher Faulet
· Thu Dec 22 11:05:48 2022 +0100
2aa14ce
MINOR: pool: only use opportunistic versions of the swrate_add() functions
by Willy Tarreau
· Mon Dec 19 17:26:25 2022 +0100
284cfc6
MINOR: pool: make the thread-local hot cache size configurable
by Willy Tarreau
· Mon Dec 19 08:15:57 2022 +0100
9192d20
MINOR: pools: make DEBUG_UAF a runtime setting
by Willy Tarreau
· Thu Dec 08 17:47:59 2022 +0100
b634987
DEBUG: pool: show a few examples in -dMhelp
by Willy Tarreau
· Thu Dec 08 18:42:51 2022 +0100
4da51bd
CLEANUP: pools: get rid of CONFIG_HAP_POOLS
by Willy Tarreau
· Thu Dec 08 17:45:08 2022 +0100
a956366
REORG: pool: move all the OS specific code to pool-os.h
by Willy Tarreau
· Thu Dec 08 15:30:49 2022 +0100
76a97a9
CLEANUP: pool: only include pool-os from pool.c not pool.h
by Willy Tarreau
· Thu Dec 08 17:26:50 2022 +0100
67f89c5
CLEANUP: pools: move the write before free to the uaf-only function
by Willy Tarreau
· Thu Dec 08 09:29:42 2022 +0100
7583c36
MINOR: cli/pools: add pool name filtering capability to "show pools"
by Willy Tarreau
· Mon Nov 21 10:02:29 2022 +0100
2fba08f
MINOR: cli/pools: add sorting capabilities to "show pools"
by Willy Tarreau
· Mon Nov 21 09:34:02 2022 +0100
224adf2
MINOR: cli/pools: store "show pools" results into a temporary array
by Willy Tarreau
· Mon Nov 21 09:02:41 2022 +0100
0c5e989
BUG/MINOR: pool/cli: use ullong to report total pool usage in bytes
by Willy Tarreau
· Thu Nov 17 11:08:03 2022 +0100
42b180d
MINOR: pools/memprof: store and report the pool's name in each bin
by Willy Tarreau
· Wed Aug 17 09:35:16 2022 +0200
facfad2
MINOR: pool/memprof: report pool alloc/free in memory profiling
by Willy Tarreau
· Wed Aug 17 09:12:53 2022 +0200
cb086c6
REORG: stconn: rename conn_stream.{c,h} to stconn.{c,h}
by Willy Tarreau
· Fri May 27 09:47:12 2022 +0200
5edca2f
REORG: rename cs_utils.h to sc_strm.h
by Willy Tarreau
· Fri May 27 09:25:10 2022 +0200
d0a06d5
CLEANUP: applet: use applet_put*() everywhere possible
by Willy Tarreau
· Wed May 18 15:07:19 2022 +0200
4596fe2
CLEANUP: conn_stream: tree-wide rename to stconn (stream connector)
by Willy Tarreau
· Tue May 17 19:07:51 2022 +0200
0698c80
CLEANUP: applet: remove the unneeded appctx->owner
by Willy Tarreau
· Wed May 11 14:09:57 2022 +0200
243e68b
BUG/MINOR: pools: make sure to also destroy shared pools in pool_destroy_all()
by Willy Tarreau
· Wed Apr 27 11:33:13 2022 +0200
6b0a0fb
CLEANUP: tree-wide: Remove any ref to stream-interfaces
by Christopher Faulet
· Mon Apr 04 11:29:28 2022 +0200
a0bdec3
MEDIUM: stream-int/conn-stream: Move blocking flags from SI to CS
by Christopher Faulet
· Mon Apr 04 07:51:21 2022 +0200
908628c
MEDIUM: tree-wide: Use CS util functions instead of SI ones
by Christopher Faulet
· Fri Mar 25 16:43:49 2022 +0100
c4e56dc
MINOR: pools: add a new global option "no-memory-trimming"
by Willy Tarreau
· Tue Mar 08 10:41:40 2022 +0100
f9eba78
BUG/MEDIUM: pools: fix ha_free() on area in the process of being freed
by Willy Tarreau
· Thu Mar 03 18:31:54 2022 +0100
e81248c
BUG/MINOR: pool: always align pool_heads to 64 bytes
by Willy Tarreau
· Wed Mar 02 17:59:04 2022 +0100
86e1c33
MEDIUM: applet: Set the conn-stream as appctx owner instead of the stream-int
by Christopher Faulet
· Mon Dec 20 17:09:39 2021 +0100
f4b79c4
MINOR: pools: support setting debugging options using -dM
by Willy Tarreau
· Wed Feb 23 15:20:53 2022 +0100
1408b1f
MINOR: pools: delegate parsing of command line option -dM to a new function
by Willy Tarreau
· Fri Feb 18 18:54:40 2022 +0100
ef301b7
MINOR: pools: add a debugging flag for memory poisonning option
by Willy Tarreau
· Wed Feb 23 14:15:18 2022 +0100
13d7775
MINOR: pools: replace DEBUG_MEMORY_POOLS with runtime POOL_DBG_TAG
by Willy Tarreau
· Wed Feb 23 10:20:37 2022 +0100
0271822
MINOR: pools: replace DEBUG_POOL_TRACING with runtime POOL_DBG_CALLER
by Willy Tarreau
· Wed Feb 23 10:10:33 2022 +0100
42705d0
MINOR: pools: get rid of POOL_EXTRA
by Willy Tarreau
· Wed Feb 23 10:03:11 2022 +0100
96d5bc7
MINOR: pools: store the allocated size for each pool
by Willy Tarreau
· Wed Feb 23 08:57:59 2022 +0100
e981631
MEDIUM: pools: replace CONFIG_HAP_POOLS with a runtime "NO_CACHE" flag.
by Willy Tarreau
· Tue Feb 22 16:23:09 2022 +0100
dff3b06
MINOR: pools: make the global pools a runtime option.
by Willy Tarreau
· Tue Feb 22 09:21:13 2022 +0100
6f3c7f6
MINOR: pools: add a new debugging flag POOL_DBG_INTEGRITY
by Willy Tarreau
· Mon Feb 21 18:42:53 2022 +0100
d3470e1
MINOR: pools: add a new debugging flag POOL_DBG_COLD_FIRST
by Willy Tarreau
· Mon Feb 21 18:30:25 2022 +0100
fd8b737
MINOR: pools: switch DEBUG_DONT_SHARE_POOLS to runtime
by Willy Tarreau
· Mon Feb 21 17:31:50 2022 +0100
8d0273e
MINOR: pools: switch the fail-alloc test to runtime only
by Willy Tarreau
· Mon Feb 21 17:16:22 2022 +0100
605629b
MINOR: pools: introduce a new pool_debugging global variable
by Willy Tarreau
· Fri Feb 18 18:35:59 2022 +0100
af580f6
MINOR: pools: disable redundant poisonning on pool_free()
by Willy Tarreau
· Wed Feb 23 11:45:09 2022 +0100
9f69995
MINOR: pools: mark most static pool configuration variables as read-mostly
by Willy Tarreau
· Fri Feb 18 18:31:53 2022 +0100
27c8da1
DEBUG: pools: replace the link pointer with the caller's address on pool_free()
by Willy Tarreau
· Wed Feb 09 16:49:16 2022 +0100
49bb5d4
DEBUG: pools: let's add reverse mapping from cache heads to thread and pool
by Willy Tarreau
· Wed Feb 09 16:33:22 2022 +0100
e2830ad
DEBUG: pools: add extra sanity checks when picking objects from a local cache
by Willy Tarreau
· Wed Feb 09 16:23:55 2022 +0100
ceabc5c
CLEANUP: pools: don't needlessly set a call mark during refilling of caches
by Willy Tarreau
· Mon Feb 14 09:26:59 2022 +0100
c895c44
BUG/MINOR: pools: always flush pools about to be destroyed
by Willy Tarreau
· Wed Feb 09 16:19:24 2022 +0100
b5ba09e
BUG/MEDIUM: pools: ensure items are always large enough for the pool_cache_item
by Willy Tarreau
· Mon Feb 07 10:32:00 2022 +0100
f70fdde
BUILD: pools: fix build error on DEBUG_POOL_TRACING
by Willy Tarreau
· Tue Jan 25 15:56:50 2022 +0100
add43fa
DEBUG: pools: add new build option DEBUG_POOL_TRACING
by Willy Tarreau
· Mon Jan 24 15:52:51 2022 +0100
0e2a5b4
MINOR: pools: extend pool_cache API to pass a pointer to a caller
by Willy Tarreau
· Mon Jan 24 15:51:50 2022 +0100
d392973
MINOR: pools: partially uninline pool_alloc()
by Willy Tarreau
· Mon Jan 24 16:09:29 2022 +0100
15c322c
MINOR: pools: partially uninline pool_free()
by Willy Tarreau
· Mon Jan 24 11:51:43 2022 +0100
0575d8f
DEBUG: pools: add new build option DEBUG_POOL_INTEGRITY
by Willy Tarreau
· Fri Jan 21 19:00:25 2022 +0100
1513c54
MEDIUM: pools: release cached objects in batches
by Willy Tarreau
· Sun Jan 02 17:53:02 2022 +0100
43937e9
MEDIUM: pools: start to batch eviction from local caches
by Willy Tarreau
· Sun Jan 02 17:24:55 2022 +0100
a0b5831
MEDIUM: pools: centralize cache eviction in a common function
by Willy Tarreau
· Sun Jan 02 17:19:14 2022 +0100
337410c
MINOR: pools: pass the objects count to pool_put_to_shared_cache()
by Willy Tarreau
· Sun Jan 02 15:15:54 2022 +0100
148160b
MINOR: pools: prepare pool_item to support chained clusters
by Willy Tarreau
· Sun Jan 02 14:35:57 2022 +0100
361e31e
MEDIUM: pool: compute the number of evictable entries once per pool
by Willy Tarreau
· Sun Jan 02 00:27:06 2022 +0100
c16ed3b
MINOR: pool: introduce pool_item to represent shared pool items
by Willy Tarreau
· Sat Jan 01 18:22:20 2022 +0100
b46674a
MINOR: pool: check for pool's fullness outside of pool_put_to_shared_cache()
by Willy Tarreau
· Thu Dec 30 17:37:33 2021 +0100
afe2c4a
MINOR: pool: allocate from the shared cache through the local caches
by Willy Tarreau
· Thu Dec 30 17:09:31 2021 +0100
8c49270
CLEANUP: pools: get rid of the POOL_LINK macro
by Willy Tarreau
· Sat Jan 01 17:10:50 2022 +0100
799f614
CLEANUP: pools: do not use the extra pointer to link shared elements
by Willy Tarreau
· Fri Dec 31 16:00:19 2021 +0100
d5ec100
MINOR: pools: always evict oldest objects first in pool_evict_from_local_cache()
by Willy Tarreau
· Sun Jan 02 12:40:14 2022 +0100
0d93a81
MINOR: pools: work around possibly slow malloc_trim() during gc
by Willy Tarreau
· Thu Dec 23 09:26:30 2021 +0100
b1e190a
MEDIUM: pool: Following up on previous pool trimming update.
by David CARLIER
· Fri Nov 26 20:44:44 2021 +0000
781f07a
BUILD: pools: only detect link-time jemalloc on ELF platforms
by Willy Tarreau
· Fri Nov 26 15:55:55 2021 +0100
d450ff6
MEDIUM: pool: support purging jemalloc arenas in trim_all_pools()
by David Carlier
· Thu Nov 25 16:14:38 2021 +0000
ed23214
MEDIUM: pool: refactor malloc_trim/glibc and jemalloc api addition detections.
by David Carlier
· Thu Nov 25 16:09:45 2021 +0000
fdf53b4
BUG/MINOR: pools: don't mark ourselves as harmless in DEBUG_UAF mode
by Willy Tarreau
· Fri Nov 12 10:26:18 2021 +0100
b4e3476
REORG: thread/sched: move the last dynamic thread_info to thread_ctx
by Willy Tarreau
· Thu Sep 30 19:02:18 2021 +0200
1b4a714
MINOR: pools: report the amount used by thread caches in "show pools"
by Willy Tarreau
· Thu Oct 07 16:29:31 2021 +0200
f14d190
REORG: pools: uninline the UAF allocator and force-inline the rest
by Willy Tarreau
· Tue Oct 05 18:14:11 2021 +0200
5d9ddc5
BUILD: tree-wide: add several missing activity.h
by Willy Tarreau
· Wed Oct 06 19:54:09 2021 +0200
c2afb86
MINOR: pools: use mallinfo2() when available instead of mallinfo()
by Willy Tarreau
· Thu Sep 16 09:18:21 2021 +0200
845b560
MINOR: pools: report it when malloc_trim() is enabled
by Willy Tarreau
· Wed Sep 15 10:41:24 2021 +0200
157e393
MINOR: pools: automatically disable malloc_trim() with external allocators
by Willy Tarreau
· Wed Sep 15 10:05:48 2021 +0200
ea3323f
CLEANUP: pools: factor all malloc_trim() calls into trim_all_pools()
by Willy Tarreau
· Wed Sep 15 10:38:21 2021 +0200
8715dec
MEDIUM: pools: remove the locked pools implementation
by Willy Tarreau
· Thu Jun 10 17:31:48 2021 +0200
2a4523f
BUG/MAJOR: pools: fix possible race with free() in the lockless variant
by Willy Tarreau
· Wed Jun 09 18:59:58 2021 +0200
9b3ed51
MEDIUM: pools: use a single pool_gc() function for locked and lockless
by Willy Tarreau
· Thu Jun 10 10:21:35 2021 +0200
26ed183
MINOR: pools: call malloc_trim() under thread isolation
by Willy Tarreau
· Thu Jun 10 08:40:16 2021 +0200
c889143
MINOR: pools: do not maintain the lock during pool_flush()
by Willy Tarreau
· Thu Jun 10 07:13:04 2021 +0200
9a7aa3b
BUG/MINOR: pools: make DEBUG_UAF always write to the to-be-freed location
by Willy Tarreau
· Thu Jun 10 17:20:19 2021 +0200
c239cde
BUG/MINOR: pools: fix a possible memory leak in the lockless pool_flush()
by Willy Tarreau
· Thu Jun 10 06:54:22 2021 +0200
b205bfd
CLEANUP: cli/tree-wide: properly re-align the CLI commands' help messages
by Willy Tarreau
· Fri May 07 11:38:37 2021 +0200
1ab6c0b
MINOR: pools/debug: slightly relax DEBUG_DONT_SHARE_POOLS
by Willy Tarreau
· Wed May 05 07:29:01 2021 +0200
2b71810
CLEANUP: lists/tree-wide: rename some list operations to avoid some confusion
by Willy Tarreau
· Wed Apr 21 07:32:39 2021 +0200
Next »