From owner-freebsd-stable Thu Jun 13 11:20:19 2002 Delivered-To: freebsd-stable@freebsd.org Received: from main.evrocom.net (main.evrocom.net [212.39.92.2]) by hub.freebsd.org (Postfix) with SMTP id A543637B433 for ; Thu, 13 Jun 2002 11:19:32 -0700 (PDT) Received: (qmail 10110 invoked from network); 13 Jun 2002 18:19:28 -0000 Received: from unknown (HELO skyhawk) (212.39.92.35) by hosting.evrocom.net with SMTP; 13 Jun 2002 18:19:28 -0000 Message-ID: <001c01c21306$f41d5610$235c27d4@skyhawk> From: "Ventsislav Velkov" To: Subject: Squid restarting often? Date: Thu, 13 Jun 2002 21:20:09 +0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0019_01C21320.1902A480" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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
Hi I am running,
Squid Cache: Version 2.4.STABLE6 under = 4.6-RC=20 FreeBSD from Sat May 25
So it happens often to see the = following in the=20 syslog:
Jun 13 17:04:25 cache squid[17295]: = Squid Parent:=20 child process 30440 started
Jun 13 17:04:25 cache /kernel: Limiting = closed=20 port RST response from 204 to 200 packets per second
Jun 13 18:35:22 = cache=20 (squid): xcalloc: Unable to allocate 1 blocks of 2048 bytes!
Jun 13 = 18:35:23=20 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=20 started
Jun 13 18:35:26 cache (squid): ipcache_init: DNS name lookup = tests=20 failed.
Jun 13 18:35:26 cache /kernel: pid 30518 (squid), uid 65534: = exited=20 on signal 6
Jun 13 18:35:26 cache squid[17295]: Squid Parent: child = process=20 30518 exited due to signal 6
Jun 13 18:35:29 cache /kernel: xl0: = watchdog=20 timeout
Jun 13 18:35:29 cache squid[17295]: Squid Parent: child = process 30520=20 started
Jun 13 20:58:33 cache (squid): xcalloc: Unable to allocate 1 = blocks=20 of 4096 bytes!
Jun 13 20:58:33 cache squid[17295]: Squid Parent: = child=20 process 30520 exited with status 1
Jun 13 20:58:36 cache = squid[17295]: Squid=20 Parent: child process 30633 started
This is a compaq proliant server with = 4x500mhz=20 Xeons, and 10x9GB SCSI disks and 1.5GB RAM, running only squid=20 server.
The traffic which pass in and out is = between=20 5-7mbits/s ,
I am using a 3com nic, because the = compaq dual=20 etherexpress pro hangs permanently before!
I have tuned the following in the=20 kernel:
options        =20 MSGMNB=3D16384    # max # of bytes in a=20 queue
options        =20 MSGMNI=3D512      # number of message queue=20 identifiers
options        =20 MSGSEG=3D8196     # number of message=20 segments
options        =20 MSGSSZ=3D128      # size of a message=20 segment
options        =20 MSGTQL=3D512      # max messages in=20 system
options        =20 NMBCLUSTERS=3D32768
 
also, have set the following in = /etc/sysctl.conf=20 :
kern.ipc.somaxconn=3D1024
net.inet.tcp.delayed_ack=3D0
net.ine= t.ip.portrange.last=3D30000

The squid is running without diskd and is in = transparent=20 mode.
 
I = will appreciate=20 any advices how to fix or tune more this squid-cache = server.
 
Best regards,
Veno
------=_NextPart_000_0019_01C21320.1902A480-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message