Gitiles
Code Review
Sign In
git01.mediatek.com
/
haproxy
/
9de8a2b854871a9c273b123c48784ffe6a6e37aa
/
src
/
pool.c
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
942b89f
BUILD: pools: fix build with DEBUG_FAIL_ALLOC
by Willy Tarreau
· Mon Apr 19 18:36:48 2021 +0200
b2a853d
CLEANUP: pools: uninline pool_put_to_cache()
by Willy Tarreau
· Mon Apr 19 11:49:26 2021 +0200
fa19d20
MEDIUM: pools: make pool_put_to_cache() always call pool_put_to_local_cache()
by Willy Tarreau
· Mon Apr 19 08:50:45 2021 +0200
8721203
MINOR: pools: evict excess objects using pool_evict_from_local_cache()
by Willy Tarreau
· Mon Apr 19 08:14:03 2021 +0200
b8498e9
MEDIUM: pools: make CONFIG_HAP_POOLS control both local and shared pools
by Willy Tarreau
· Sun Apr 18 10:23:02 2021 +0200
45e4e28
MINOR: pools: factor the release code into pool_put_to_os()
by Willy Tarreau
· Sat Apr 17 17:48:40 2021 +0200
2b5579f
MINOR: pools: always use atomic ops to maintain counters
by Willy Tarreau
· Sat Apr 17 18:06:57 2021 +0200
1384364
MINOR: pools: split the OS-based allocator in two
by Willy Tarreau
· Sat Apr 17 16:57:25 2021 +0200
207c095
MINOR: pools: move the fault injector to __pool_alloc()
by Willy Tarreau
· Sat Apr 17 16:00:08 2021 +0200
20f88ab
MINOR: pools: use cheaper randoms for fault injections
by Willy Tarreau
· Sat Apr 17 15:50:28 2021 +0200
635cced
CLEANUP: pools: rename __pool_free() to pool_put_to_shared_cache()
by Willy Tarreau
· Sat Apr 17 14:11:39 2021 +0200
8c77ee5
CLEANUP: pools: rename pool_*_{from,to}_cache() to *_local_cache()
by Willy Tarreau
· Thu Apr 15 20:12:48 2021 +0200
8fe726f
CLEANUP: pools: re-merge pool_refill_alloc() and __pool_refill_alloc()
by Willy Tarreau
· Thu Apr 15 18:20:12 2021 +0200
eb3cc29
MEDIUM: pools: unify pool_refill_alloc() across all models
by Willy Tarreau
· Thu Apr 15 18:13:13 2021 +0200
64383b8
MINOR: pools: make the basic pool_refill_alloc()/pool_free() update needed_avg
by Willy Tarreau
· Thu Apr 15 17:23:15 2021 +0200
53a7fe4
MINOR: pools: enable the fault injector in all allocation modes
by Willy Tarreau
· Thu Apr 15 16:43:18 2021 +0200
2d6f628
MINOR: pools: rename CONFIG_HAP_LOCAL_POOLS to CONFIG_HAP_POOLS
by Willy Tarreau
· Thu Apr 15 16:24:00 2021 +0200
d5140e7
MINOR: pool: remove the size field from pool_cache_head
by Willy Tarreau
· Sat Apr 17 14:05:10 2021 +0200
9f3129e
MEDIUM: pools: move the cache into the pool header
by Willy Tarreau
· Sat Apr 17 00:31:38 2021 +0200
3e970b1
MINOR: pools: drop the unused static history of artificially failed allocs
by Willy Tarreau
· Thu Apr 15 16:36:07 2021 +0200
932dd19
BUG/MINOR: pools: maintain consistent ->allocated count on alloc failures
by Willy Tarreau
· Thu Apr 15 17:31:19 2021 +0200
4781b15
CLEANUP: atomic/tree-wide: replace single increments/decrements with inc/dec
by Willy Tarreau
· Tue Apr 06 13:53:36 2021 +0200
3b1c9a3
CLEANUP: mark defproxy as const on parse tune.fail-alloc
by Amaury Denoyelle
· Mon Mar 22 11:21:36 2021 +0100
0bae075
MEDIUM: pools: add CONFIG_HAP_NO_GLOBAL_POOLS and CONFIG_HAP_GLOBAL_POOLS
by Willy Tarreau
· Tue Mar 02 20:05:09 2021 +0100
88366c2
MEDIUM: pools: call malloc_trim() from pool_gc()
by Willy Tarreau
· Tue Nov 03 15:53:34 2020 +0100
20dc3cd
MINOR: pools: move the LRU cache heads to thread_info
by Willy Tarreau
· Sun Jun 28 00:54:27 2020 +0200
47d1718
CLEANUP: assorted typo fixes in the code and comments
by Ilya Shipitsin
· Sun Jun 21 21:42:57 2020 +0500
b255105
CLEANUP: include: tree-wide alphabetical sort of include files
by Willy Tarreau
· Tue Jun 09 09:07:15 2020 +0200
36979d9
REORG: include: move the error reporting functions to from log.h to errors.h
by Willy Tarreau
· Fri Jun 05 17:27:29 2020 +0200
6be7849
REORG: include: move cfgparse.h to haproxy/cfgparse.h
by Willy Tarreau
· Fri Jun 05 00:00:29 2020 +0200
aeed4a8
REORG: include: move log.h to haproxy/log{,-t}.h
by Willy Tarreau
· Thu Jun 04 22:01:04 2020 +0200
f1d32c4
REORG: include: move channel.h to haproxy/channel{,-t}.h
by Willy Tarreau
· Thu Jun 04 21:07:02 2020 +0200
5e539c9
REORG: include: move stream_interface.h to haproxy/stream_interface{,-t}.h
by Willy Tarreau
· Thu Jun 04 20:45:39 2020 +0200
83487a8
REORG: include: move cli.h to haproxy/cli{,-t}.h
by Willy Tarreau
· Thu Jun 04 20:19:54 2020 +0200
2eec9b5
REORG: include: move stats.h to haproxy/stats{,-t}.h
by Willy Tarreau
· Thu Jun 04 19:58:55 2020 +0200
3f0f82e
REORG: move applet.h to haproxy/applet{,-t}.h
by Willy Tarreau
· Thu Jun 04 19:42:41 2020 +0200
f268ee8
REORG: include: split global.h into haproxy/global{,-t}.h
by Willy Tarreau
· Thu Jun 04 17:05:57 2020 +0200
48fbcae
REORG: tools: split common/standard.h into haproxy/tools{,-t}.h
by Willy Tarreau
· Wed Jun 03 18:09:46 2020 +0200
a04ded5
REORG: include: move activity to haproxy/
by Willy Tarreau
· Tue Jun 02 10:29:48 2020 +0200
d0ef439
REORG: include: move common/memory.h to haproxy/pool.h
by Willy Tarreau
· Tue Jun 02 09:38:52 2020 +0200
[Renamed (99%) from src/memory.c]
ed891fd
MEDIUM: memory: make local pools independent on lockless pools
by Willy Tarreau
· Mon Jun 01 19:00:28 2020 +0200
fb117e6
MEDIUM: memory: don't let pool_put_to_cache() free the objects itself
by Willy Tarreau
· Mon Jun 01 18:16:57 2020 +0200
24aa1ee
REORG: memory: move the OS-level allocator to haproxy/pool-os.h
by Willy Tarreau
· Sat May 30 18:56:17 2020 +0200
606135a
CLEANUP: pool: include freq_ctr.h and remove locally duplicated functions
by Willy Tarreau
· Mon Jun 01 12:35:03 2020 +0200
af613e8
CLEANUP: thread: rename __decl_hathreads() to __decl_thread()
by Willy Tarreau
· Fri Jun 05 08:40:51 2020 +0200
3f567e4
REORG: include: split hathreads into haproxy/thread.h and haproxy/thread-t.h
by Willy Tarreau
· Thu May 28 15:29:19 2020 +0200
853b297
REORG: include: split mini-clist into haproxy/list and list-t.h
by Willy Tarreau
· Wed May 27 18:01:47 2020 +0200
58017ee
REORG: include: move the BUG_ON() code to haproxy/bug.h
by Willy Tarreau
· Wed May 27 16:51:33 2020 +0200
4c7e4b7
REORG: include: update all files to use haproxy/api.h or api-t.h if needed
by Willy Tarreau
· Wed May 27 12:58:42 2020 +0200
21072b9
CLEANUP: pools: use the regular lock for the flush operation on lockless pools
by Willy Tarreau
· Fri May 29 17:23:05 2020 +0200
a1e4f8c
MINOR: pools: compute an estimate of each pool's average needed objects
by Willy Tarreau
· Fri May 08 08:31:56 2020 +0200
Next »