Re: [squid-users] high memory usage (squid 3.2.0)

2013-08-10 Thread Dash Four
Mr Dash Four wrote: Alex Rousskov wrote: On 04/10/2013 09:22 AM, Mr Dash Four wrote: the total memory used of all objects placed in ram should not be 6 times the cache_mem value There is no such rule or law of physics. cache_mem is not squid_mem (a not-yet-supported option that

[squid-users] Re: high memory usage (squid 3.2.0)

2013-08-10 Thread Dash Four
Mr Dash Four wrote: I have the following settings in my squid.conf file relating to the memory usage: cache_mem 200 MB maximum_object_size_in_memory 512 KB cache_replacement_policy heap GDSF memory_replacement_policy heap GDSF cache_dir diskd /var/spool/squid 200 16 256 cache_swap_high 100

[squid-users] dns-related cache problem (squid 3.3.8)

2013-10-08 Thread Dash Four
I have the following problem: I use the "hosts" file to store static address mappings, usually containing sites which use geo address mapping (in other words, determine the ip address one is going to use depending on the geographic region the request is made from). One such site is youtube for

Re: [squid-users] dns-related cache problem (squid 3.3.8)

2013-10-09 Thread Dash Four
Amos Jeffries wrote: On 9/10/2013 9:39 a.m., Dash Four wrote: I have the following problem: I use the "hosts" file to store static address mappings, usually containing sites which use geo address mapping (in other words, determine the ip address one is going to use depend

[squid-users] high memory usage (squid 3.2.0)

2013-04-09 Thread Mr Dash Four
I have the following settings in my squid.conf file relating to the memory usage: cache_mem 200 MB maximum_object_size_in_memory 512 KB cache_replacement_policy heap GDSF memory_replacement_policy heap GDSF cache_dir diskd /var/spool/squid 200 16 256 cache_swap_high 100% cache_swap_low 80% Th

Re: [squid-users] high memory usage (squid 3.2.0)

2013-04-09 Thread Mr Dash Four
Squidblacklist wrote: With only 200mb available to the system I would turn the size in memory down to 64k or lower. In other words change "maximum_object_size_in_memory 512 KB" to "maximum_object_size_in_memory 64 KB" or less? Is that what is causing this? The cache logs tell me this: Lo

Re: [squid-users] high memory usage (squid 3.2.0)

2013-04-09 Thread Mr Dash Four
I have the following settings in my squid.conf file relating to the memory usage: cache_mem 200 MB maximum_object_size_in_memory 512 KB cache_replacement_policy heap GDSF memory_replacement_policy heap GDSF cache_dir diskd /var/spool/squid 200 16 256 < 200kb? thats less than 1 mb

Re: [squid-users] high memory usage (squid 3.2.0)

2013-04-09 Thread Mr Dash Four
Squidblacklist wrote: Well you can have max cachemem object set to 512k, but only if you give it something reasonable like, 2GB of ram or more, as opposed to the 200mb it currently has. Because with it set to 512k its filling your ram up very quickly with large objects, if you insist on only al

Re: [squid-users] high memory usage (squid 3.2.0)

2013-04-09 Thread Mr Dash Four
Squidblacklist wrote: I believe I have seen similar issues before when users set the max ram and the disk size to the same exact settings, might I suggest you increase the storage available from 200mb to 300mb, and test. Its worth a shot. OK, I'll give it a go. Do I have to completely restar

Re: [squid-users] high memory usage (squid 3.2.0)

2013-04-10 Thread Mr Dash Four
Marcello Romani wrote: Il 09/04/2013 19:33, Mr Dash Four ha scritto: > [snip] if the maximum_object_size_in_memory is reduced, then I suppose squid's memory footprint will have to go down too, which makes the cache_mem option a bit useless. I think will just store more objects in RA

[squid-users] Re: high memory usage (squid 3.2.0)

2013-04-10 Thread Mr Dash Four
M A Young wrote: On Tue, 9 Apr 2013, Mr Dash Four wrote: The system is atom-based machine with 2GB memory. Even though squid starts OK at first, it gradually baloons and the current memory usage (according to ps) is: Older versions of squid 3 do have some known memory leaks which might

Re: [squid-users] high memory usage (squid 3.2.0)

2013-04-10 Thread Mr Dash Four
Marcello Romani wrote: Il 10/04/2013 13:59, Mr Dash Four ha scritto: Marcello Romani wrote: Il 09/04/2013 19:33, Mr Dash Four ha scritto: > [snip] if the maximum_object_size_in_memory is reduced, then I suppose squid's memory footprint will have to go down too, which makes the c

Re: [squid-users] high memory usage (squid 3.2.0)

2013-04-10 Thread Mr Dash Four
As an addition to my previous comment, please read this comment in squid.conf (3.1.6 FWIW): # TAG: store_avg_object_size (kbytes) # Average object size, used to estimate number of objects your # cache can hold. I don't see how this helps fixing the problem I described in my initial pos

Re: [squid-users] high memory usage (squid 3.2.0)

2013-04-10 Thread Mr Dash Four
Alex Rousskov wrote: On 04/10/2013 09:22 AM, Mr Dash Four wrote: the total memory used of all objects placed in ram should not be 6 times the cache_mem value There is no such rule or law of physics. cache_mem is not squid_mem (a not-yet-supported option that would limit total Squid