<p dir="ltr">Hi Antony,<br>
Thanks for the reply. I have made changes in squid.conf as per your suggestion and have allocated 20 GB of Hard disk space.<br>
Squid server at my location handles http/https requests for more than 500 hosts. But at peak hours squid usually performs very slow and browser takes 1-2 minutes just to serve google home page and more time than that for heavy web page.<br>
I have verified network link utilization & found it consumes not more than 15 mb whereas link bandwidth is of 45mb but still squid serves web pages very slow to client hosts.<br>
Any suggestions in squid configuration to overcome this issue would be highly appreciated.</p>
<p dir="ltr">Thanks,<br>
Krishna.</p>
<div class="gmail_quote">On Oct 23, 2016 5:11 PM, <<a href="mailto:squid-users-request@lists.squid-cache.org">squid-users-request@lists.squid-cache.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send squid-users mailing list submissions to<br>
<a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.<wbr>org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/<wbr>listinfo/squid-users</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:squid-users-request@lists.squid-cache.org">squid-users-request@lists.<wbr>squid-cache.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:squid-users-owner@lists.squid-cache.org">squid-users-owner@lists.squid-<wbr>cache.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of squid-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Slowness in Squid (Krishna Kulkarni)<br>
2. Re: Slowness in Squid (Antony Stone)<br>
3. external_acl_type problem (reinerotto)<br>
4. Re: Slowness in Squid (Yuri Voinov)<br>
5. Re: Slowness in Squid (Matus UHLAR - fantomas)<br>
6. Re: Slowness in Squid (Yuri Voinov)<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br>
Date: Sun, 23 Oct 2016 09:06:22 +0530<br>
From: Krishna Kulkarni <<a href="mailto:krishna26kulkarni@gmail.com">krishna26kulkarni@gmail.com</a>><br>
To: <a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.<wbr>org</a><br>
Subject: [squid-users] Slowness in Squid<br>
Message-ID:<br>
<CAN-hqth-kdQDYXTR=<wbr>jDnbVoiNmEMpi71+Sx7waO=<a href="mailto:61s0keucDQ@mail.gmail.com">61s0keu<wbr>cDQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Dear Team<br>
I am new to squid.. I have installed squid 3.5 on CentOS 6.7. As a<br>
configuration part, I have kept most of the things default. Please advice<br>
on how to allocate cache memory of 20 GB to squid. I got to know that, more<br>
cache memory would increase performance of squid..<br>
<br>
Thanks,<br>
Krishna<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.squid-cache.org/pipermail/squid-users/attachments/20161023/9ddd4442/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.squid-cache.org/<wbr>pipermail/squid-users/<wbr>attachments/20161023/9ddd4442/<wbr>attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sun, 23 Oct 2016 10:16:28 +0200<br>
From: Antony Stone <<a href="mailto:Antony.Stone@squid.open.source.it">Antony.Stone@squid.open.<wbr>source.it</a>><br>
To: <a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.<wbr>org</a><br>
Subject: Re: [squid-users] Slowness in Squid<br>
Message-ID: <<a href="mailto:201610231016.28867.Antony.Stone@squid.open.source.it">201610231016.28867.Antony.<wbr>Stone@squid.open.source.it</a>><br>
Content-Type: Text/Plain; charset="iso-8859-15"<br>
<br>
On Sunday 23 October 2016 at 05:36:22, Krishna Kulkarni wrote:<br>
<br>
> I am new to squid.. I have installed squid 3.5 on CentOS 6.7. As a<br>
> configuration part, I have kept most of the things default. Please advice<br>
> on how to allocate cache memory of 20 GB to squid.<br>
<br>
Do you mean cache memory, or disk cache?<br>
<br>
<br>
If you mean memory (RAM) and you have enough of this in your system (eg: 32<br>
Gbytes or more), then find the section in squid.conf which starts with:<br>
<br>
# MEMORY CACHE OPTIONS<br>
<br>
And read about the tag "cache_mem".<br>
<br>
To set this value (normally 256 Mbytes) to 20 Gbytes, set:<br>
<br>
cache_mem 20 GB<br>
<br>
<br>
If, on the other hand, you do not mean memory, but you mean disk cache, then<br>
find the section in squid.conf with starts with:<br>
<br>
# TAG: cache_dir<br>
<br>
and read that section.<br>
<br>
Pay particular attention to the line which says:<br>
<br>
# cache_dir ufs Directory-Name Mbytes L1 L2 [options]<br>
<br>
And then later there is an example:<br>
<br>
# cache_dir ufs /var/spool/squid3 100 16 256<br>
<br>
Uncomment that line and change the 100 (Megabytes) in that line to 20000 (for<br>
20 Gigabytes) and perhaps also adjust the 16 to something like 64 or even 256<br>
- for a large cache you don't want a few directories with lots of entries<br>
each, so it's worthwhile creating lots of directories to keep the number of<br>
files in each down.<br>
<br>
> I got to know that, more cache memory would increase performance of squid..<br>
<br>
What do you mean by "performance"?<br>
<br>
<br>
Antony.<br>
<br>
--<br>
Just when you think you're done, a cat floats by with buttered toast strapped<br>
to its back.<br>
<br>
- Steve Krug, "Don't make me think"<br>
<br>
Please reply to the list;<br>
please *don't* CC me.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Sun, 23 Oct 2016 03:39:31 -0700 (PDT)<br>
From: reinerotto <<a href="mailto:augustus_meyer@gmx.net">augustus_meyer@gmx.net</a>><br>
To: <a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.<wbr>org</a><br>
Subject: [squid-users] external_acl_type problem<br>
Message-ID: <<a href="mailto:1477219171447-4680203.post@n4.nabble.com">1477219171447-4680203.post@<wbr>n4.nabble.com</a>><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
1)<br>
According to<br>
<a href="http://www.squid-cache.org/Doc/config/external_acl_type/" rel="noreferrer" target="_blank">http://www.squid-cache.org/<wbr>Doc/config/external_acl_type/</a><br>
<br>
in squid.conf, this<br>
<br>
external_acl_type check_delay ttl=0 cache=0 %SRC /etc/squid/check_delay.sh<br>
<br>
should start 0 helpers immediately after squid (3.5.22) start-up.<br>
However, I always see 5.<br>
<br>
2)<br>
I often see this:<br>
Sat Oct 22 23:51:18 2016 user.alert syslog: The check_delay helpers are<br>
crashing too rapidly, need help!<br>
Sat Oct 22 23:51:18 2016 local4.notice squid[21677]: Squid Parent: (squid-1)<br>
process 27685 exited with status 1<br>
<br>
Still trying to trace down the problem, I notice, that in this case some<br>
helpers still kept alive, although<br>
I expect them to be killed, too, in case squid-1 exits.<br>
<br>
<br>
I need to add, that I am running squid on an embedded system, cross-compiled<br>
for MIPS.<br>
So there _might_ be some assumptions made for "standard LINUX" squid, which<br>
are not true in my case.<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://squid-web-proxy-cache.1019090.n4.nabble.com/external-acl-type-problem-tp4680203.html" rel="noreferrer" target="_blank">http://squid-web-proxy-cache.<wbr>1019090.n4.nabble.com/<wbr>external-acl-type-problem-<wbr>tp4680203.html</a><br>
Sent from the Squid - Users mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Sun, 23 Oct 2016 17:15:53 +0600<br>
From: Yuri Voinov <<a href="mailto:yvoinov@gmail.com">yvoinov@gmail.com</a>><br>
To: <a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.<wbr>org</a><br>
Subject: Re: [squid-users] Slowness in Squid<br>
Message-ID: <<a href="mailto:ebf2c080-b508-9547-a9df-d7971df609a4@gmail.com">ebf2c080-b508-9547-a9df-<wbr>d7971df609a4@gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
<br>
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA256<br>
<br>
Keep in mind - a huge in-memory cache does not always give the<br>
acceleration. Moreover, in most cases you can get the opposite effect<br>
expected. It is a common misconception - that the giant memory cache<br>
will give a giant performance gain.<br>
<br>
<br>
23.10.2016 9:36, Krishna Kulkarni пишет:<br>
><br>
> Dear Team<br>
> I am new to squid.. I have installed squid 3.5 on CentOS 6.7. As a<br>
configuration part, I have kept most of the things default. Please<br>
advice on how to allocate cache memory of 20 GB to squid. I got to know<br>
that, more cache memory would increase performance of squid..<br>
><br>
> Thanks,<br>
> Krishna<br>
><br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> squid-users mailing list<br>
> <a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.<wbr>org</a><br>
> <a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/<wbr>listinfo/squid-users</a><br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2<br>
<br>
iQEcBAEBCAAGBQJYDJvoAAoJENNXIZ<wbr>xhPexGyFsH/<wbr>3or29Reesz9IzZVim7aNk7h<br>
8MYCw8n7l4oaWtZFXdnj6f7sCMKTBV<wbr>YoxNXqI4O172/<wbr>XPgkg6y3onFqgU3a5eNIT<br>
r1f09FLi7MAdBAl0YtuwbRXpcKe9Sy<wbr>jhA/hzOhC1UiN3nUcxSR/<wbr>hyc0oKpjw3Oy1<br>
LwrBQGq7ZjZlNnKZh/<wbr>uatxyKZolizof9uvKufVJqJdGtJRwk<wbr>fjc6ELBpC/Lp7chz<br>
yVe2JA7Qi0NHzMoQwS7HblZ/<wbr>o60E7rdoGTPhBdozxoOMiteW3ZVbm9<wbr>7Mol+t1BM2<br>
s0IsYw9IJSoWPUJ8V+<wbr>AUryjrzComGnXR4wl20pFrZ+eO/v+<wbr>tZff6OZVb5A5PDCE=<br>
=6ozO<br>
-----END PGP SIGNATURE-----<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.squid-cache.org/pipermail/squid-users/attachments/20161023/607405d9/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.squid-cache.org/<wbr>pipermail/squid-users/<wbr>attachments/20161023/607405d9/<wbr>attachment-0001.html</a>><br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: 0x613DEC46.asc<br>
Type: application/pgp-keys<br>
Size: 2437 bytes<br>
Desc: not available<br>
URL: <<a href="http://lists.squid-cache.org/pipermail/squid-users/attachments/20161023/607405d9/attachment-0001.key" rel="noreferrer" target="_blank">http://lists.squid-cache.org/<wbr>pipermail/squid-users/<wbr>attachments/20161023/607405d9/<wbr>attachment-0001.key</a>><br>
<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Sun, 23 Oct 2016 13:37:04 +0200<br>
From: Matus UHLAR - fantomas <<a href="mailto:uhlar@fantomas.sk">uhlar@fantomas.sk</a>><br>
To: <a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.<wbr>org</a><br>
Subject: Re: [squid-users] Slowness in Squid<br>
Message-ID: <<a href="mailto:20161023113704.GA12924@fantomas.sk">20161023113704.GA12924@<wbr>fantomas.sk</a>><br>
Content-Type: text/plain; charset=utf-8; format=flowed<br>
<br>
On 23.10.16 17:15, Yuri Voinov wrote:<br>
>Keep in mind - a huge in-memory cache does not always give the<br>
>acceleration. Moreover, in most cases you can get the opposite effect<br>
>expected. It is a common misconception - that the giant memory cache<br>
>will give a giant performance gain.<br>
<br>
doesn't that imply kind of effectiveness?<br>
<br>
>23.10.2016 9:36, Krishna Kulkarni пишет:<br>
>> I am new to squid.. I have installed squid 3.5 on CentOS 6.7. As a<br>
>configuration part, I have kept most of the things default. Please<br>
>advice on how to allocate cache memory of 20 GB to squid. I got to know<br>
>that, more cache memory would increase performance of squid..<br>
<br>
--<br>
Matus UHLAR - fantomas, <a href="mailto:uhlar@fantomas.sk">uhlar@fantomas.sk</a> ; <a href="http://www.fantomas.sk/" rel="noreferrer" target="_blank">http://www.fantomas.sk/</a><br>
Warning: I wish NOT to receive e-mail advertising to this address.<br>
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.<br>
The only substitute for good manners is fast reflexes.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Sun, 23 Oct 2016 17:40:46 +0600<br>
From: Yuri Voinov <<a href="mailto:yvoinov@gmail.com">yvoinov@gmail.com</a>><br>
To: <a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.<wbr>org</a><br>
Subject: Re: [squid-users] Slowness in Squid<br>
Message-ID: <<a href="mailto:790ee9e7-f646-d14a-1213-a3729e30d90f@gmail.com">790ee9e7-f646-d14a-1213-<wbr>a3729e30d90f@gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
<br>
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA256<br>
<br>
This effect is good known to all who have worked with relational<br>
databases. In fact, it is typical in general for all caches except<br>
purpose-built highly scalable systems.<br>
<br>
<br>
23.10.2016 17:37, Matus UHLAR - fantomas пишет:<br>
> doesn't that imply kind of effectiveness?<br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v2<br>
<br>
iQEcBAEBCAAGBQJYDKG+<wbr>AAoJENNXIZxhPexGv9IH/A+T/<wbr>eimJHaIkzY4oyDjbM9Z<br>
fiDZyJPKoQz3uEDCS1qu+xxm33aol+<wbr>IXFfE6L9ksuTUDwhzVnfw+<wbr>m1aeEKv0NbBR<br>
ODUL6dUhHnSmKWQ4TjDG/<wbr>nXaQHK7QQDy+<wbr>uqeIdZe1P9WHdGJ0qNDKwtCV2mD9hH<wbr>H<br>
QHg9Ukx7ycYDNAxxBvFfieOIhRfemu<wbr>h8L+Z7Ne7nrmE6yGW+UCZze1/<wbr>HfipYdFHH<br>
IAiMO87icjbdd//<wbr>EcLvhupMAQIBvSBMdehHsri+eHS/<wbr>hwId2aWGtE/eqRovi8ITe<br>
pPS2xKRC4H1IpzuMMNy0xCGsZ4UZ/<wbr>vVN8fL0OhMX+<wbr>VSX48RRN0C2GA1giFcNUAM=<br>
=wnN6<br>
-----END PGP SIGNATURE-----<br>
<br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: 0x613DEC46.asc<br>
Type: application/pgp-keys<br>
Size: 2437 bytes<br>
Desc: not available<br>
URL: <<a href="http://lists.squid-cache.org/pipermail/squid-users/attachments/20161023/327fc190/attachment.key" rel="noreferrer" target="_blank">http://lists.squid-cache.org/<wbr>pipermail/squid-users/<wbr>attachments/20161023/327fc190/<wbr>attachment.key</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
______________________________<wbr>_________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.<wbr>org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/<wbr>listinfo/squid-users</a><br>
<br>
<br>
------------------------------<br>
<br>
End of squid-users Digest, Vol 26, Issue 82<br>
******************************<wbr>*************<br>
</blockquote></div>