Thanks for reporting the issue, Sergio.

> it can be observed that the "Maximum Resident Size" grows
progressively. After several days, it exceeds the limit defined by
cache_mem in squid.conf multiple times.

cache_mem is not the only way squid uses memory, as documented in
https://www.squid-cache.org/Doc/config/cache_mem/ and discussed in
https://wiki.squid-cache.org/SquidFaq/SquidMemory#i-set-cache_mem-to-xx-
but-the-process-grows-beyond-that.

Moreover, the "maximum resident size" is the memory that the OS has
allocated for squid at a given moment. I would expect that it exceeds
the cache_mem value at times (mainly when under heavy loads).
https://wiki.squid-cache.org/SquidFaq/SquidMemory also documents that
"cache_mem is usually one third of the total memory consumption".

> Comparison: This behavior is not observed when using squid-openssl 5.9
on Ubuntu 22.04.5 LTS.

Interesting. I wonder how differently the cache is being used among
these versions (and how much of that memory usage is due to caching).

> Total counted: Always 0 KB.

This is odd. I can reproduce the issue in a LXD 24.04 container by
setting cache_mem and forcing squid to cache some http site. The total
accounted value is indeed always zero. This seems to be a different
issue. Would you mind filing another bug for this one?

Finally, regarding the memory leak potential issue being reported, have
you tried measuring the memory usage externally (i.e., through other
means other than using squid reports)? I wonder if it is indeed growing
indefinitely or if it is only growing under heavy loads due to caching.

To avoid having this bug expire, please, move its status back to "new"
after you reply. Otherwise, if the bug stays in an "incomplete" state
for a while, it will expire.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2136879

Title:
  squid-openssl memory leaks.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid/+bug/2136879/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to