Hi

<quote>
> What should be the recommended cache_mem? As I have 512MB ram in my 
> system.

The default (8 Mb) is good unless you have very specific reasons to
change it.

Regards
Henrik
</quote>

another one

#  TAG: cache_mem       (bytes)
#       NOTE: THIS PARAMETER DOES NOT SPECIFY THE MAXIMUM PROCESS SIZE.
#       IT ONLY PLACES A LIMIT ON HOW MUCH ADDITIONAL MEMORY SQUID WILL
#       USE AS A MEMORY CACHE OF OBJECTS. SQUID USES MEMORY FOR OTHER
#       THINGS AS WELL. SEE THE SQUID FAQ SECTION 8 FOR DETAILS.


8.4 I set cache_mem to XX, but the process grows beyond that! 
The cache_mem parameter does NOT specify the maximum size of the
process. It only specifies how much memory to use for caching ``hot''
(very popular) replies. Squid's actual memory usage is depends very
strongly on your cache size (disk space) and your incoming request load.
Reducing cache_mem will usually also reduce the process size, but not
necessarily, and there are other ways to reduce Squid's memory usage
(see below).


Regards

Kevin

-----Message d'origine-----
De�: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Envoy�: jeudi 19 ao�t 2004 12:09
��: [EMAIL PROTECTED]
Objet�: [squid-users] Squid restarting




Hi there,


It seems that I have a little trouble on our perfectly working squid
installation (putting aside this topic).
Here is the problem :

squid restarts by itself 2 or 3 times a day.
In fact, I have noticed  that it restarts when it reaches it's
"cache_mem" limit
:256MB

How can I avoid this ?

I have 1GB RAM, 2 squid 2.5stable5 instances with cache_mem at 256 MB,
on
Aix5.2.
cache_mem 256 MB
cache_dir diskd /fs02/PRO/proxy1/cache 1024 22 256


Besides, I think the swap.state might be corrupted , and, the cache_dir
is
somewhat too small. But this isn't related. Or could it ?


2004/08/18 14:17:18| urlParse: Illegal hostname '.mail.lechti.com'
2004/08/18 14:30:44| Starting Squid Cache version 2.5.STABLE5 for
powerpc-ibm-aix5.2.0.0...
2004/08/18 14:30:44| Process ID 20808
2004/08/18 14:30:44| With 8192 file descriptors available
2004/08/18 14:30:44| Performing DNS Tests...
2004/08/18 14:30:44| Successful DNS name lookup tests...
2004/08/18 14:30:44| DNS Socket created at 0.0.0.0, port 35984, FD 4
2004/08/18 14:30:44| Adding nameserver  from /etc/resolv.conf
2004/08/18 14:30:44| helperOpenServers: Starting 10 'squid_ldap_auth'
processes
2004/08/18 14:30:44| helperOpenServers: Starting 5 'squid_ldap_group'
processes
2004/08/18 14:30:44| Unlinkd pipe opened on FD 25
2004/08/18 14:30:44| Swap maxSize 1048576 KB, estimated 80659 objects
2004/08/18 14:30:44| Target number of buckets: 4032
2004/08/18 14:30:44| Using 8192 Store buckets
2004/08/18 14:30:44| Max Mem  size: 262144 KB
2004/08/18 14:30:44| Max Swap size: 1048576 KB
2004/08/18 14:30:44| Store logging disabled
2004/08/18 14:30:44| Rebuilding storage in /fs02/PRO/proxy1/cache
(DIRTY)
2004/08/18 14:30:44| Using Least Load store dir selection
2004/08/18 14:30:44| Set Current Directory to /tmp
2004/08/18 14:30:44| Loaded Icons.
2004/08/18 14:30:45| Accepting HTTP connections at 0.0.0.0, port 1080,
FD 26.
2004/08/18 14:30:45| Accepting SNMP messages on port 3410, FD 28.
2004/08/18 14:30:45| WCCP Disabled.
2004/08/18 14:30:45| Ready to serve requests.
2004/08/18 14:30:45| Store rebuilding is  1.2% complete
2004/08/18 14:30:52| WARNING: newer swaplog entry for dirno 0, fileno
0001C9AE
2004/08/18 14:30:52| WARNING: newer swaplog entry for dirno 0, fileno
00003623
2004/08/18 14:30:52| WARNING: newer swaplog entry for dirno 0, fileno
0000526B


# ls -l /tmp/core
-rw-r-----   1 squid1   squid       2687847 18 ao� 14:30 /tmp/core


Best Regards ,


Andrew.

Reply via email to