[squid-users] SMP-Workers + Rock Cache not caching as much as SMP-Workers + AUFS

Lucolo lukgom at gmail.com
Wed Feb 6 10:14:39 UTC 2019


Hi everybody

I'm having some problems trying to best tune efficient web caching with
Squid.

After several configurations I realized that in my case SMP-Workers + AUFS
is more efficiente than SMP-Workers + Rock Cache.

I tried to use the same parameters and options in both cases, just to make
sure no options was different, apart from Rock or AUFS.

These are my files:
Workers + AUFS:
squid_SMP_Workers_AUFS.conf
<http://squid-web-proxy-cache.1019090.n4.nabble.com/file/t377658/squid_SMP_Workers_AUFS.conf>  

Workers + Rock Cache:
squid_CARP_SMP_Workers_Rock.conf
<http://squid-web-proxy-cache.1019090.n4.nabble.com/file/t377658/squid_CARP_SMP_Workers_Rock.conf>  
frontend.conf
<http://squid-web-proxy-cache.1019090.n4.nabble.com/file/t377658/frontend.conf>  
backend.conf
<http://squid-web-proxy-cache.1019090.n4.nabble.com/file/t377658/backend.conf>  

For example, my outputs:

Cache information for squid SMP-Workers + AUFS:
        Hits as % of all requests:      5min: 19.3%, 60min: 24.6%
        Hits as % of bytes sent:        5min: 8.6%, 60min: 13.3%
        Memory hits as % of hit requests:       5min: 0.0%, 60min: 0.0%
        Disk hits as % of hit requests: 5min: 65.1%, 60min: 66.4%
Files: Number of file desc currently in use: 6971

Cache information for squid SMP-Workers + Rock Cache:
        Hits as % of all requests:      5min: 4.6%, 60min: 5.3%
        Hits as % of bytes sent:        5min: 0.8%, 60min: 0.6%
        Memory hits as % of hit requests:       5min: 12.2%, 60min: 11.7%
        Disk hits as % of hit requests: 5min: 22.7%, 60min: 21.7%
Files: Number of file desc currently in use: 7366

The question is, is there any plus config or option I have to configure in
rock cache to force more web caching, at least the same as AUFS
configuration?

I actualy have 2 proxy servers, one configuration each. The two of them have
same hardware:
- centos-release-7-6.1810.2.el7.centos.x86_64
- 32 GB RAM
- 4 disk, 2 TB each, 8 TB in total
- Squid compilation info
configure options:  '--build=x86_64-redhat-linux-gnu'
'--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr'
'--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin'
'--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include'
'--libdir=/usr/lib64' '--libexecdir=/usr/libexec'
'--sharedstatedir=/var/lib' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--exec_prefix=/usr'
'--libexecdir=/usr/lib64/squid' '--localstatedir=/var'
'--datadir=/usr/share/squid' '--sysconfdir=/etc/squid'
'--with-logdir=/var/log/squid' '--with-pidfile=/var/run/squid.pid'
'--disable-dependency-tracking' '--enable-follow-x-forwarded-for'
'--enable-auth'
'--enable-auth-basic=DB,LDAP,NCSA,NIS,PAM,POP3,RADIUS,SASL,SMB,getpwnam,fake'
'--enable-auth-ntlm=fake' '--enable-auth-digest=file,LDAP,eDirectory'
'--enable-auth-negotiate=kerberos,wrapper'
'--enable-external-acl-helpers=wbinfo_group,kerberos_ldap_group,LDAP_group,delayer,file_userip,SQL_session,unix_group,session,time_quota'
'--enable-cache-digests' '--enable-cachemgr-hostname=localhost'
'--enable-delay-pools' '--enable-epoll' '--enable-icap-client'
'--enable-ident-lookups' '--enable-linux-netfilter'
'--enable-removal-policies=heap,lru' '--enable-snmp'
'--enable-storeio=aufs,diskd,ufs,rock' '--enable-wccpv2' '--enable-esi'
'--enable-security-cert-generators' '--enable-security-cert-validators'
'--enable-icmp' '--with-aio' '--with-default-user=squid'
'--with-filedescriptors=16384' '--with-dl' '--with-openssl'
'--enable-ssl-crtd' '--with-pthreads' '--with-included-ltdl'
'--disable-arch-native' '--without-nettle'
'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu'
'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  
-m64 -mtune=generic' 'LDFLAGS=-Wl,-z,relro ' 'CXXFLAGS=-O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
--param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -mtune=generic -fPIC'
'PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig'
--enable-ltdl-convenience

Thanks in advance.





--
Sent from: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-Users-f1019091.html


More information about the squid-users mailing list