Search squid archive

Re: possible memory leak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



rihad wrote:
Squid using almost twice as much memory as was accounted for (according to top(1)):
 4243 squid         29  20    0  1325M  1317M kserel  42:39  0.00% squid

Is this expected?


From
http://wiki.squid-cache.org/SquidFaq/SquidMemory#head-0b5e485f61e7ea4e580c60f45177f0bbcf7d7b80

...Additionally, most operating systems do not allow processes to shrink in size. When a process gives up memory by calling /free/, the total process size does not shrink. So the process size really represents the maximum size your Squid process has reached.

FreeBSD 6.2-RELEASE-p8
Squid 2.6.16 using kqueue, aufs.

Some squid.conf lines:
cache_mem 300 MB
cache_replacement_policy heap LFUDA
cache_dir aufs /cache 50000 128 256
cache_dir aufs /cache2 50000 128 256

From
http://wiki.squid-cache.org/SquidFaq/SquidMemory#head-09818ad4cb8a1dfea1f51688c41bdf4b79a69991:

...As a rule of thumb on Squid uses approximately 10 MB of RAM per GB of the total of all cache_dirs (more on 64 bit servers such as Alpha), plus your cache_mem setting and about an additional 10-20MB.

300 + (50 * 10) + (50 * 10) + 20 = 1320.   That about covers it.


Other options have been kept default more or less.

Some relevant cachemgr lines:
    Storage Mem size:    307212 KB
    Total accounted:       763252 KB
    Number of clients accessing cache:    794

Chris

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux