Re: [squid-users] losing File Descriptors gradually over time squid 3.0-stable15 fedora10

From: Leonardo Rodrigues <leolistas_at_solutti.com.br>
Date: Mon, 03 Aug 2009 06:39:59 -0300

juanb_at_cancun.com.mx escreveu:
> Hello
>
> I have been running 3 squid servers with squid-3.0.STABLE15-2, std
> rpm on a Linux Fedora 10,
> I have been running those servers as a transparent cache and the
> traffic to them is redirected by some
> Linux and mikrotik routers,
> Everything goes fine, but day to day we are losing file descriptors,
> here is a weekly and monthly graphic,
> sometimes a graphic says more than 100 words
> if anyone had the same experience and have a solution please let me know
>
> there are 2 graphics from different machines, running exactly the same
> versions of everything, doing the same
> If I wait more days the machine will crash but a simple restart make
> the thing work again, we restart the squid
> every 2 or 3 weeks to be safe, but I think it is not the solution
>

    images didnt get attached to the list ... please post them in some
http server (imageshack.us for example) and send the URLs.

    there was a known bug for file descriptors some time ago, but that
should have been fixed in 3.0 STABLE11.

    at the time i opened the bugtraq first explain the bug and giving
some further details, the easy way of identify those lost
filedescriptors was asking squid to shutdown. On shutdown, i could see
something like this on cache.log:

i can also see LOTS of OpenFD messages during shutdown:

2008/07/23 23:46:51| Open FD 98 /var/squid/05/EB/0005EBB7
2008/07/23 23:46:51| Open FD 99 /var/squid/02/3D/00023D8C
2008/07/23 23:46:51| Open FD 100 /var/squid/05/EB/0005EBB7
2008/07/23 23:46:51| Open FD 101 /var/squid/04/74/00047432
2008/07/23 23:46:51| Open FD 102 /var/squid/05/EB/0005EBB7
2008/07/23 23:46:51| Open FD 103 /var/squid/05/EB/0005EBB7

and last .... shutting down and restarting squid will really close all FDs and
bring things back to normal. despite of what seems to be a bug, squid shuts
cleanly.

2008/07/23 23:46:51| Open FD 159 /var/squid/02/4D/00024D8B
2008/07/23 23:46:51| Open FD 223 /var/squid/07/12/000712CA
2008/07/23 23:46:51| Open FD 288 /var/squid/02/9B/00029B57
2008/07/23 23:46:51| Squid Cache (Version 3.0.STABLE8): Exiting normally.

    and those lost of 'Open FD' entries really prove that file
descriptors were being lost by squid.

    can you please check the bugzilla entry and try to reproduce some of
the steps took during that time ? Watching filedescriptors with
cachemgr.cgi and lsof as well as during squid shutdown can give you a
hint of what's really happening.

    the bugzilla entry for the bug supposely fixed on 3.0 STABLE11
http://www.squid-cache.org/bugs/show_bug.cgi?id=2424

    i cannot confirm the bug still exists because i stop using 3.0 and
go to 2.7 during that bug time

-- 
	Atenciosamente / Sincerily,
	Leonardo Rodrigues
	Solutti Tecnologia
	http://www.solutti.com.br
	Minha armadilha de SPAM, NÃO mandem email
	gertrudes_at_solutti.com.br
	My SPAMTRAP, do not email it
Received on Mon Aug 03 2009 - 09:40:34 MDT

This archive was generated by hypermail 2.2.0 : Tue Aug 04 2009 - 12:00:03 MDT