[squid-users] SQUID: cache_dir filling up and squid imploding

Nelson Manuel Marques nmm at eurotux.com
Tue Oct 13 14:37:10 UTC 2015


On Tue, 2015-10-13 at 20:22 +0600, Yuri Voinov wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE----- 
> Hash: SHA256 
>  
> Squid has its own in-memory cache, what's the point to put the disk
> cache to the same ?!

The problem here isn't the tmpfs, but instead Squid going 20% over the
max size defined in cache_dir, or am I missing something?

thanks,
nmm







> 13.10.15 20:05, Nelson Manuel Marques пишет:
> >
> 
>       > Hi all,
> 
>       >
> 
>       > We have a squid running for quite a few years and with the
>       increase of
> 
>       > traffic we noticed a bit of I/O hammering on the squid server
>       (local
> 
>       > disks).
> 
>       >
> 
>       > For some testing, I've made a small 1.2GB tmpfs and pointed
>       cache_dir
> 
>       > to it so that our cache would be in the 'ramdrive'.
> 
>       >
> 
>       > This did help a lot with I/O, but squid eventually once in a
>       while
> 
>       > implodes when it fills 1.2GB of the ramdrive (cache_dir is
>       configured
> 
>       > for 1G, leaving 200MB free).
> 
>       >
> 
>       > This is on a CentOS based system:
> 
>       >
> 
>       > [####EDIT#### squid]# rpm -qi squid
> 
>       > Name        : squid                        Relocations: (not
> 
>       > relocatable)
> 
>       > Version     : 3.1.23                            Vendor:
>       CentOS
> 
>       > Release     : 9.el6                         Build Date: Fri
>       24 Jul 2015
> 
>       > 09:59:03 AM WEST
> 
>       > Install Date: Tue 13 Oct 2015 02:31:20 PM WEST      Build
>       Host:
> 
>       > c6b8.bsys.dev.centos.org
> 
>       > Group       : System Environment/Daemons    Source RPM:
>       squid-3.1.23
> 
>       > -9.el6.src.rpm
> 
>       > Size        : 6649558                          License: GPLv2
>       and
> 
>       > (LGPLv2+ and Public Domain)
> 
>       > Signature   : RSA/SHA1, Fri 24 Jul 2015 09:39:20 PM WEST, Key
>       ID
> 
>       > 0946fca2c105b9de
> 
>       > Packager    : CentOS BuildSystem
>       <http://bugs.centos.org>
> 
>       > URL         : http://www.squid-cache.org
> 
>       > Summary     : The Squid proxy caching server
> 
>       > Description :
> 
>       >
> 
>       > Anyone can help? Imagine I want to keep working on a ramdrive
>       with
> 
>       > 1.5G. How much can I get cache_dir configured with a safe
>       margin so it
> 
>       > doesnt fill the space?
> 
>       >
> 
>       > Any options I should look over again which might help me
>       diagnose if it
> 
>       > happens again?
> 
>       >
> 
>       > Kindest Regards,
> 
>       > NMM
> 
>       >
> 
>       >
> 
>       >
> 
>       >
> 
>       >
> 
>       >
> 
>       >
> 
>       > _______________________________________________
> 
>       > squid-users mailing list
> 
>       > squid-users at lists.squid-cache.org
> 
>       > http://lists.squid-cache.org/listinfo/squid-users
> 
> -----BEGIN PGP SIGNATURE----- 
> Version: GnuPG v2 
>  
> iQEcBAEBCAAGBQJWHRO2AAoJENNXIZxhPexGl/gH/jR2oSVvX6AiRIVe+gCB1O9F 
> XB2UODRAAlvowF0wKW0Gccbpa9L3iiOJiYNKnomVMIzqwaRhqLeRXRk11kbwN/KP 
> /pEIfNOOYici9UzDIFb99ZOe/R0lR2YG4udCpCayb2+6GzbcAoX6F/4F+eMTIn7y 
> qgnvTNF9JQ1LEUxRtjSNG889RwA2ZKgw9nhhTP2PVFB1ttzP4BWy0nH5SRPkv/PR 
> VO2yZa5FQLTOyk4tEE8c3/b9DwDUiZKalqBEWdQNB6fQN2NH6dXe9jhEV25gcqI4 
> snS1fc6WTuM6pTVR8irtbSPQyw2jvRbzeEIOYM0z5cydhgqeqJg6eHgvCN3u93g= 
> =QjIl 
> -----END PGP SIGNATURE----- 
> 
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
-- 
Nelson Manuel Marques <nmm at eurotux.com>
Administrador de Sistemas
Eurotux Informática S.A. | www.eurotux.com
(t) +351 253 680 300
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20151013/1c858b59/attachment.sig>


More information about the squid-users mailing list