[squid-dev] RFC: Transitioning ipcache and fqdncache to ClpMap
Francesco Chemolli
gkinkie at gmail.com
Tue Jul 11 07:35:35 UTC 2023
Hi all,
I'd like to start working on transitioning ipcache and fqdncache to
ClpMap .
There is only one snag, that I would like to build consensus on before
starting coding: the current configuration directives specify a cache size
in number of entries, where ClpMap specifies a max size.
I can see two ways forward:
1. Add a second max-size parameter to ClpMap, ensuring that it starts
expunging entries when the maximum capacity in either memory use or number
of entries is reached
2. guesstimate how many bytes of memory an ipcache/fqdncache uses, and
convert
Regardless, I believe that from the user-facing perspective, a solid way
forward is to give to the ipcache_size and fqdncache_size directives an
option to specify a max size in entries or, by adding a memory-size suffix,
in used memory, and possibly deprecate the max-size-in-entries option in
Squid 7 and retire it in squid 8.
Thoughts?
--
Francesco
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-dev/attachments/20230711/53e38ef7/attachment.htm>
More information about the squid-dev
mailing list