Name
memory_pools
Synopsis
Squid’s memory pools are an attempt to optimize the way Squid allocates and
frees memory. Certain data structures inside Squid are
pooled. This means that rather than freeing
unused memory, Squid holds onto it for future use. It also means that
a particular chunk of memory is normally used for the same type of
data structure. Memory pools may improve Squid’s performance by
avoiding frequent calls to malloc(
) and free( ). The downside, however, is that
the overall memory usage may be higher. If memory is a precious
resource on your system, you might want to disable memory
pools.
Syntax | memory_pools on|off |
Default | memory_pools on |
Example | memory_pools off |
Related | cache_mem, memory_pools_limit |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access