]> git.ipfire.org Git - thirdparty/squid.git/commit
Rework memory pools
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Sat, 29 May 2010 22:02:54 +0000 (00:02 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Sat, 29 May 2010 22:02:54 +0000 (00:02 +0200)
commit91a15a75793325944e289295e2ccf965830791c9
tree489d78c7e1236f75a0c895d12a8a13cad7b7018f
parenta1d2092be0f11ab9ebabb4eeada70a4fd8ffd5d9
parent1a43f2871c78c892903da7eb55248d670c3073b0
Rework memory pools

- Default to the old simple non-chunked pool type using malloc
  with a simple freelist per pool.
- Various statistics & cachemgr Memory Utilization fixes
- Source reorganisation to split pool implementations from the general
  framework. Allocators now in MemPoolChunked.cc and MemPoolMalloc.cc,
  with general framework & statistics in MemPool.cc.

The chunked allocator is still available and can be activated by setting
the environment variable MEMPOOLS=1 but the default is now the non-chunked
allocator which has been fixed to account allocations properly for statistics
and also maintain a simple freelist to cache allocations.

No squid.conf changes, other than that the memory_pools and
memory_pools_limit directives now works as intended (not possible
with the chunked allocator).
doc/release-notes/release-3.1.sgml