This makes squid include the overhead memory space when determining the
number of data pages available in cache_mem memory space. Forming a much
better limit on memory cache usage.
This does NOT solve any issues created by sizeof(mem_node) being unaligned
with the system malloc implementation page size. That still needs to be
resolved.
(float) Config.Swap.highWaterMark) / (float) 100);
store_swap_low = (long) (((float) Store::Root().maxSize() *
(float) Config.Swap.lowWaterMark) / (float) 100);
- store_pages_max = Config.memMaxSize / SM_PAGE_SIZE;
+ store_pages_max = Config.memMaxSize / sizeof(mem_node);
}
int