Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jun 2002 21:20:09 +0300
From:      "Ventsislav Velkov" <veno@evrocom.net>
To:        <freebsd-stable@freebsd.org>
Subject:   Squid restarting often?
Message-ID:  <001c01c21306$f41d5610$235c27d4@skyhawk>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_0019_01C21320.1902A480
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi I am running,
Squid Cache: Version 2.4.STABLE6 under 4.6-RC FreeBSD from Sat May 25
So it happens often to see the following in the syslog:
Jun 13 17:04:25 cache squid[17295]: Squid Parent: child process 30440 =
started
Jun 13 17:04:25 cache /kernel: Limiting closed port RST response from =
204 to 200 packets per second
Jun 13 18:35:22 cache (squid): xcalloc: Unable to allocate 1 blocks of =
2048 bytes!
Jun 13 18:35:23 cache squid[17295]: Squid Parent: child process 30440 =
exited with status 1
Jun 13 18:35:26 cache squid[17295]: Squid Parent: child process 30518 =
started
Jun 13 18:35:26 cache (squid): ipcache_init: DNS name lookup tests =
failed.
Jun 13 18:35:26 cache /kernel: pid 30518 (squid), uid 65534: exited on =
signal 6
Jun 13 18:35:26 cache squid[17295]: Squid Parent: child process 30518 =
exited due to signal 6
Jun 13 18:35:29 cache /kernel: xl0: watchdog timeout
Jun 13 18:35:29 cache squid[17295]: Squid Parent: child process 30520 =
started
Jun 13 20:58:33 cache (squid): xcalloc: Unable to allocate 1 blocks of =
4096 bytes!
Jun 13 20:58:33 cache squid[17295]: Squid Parent: child process 30520 =
exited with status 1
Jun 13 20:58:36 cache squid[17295]: Squid Parent: child process 30633 =
started

This is a compaq proliant server with 4x500mhz Xeons, and 10x9GB SCSI =
disks and 1.5GB RAM, running only squid server.
The traffic which pass in and out is between 5-7mbits/s ,
I am using a 3com nic, because the compaq dual etherexpress pro hangs =
permanently before!
I have tuned the following in the kernel:
options         MSGMNB=3D16384    # max # of bytes in a queue
options         MSGMNI=3D512      # number of message queue identifiers
options         MSGSEG=3D8196     # number of message segments
options         MSGSSZ=3D128      # size of a message segment
options         MSGTQL=3D512      # max messages in system
options         NMBCLUSTERS=3D32768

also, have set the following in /etc/sysctl.conf :
kern.ipc.somaxconn=3D1024
net.inet.tcp.delayed_ack=3D0
net.inet.ip.portrange.last=3D30000

The squid is running without diskd and is in transparent mode.

I will appreciate any advices how to fix or tune more this squid-cache =
server.

Best regards,
Veno

------=_NextPart_000_0019_01C21320.1902A480
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2716.2200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi I am running,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Squid Cache: Version 2.4.STABLE6 under =
4.6-RC=20
FreeBSD from Sat May 25</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>So it happens often to see the =
following in the=20
syslog:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Jun 13 17:04:25 cache squid[17295]: =
Squid Parent:=20
child process 30440 started<BR>Jun 13 17:04:25 cache /kernel: Limiting =
closed=20
port RST response from 204 to 200 packets per second<BR>Jun 13 18:35:22 =
cache=20
(squid): xcalloc: Unable to allocate 1 blocks of 2048 bytes!<BR>Jun 13 =
18:35:23=20
cache squid[17295]: Squid Parent: child process 30440 exited with status =

1<BR>Jun 13 18:35:26 cache squid[17295]: Squid Parent: child process =
30518=20
started<BR>Jun 13 18:35:26 cache (squid): ipcache_init: DNS name lookup =
tests=20
failed.<BR>Jun 13 18:35:26 cache /kernel: pid 30518 (squid), uid 65534: =
exited=20
on signal 6<BR>Jun 13 18:35:26 cache squid[17295]: Squid Parent: child =
process=20
30518 exited due to signal 6<BR>Jun 13 18:35:29 cache /kernel: xl0: =
watchdog=20
timeout<BR>Jun 13 18:35:29 cache squid[17295]: Squid Parent: child =
process 30520=20
started<BR>Jun 13 20:58:33 cache (squid): xcalloc: Unable to allocate 1 =
blocks=20
of 4096 bytes!<BR>Jun 13 20:58:33 cache squid[17295]: Squid Parent: =
child=20
process 30520 exited with status 1<BR>Jun 13 20:58:36 cache =
squid[17295]: Squid=20
Parent: child process 30633 started<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>This is a compaq proliant server with =
4x500mhz=20
Xeons, and 10x9GB SCSI disks and 1.5GB RAM, running only squid=20
server.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The traffic which pass in and out is =
between=20
5-7mbits/s ,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I am using a 3com nic, because the =
compaq dual=20
etherexpress pro hangs permanently before!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I have tuned the following in the=20
kernel:<BR>options&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
MSGMNB=3D16384&nbsp;&nbsp;&nbsp; # max # of bytes in a=20
queue<BR>options&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
MSGMNI=3D512&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # number of message queue=20
identifiers<BR>options&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
MSGSEG=3D8196&nbsp;&nbsp;&nbsp;&nbsp; # number of message=20
segments<BR>options&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
MSGSSZ=3D128&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # size of a message=20
segment<BR>options&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
MSGTQL=3D512&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # max messages in=20
system<BR>options&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
NMBCLUSTERS=3D32768</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>also, have set the following in =
/etc/sysctl.conf=20
:<BR>kern.ipc.somaxconn=3D1024<BR>net.inet.tcp.delayed_ack=3D0<BR>net.ine=
t.ip.portrange.last=3D30000<BR></FONT><FONT=20
face=3DArial size=3D2><BR>The squid is running without diskd and is in =
transparent=20
mode.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT face=3DArial size=3D2>I =
will appreciate=20
any advices how to fix or tune more this squid-cache =
server.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Best regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Veno</DIV></FONT></BODY></HTML>

------=_NextPart_000_0019_01C21320.1902A480--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001c01c21306$f41d5610$235c27d4>