Noticed a few items I would try to simplify (these are suggestions
from my own experience...)...
1) for storio, don't use "rock" -- it limits items on disk to 32k and on
a 486 you aren't
going to want what it was designed for (multi-core systems).
2) get rid of things you don't need i.e., are you really using delay pools?
cache-digests? icap?, esi?? Are you only trying to run it as
a "transparent proxy" (enable-linux-netfilter)?
if you have nothing working... try tossing the auth and acl helpers on your
first test version... Once you get something working, add your needed
features
back in.
Given that it's your first & only squid proxy, I doubt you need cache
digests in
your test version, for example (I believe it is used for sharing content
between
squid servers... )... simplify until you get something working...
On 10/25/2013 1:58 PM, Ahmad wrote:
hi i compiled squid 3.3.8 with below :
Squid Cache: Version 3.3.8
configure options: '--build=i486-linux-gnu' '--prefix=/usr'
'--includedir=/include' '--mandir=/share/man' '--infodir=/share/info'
'--sysconfdir=/etc' '--enable-cachemgr-hostname=drx' '--localstatedir=/var'
'--libexecdir=/lib/squid' '--disable-maintainer-mode'
'--disable-dependency-tracking' '--disable-silent-rules' '--srcdir=.'
'--datadir=/usr/share/squid' '--sysconfdir=/etc/squid'
'--mandir=/usr/share/man' '--enable-inline' '--enable-async-io=8'
'--enable-storeio=ufs,aufs,diskd,rock' '--enable-removal-policies=lru,heap'
'--enable-delay-pools' '--enable-cache-digests' '--enable-underscores'
'--enable-icap-client' '--enable-follow-x-forwarded-for' '--enable-auth'
'--enable-basic-auth-helpers=LDAP,MSNT,NCSA,PAM,SASL,SMB,YP,DB,POP3,getpwnam,squid_radius_auth,multi-domain-NTLM'
'--enable-ntlm-auth-helpers=smb_lm'
'--enable-digest-auth-helpers=ldap,password'
'--enable-negotiate-auth-helpers=squid_kerb_auth'
'--enable-external-acl-helpers=ip_user,ldap_group,session,unix_group,wbinfo_group'
'--enable-arp-acl' '--enable-esi' '--disable-translation'
'--with-logdir=/var/log/squid' '--with-pidfile=/var/run/squid.pid'
'--with-filedescriptors=131072' '--with-large-files'
'--with-default-user=squid' '--enable-linux-netfilter'
'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2 -g -Wall -O2' 'LDFLAGS='
'CPPFLAGS=' 'CXXFLAGS=-g -O2 -g
-Wall -O2' --enable-ltdl-convenience
============================
i follwed example exist in :
http://wiki.squid-cache.org/Features/SmpScale
the problem is that there is warning occurs and then squid get down ,
here is it !!
*kid2| WARNING: disk-cache maximum object size is unlimited but mem-cache
maximum object size is 32.00 KB*
logs say that squid is down , but i can access squid by port , but as i
think there is no caching occuring in hardsiks !!! tr has fixed sizeand all
logs are tcp miss not tcp hit !!!
i googled alot but no benefit
here is log file when i start squid :
[root@DataBase ~]# tailf /var/log/squid/backend.cache.log
2013/10/25 22:47:39 kid2| Logfile: closing log
stdio:/var/log/squid/backend.access.log
2013/10/25 22:47:39 kid4| Open FD UNSTARTED 8 DNS Socket IPv6
2013/10/25 22:47:39 kid4| Open FD UNSTARTED 9 DNS Socket IPv4
2013/10/25 22:47:39 kid4| Open FD READING 13
2013/10/25 22:47:39 kid2| Open FD UNSTARTED 8 DNS Socket IPv6
2013/10/25 22:47:39 kid2| Open FD UNSTARTED 9 DNS Socket IPv4
2013/10/25 22:47:39 kid2| Open FD READING 13
2013/10/25 22:47:39 kid3| Squid Cache (Version 3.3.8): Exiting normally.
2013/10/25 22:47:39 kid2| Squid Cache (Version 3.3.8): Exiting normally.
2013/10/25 22:47:39 kid4| Squid Cache (Version 3.3.8): Exiting normally.
2013/10/25 22:50:24 kid4| Preparing for shutdown after 0 requests
2013/10/25 22:50:24 kid4| Waiting 30 seconds for active connections to
finish
2013/10/25 22:50:24 kid4| Shutdown: NTLM authentication.
2013/10/25 22:50:24 kid4| Shutdown: Negotiate authentication.
2013/10/25 22:50:24 kid4| Shutdown: Digest authentication.
2013/10/25 22:50:24 kid4| Shutdown: Basic authentication.
2013/10/25 22:50:24 kid2| Preparing for shutdown after 0 requests
2013/10/25 22:50:24 kid3| Preparing for shutdown after 0 requests
2013/10/25 22:50:24 kid2| Waiting 30 seconds for active connections to
finish
2013/10/25 22:50:24 kid3| Waiting 30 seconds for active connections to
finish
2013/10/25 22:50:24 kid2| Closing HTTP port 127.0.0.1:4002
2013/10/25 22:50:24 kid2| Waiting 30 seconds for active connections to
finish
2013/10/25 22:50:24 kid3| Waiting 30 seconds for active connections to
finish
2013/10/25 22:50:24 kid2| Closing HTTP port 127.0.0.1:4002
2013/10/25 22:50:24 kid3| Closing HTTP port 127.0.0.1:4003
2013/10/25 22:50:24 kid2| Shutdown: NTLM authentication.
2013/10/25 22:50:24 kid3| Closing HTTP port 127.0.0.1:4003
2013/10/25 22:50:24 kid2| Shutdown: NTLM authentication.
2013/10/25 22:50:24 kid2| Shutdown: Negotiate authentication.
2013/10/25 22:50:24 kid3| Shutdown: NTLM authentication.
2013/10/25 22:50:24 kid3| Shutdown: Negotiate authentication.
2013/10/25 22:50:24 kid2| Shutdown: Digest authentication.
2013/10/25 22:50:24 kid2| Shutdown: Basic authentication.
2013/10/25 22:50:24 kid2| Shutdown: Basic authentication.
2013/10/25 22:50:24 kid3| Shutdown: Digest authentication.
2013/10/25 22:50:24 kid3| Shutdown: Basic authentication.
2013/10/25 22:50:28 kid4| Starting Squid Cache version 3.3.8 for
i486-pc-linux-gnu...
2013/10/25 22:50:28 kid4| Process ID 14878
2013/10/25 22:50:28 kid4| Process Roles: coordinator
2013/10/25 22:50:28 kid4| Process Roles: coordinator
2013/10/25 22:50:28 kid4| With 131072 file descriptors available
2013/10/25 22:50:28 kid4| Initializing IP Cache...
2013/10/25 22:50:28 kid3| Starting Squid Cache version 3.3.8 for
i486-pc-linux-gnu...
2013/10/25 22:50:28 kid3| Process ID 14879
2013/10/25 22:50:28 kid3| Process Roles: worker
2013/10/25 22:50:28 kid3| With 131072 file descriptors available
2013/10/25 22:50:28 kid3| With 131072 file descriptors available
2013/10/25 22:50:28 kid3| Initializing IP Cache...
2013/10/25 22:50:28 kid3| Initializing IP Cache...
2013/10/25 22:50:28 kid4| DNS Socket created at [::], FD 8
2013/10/25 22:50:28 kid4| DNS Socket created at 0.0.0.0, FD 9
2013/10/25 22:50:28 kid4| DNS Socket created at 0.0.0.0, FD 9
2013/10/25 22:50:28 kid4| Adding nameserver x.x7.252 from squid.conf
2013/10/25 22:50:28 kid4| Adding nameserver 8.8.8.8 from squid.conf
2013/10/25 22:50:28 kid3| DNS Socket created at [::], FD 8
2013/10/25 22:50:28 kid3| DNS Socket created at 0.0.0.0, FD 9
2013/10/25 22:50:28 kid3| Adding nameserver x.x.67.252 from squid.conf
2013/10/25 22:50:28 kid3| Adding nameserver 8.8.8.8 from squid.conf
2013/10/25 22:50:28 kid2| Starting Squid Cache version 3.3.8 for
i486-pc-linux-gnu...
2013/10/25 22:50:28 kid2| Process ID 14880
2013/10/25 22:50:28 kid2| Process Roles: worker
2013/10/25 22:50:28 kid2| With 131072 file descriptors available
2013/10/25 22:50:28 kid2| With 131072 file descriptors available
2013/10/25 22:50:28 kid2| Initializing IP Cache...
2013/10/25 22:50:28 kid2| Initializing IP Cache...
2013/10/25 22:50:28 kid4| Logfile: opening log
stdio:/var/log/squid/backend.access.log
2013/10/25 22:50:28 kid3| Logfile: opening log
stdio:/var/log/squid/backend.access.log
2013/10/25 22:50:28 kid2| DNS Socket created at [::], FD 8
2013/10/25 22:50:28 kid2| DNS Socket created at 0.0.0.0, FD 9
2013/10/25 22:50:28 kid2| Adding nameserver x.x.x.252 from squid.conf
2013/10/25 22:50:28 kid2| Adding nameserver x.x.x.252 from squid.conf
2013/10/25 22:50:28 kid2| Adding nameserver 8.8.8.8 from squid.conf
2013/10/25 22:50:28 kid2| Logfile: opening log
stdio:/var/log/squid/backend.access.log
2013/10/25 22:50:28 kid4| Local cache digest enabled; rebuild/rewrite every
3600/3600 sec
2013/10/25 22:50:28 kid4| Store logging disabled
2013/10/25 22:50:28 kid4| Swap maxSize 0 + 4096 KB, estimated 315 objects
2013/10/25 22:50:28 kid4| Target number of buckets: 15
2013/10/25 22:50:28 kid4| Using 8192 Store buckets
2013/10/25 22:50:28 kid4| Max Mem size: 4096 KB [shared]
2013/10/25 22:50:28 kid4| Max Swap size: 0 KB
2013/10/25 22:50:28 kid4| Swap maxSize 0 + 4096 KB, estimated 315 objects
2013/10/25 22:50:28 kid4| Target number of buckets: 15
2013/10/25 22:50:28 kid4| Using 8192 Store buckets
2013/10/25 22:50:28 kid4| Max Mem size: 4096 KB [shared]
2013/10/25 22:50:28 kid4| Max Swap size: 0 KB
2013/10/25 22:50:28 kid4| Using Least Load store dir selection
2013/10/25 22:50:28 kid4| Current Directory is /root
2013/10/25 22:50:28 kid3| Local cache digest enabled; rebuild/rewrite every
3600/3600 sec
2013/10/25 22:50:28 kid3| Store logging disabled
2013/10/25 22:50:28 kid3| WARNING: disk-cache maximum object size is
unlimited but mem-cache maximum object size is 32.00 KB
2013/10/25 22:50:28 kid3| Swap maxSize 0 + 4096 KB, estimated 315 objects
2013/10/25 22:50:28 kid3| Target number of buckets: 15
2013/10/25 22:50:28 kid3| Target number of buckets: 15
2013/10/25 22:50:28 kid3| Using 8192 Store buckets
2013/10/25 22:50:28 kid3| Max Mem size: 4096 KB [shared]
2013/10/25 22:50:28 kid3| Max Mem size: 4096 KB [shared]
2013/10/25 22:50:28 kid3| Max Swap size: 0 KB
2013/10/25 22:50:28 kid3| Max Swap size: 0 KB
2013/10/25 22:50:28 kid3| Using Least Load store dir selection
2013/10/25 22:50:28 kid3| Current Directory is /root
2013/10/25 22:50:28 kid2| Local cache digest enabled; rebuild/rewrite every
3600/3600 sec
2013/10/25 22:50:28 kid2| Store logging disabled
*2013/10/25 22:50:28 kid2| WARNING: disk-cache maximum object size is
unlimited but mem-cache maximum object size is 32.00 KB*
2013/10/25 22:50:28 kid2| Swap maxSize 0 + 4096 KB, estimated 315 objects
2013/10/25 22:50:28 kid2| Target number of buckets: 15
2013/10/25 22:50:28 kid2| Using 8192 Store buckets
2013/10/25 22:50:28 kid2| Max Mem size: 4096 KB [shared]
2013/10/25 22:50:28 kid2| Using 8192 Store buckets
2013/10/25 22:50:28 kid2| Max Mem size: 4096 KB [shared]
2013/10/25 22:50:28 kid2| Max Swap size: 0 KB
2013/10/25 22:50:28 kid2| Using Least Load store dir selection
2013/10/25 22:50:28 kid2| Current Directory is /root
2013/10/25 22:50:28 kid4| Loaded Icons.
2013/10/25 22:50:28 kid4| Squid plugin modules loaded: 0
2013/10/25 22:50:28 kid4| Adaptation support is off.
2013/10/25 22:50:28 kid4| Adaptation support is off.
2013/10/25 22:50:28 kid3| Loaded Icons.
2013/10/25 22:50:28 kid3| HTCP Disabled.
2013/10/25 22:50:28 kid3| Squid plugin modules loaded: 0
2013/10/25 22:50:28 kid3| Adaptation support is off.
2013/10/25 22:50:28 kid3| Adaptation support is off.
2013/10/25 22:50:28 kid2| Loaded Icons.
2013/10/25 22:50:28 kid2| HTCP Disabled.
2013/10/25 22:50:28 kid2| HTCP Disabled.
2013/10/25 22:50:28 kid2| Squid plugin modules loaded: 0
2013/10/25 22:50:28 kid2| Adaptation support is off.
2013/10/25 22:50:28 kid3| Accepting HTTP Socket connections at
local=127.0.0.1:4003 remote=[::] FD 12 flags=1
2013/10/25 22:50:28 kid2| Accepting HTTP Socket connections at
local=127.0.0.1:4002 remote=[::] FD 12 flags=1
2013/10/25 22:50:29 kid3| storeLateRelease: released 0 objects
2013/10/25 22:50:29 kid4| storeLateRelease: released 0 objects
2013/10/25 22:50:29 kid2| storeLateRelease: released 0 objects
2013/10/25 22:50:56 kid2| Shutting down...
2013/10/25 22:50:56 kid2| storeDirWriteCleanLogs: Starting...
2013/10/25 22:50:56 kid2| Finished. Wrote 0 entries.
2013/10/25 22:50:56 kid2| Finished. Wrote 0 entries.
2013/10/25 22:50:56 kid2| Took 0.00 seconds ( 0.00 entries/sec).
CPU Usage: 0.079 seconds = 0.045 user + 0.034 sys
Maximum Resident Size: 123360 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
total space in arena: 4652 KB
Ordinary blocks: 4608 KB 4 blks
Small blocks: 0 KB 10 blks
Holding blocks: 72988 KB 8 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 43 KB
Total in use: 77596 KB 1668%
Total free: 44 KB 1%
2013/10/25 22:50:56 kid2| Logfile: closing log
stdio:/var/log/squid/backend.access.log
2013/10/25 22:50:56 kid2| Open FD UNSTARTED 8 DNS Socket IPv6
2013/10/25 22:50:56 kid2| Open FD UNSTARTED 9 DNS Socket IPv4
2013/10/25 22:50:56 kid2| Open FD READING 13
2013/10/25 22:50:56 kid3| Shutting down...
2013/10/25 22:50:56 kid3| storeDirWriteCleanLogs: Starting...
2013/10/25 22:50:56 kid3| Finished. Wrote 0 entries.
2013/10/25 22:50:56 kid3| Finished. Wrote 0 entries.
2013/10/25 22:50:56 kid3| Took 0.00 seconds ( 0.00 entries/sec).
CPU Usage: 0.073 seconds = 0.042 user + 0.031 sys
Maximum Resident Size: 130736 KB
Page faults with physical i/o: 0
Memory usage for squid via mallinfo():
total space in arena: 4652 KB
Ordinary blocks: 4608 KB 7 blks
Small blocks: 0 KB 10 blks
Holding blocks: 72988 KB 8 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 43 KB
Total in use: 77596 KB 1668%
Total free: 44 KB 1%
2013/10/25 22:50:56 kid3| Logfile: closing log
stdio:/var/log/squid/backend.access.log
2013/10/25 22:50:56 kid3| Open FD UNSTARTED 8 DNS Socket IPv6
2013/10/25 22:50:56 kid3| Open FD UNSTARTED 9 DNS Socket IPv4
2013/10/25 22:50:56 kid3| Open FD READING 13
2013/10/25 22:50:56 kid2| Squid Cache (Version 3.3.8): Exiting normally.
2013/10/25 22:50:56 kid3| Squid Cache (Version 3.3.8): Exiting normally.
as we see , squid is exit noramlly
why ??
and hos solve it ?
-----
Dr.x
--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/kid2-WARNING-disk-cache-maximum-object-size-is-unlimited-but-mem-cache-maximum-object-size-is-32-00-B-tp4662892.html
Sent from the Squid - Users mailing list archive at Nabble.com.