]> git.ipfire.org Git - thirdparty/squid.git/commit
Account for mem_node overhead inside cache_mem
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 31 Jan 2010 23:02:45 +0000 (12:02 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 31 Jan 2010 23:02:45 +0000 (12:02 +1300)
commit07806c019f397dd1a7a7ddc4ca427a8cdb15c617
treee7cfda0f524db138d872c7fd6d6b624ef7512c06
parent2589e38d54153a119080be850670a29abc1535d1
Account for mem_node overhead inside cache_mem

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.
src/store.cc