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
[-- Attachment #1 --] 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=16384 # max # of bytes in a queue options MSGMNI=512 # number of message queue identifiers options MSGSEG=8196 # number of message segments options MSGSSZ=128 # size of a message segment options MSGTQL=512 # max messages in system options NMBCLUSTERS=32768 also, have set the following in /etc/sysctl.conf : kern.ipc.somaxconn=1024 net.inet.tcp.delayed_ack=0 net.inet.ip.portrange.last=30000 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 [-- Attachment #2 --] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> <META content="MSHTML 6.00.2716.2200" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>Hi I am running,</FONT></DIV> <DIV><FONT face=Arial size=2>Squid Cache: Version 2.4.STABLE6 under 4.6-RC FreeBSD from Sat May 25</FONT></DIV> <DIV><FONT face=Arial size=2>So it happens often to see the following in the syslog:</FONT></DIV> <DIV><FONT face=Arial size=2>Jun 13 17:04:25 cache squid[17295]: Squid Parent: child process 30440 started<BR>Jun 13 17:04:25 cache /kernel: Limiting closed port RST response from 204 to 200 packets per second<BR>Jun 13 18:35:22 cache (squid): xcalloc: Unable to allocate 1 blocks of 2048 bytes!<BR>Jun 13 18:35:23 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 started<BR>Jun 13 18:35:26 cache (squid): ipcache_init: DNS name lookup tests failed.<BR>Jun 13 18:35:26 cache /kernel: pid 30518 (squid), uid 65534: exited on signal 6<BR>Jun 13 18:35:26 cache squid[17295]: Squid Parent: child process 30518 exited due to signal 6<BR>Jun 13 18:35:29 cache /kernel: xl0: watchdog timeout<BR>Jun 13 18:35:29 cache squid[17295]: Squid Parent: child process 30520 started<BR>Jun 13 20:58:33 cache (squid): xcalloc: Unable to allocate 1 blocks of 4096 bytes!<BR>Jun 13 20:58:33 cache squid[17295]: Squid Parent: child process 30520 exited with status 1<BR>Jun 13 20:58:36 cache squid[17295]: Squid Parent: child process 30633 started<BR></FONT></DIV> <DIV><FONT face=Arial size=2>This is a compaq proliant server with 4x500mhz Xeons, and 10x9GB SCSI disks and 1.5GB RAM, running only squid server.</FONT></DIV> <DIV><FONT face=Arial size=2>The traffic which pass in and out is between 5-7mbits/s ,</FONT></DIV> <DIV><FONT face=Arial size=2>I am using a 3com nic, because the compaq dual etherexpress pro hangs permanently before!</FONT></DIV> <DIV><FONT face=Arial size=2>I have tuned the following in the kernel:<BR>options MSGMNB=16384 # max # of bytes in a queue<BR>options MSGMNI=512 # number of message queue identifiers<BR>options MSGSEG=8196 # number of message segments<BR>options MSGSSZ=128 # size of a message segment<BR>options MSGTQL=512 # max messages in system<BR>options NMBCLUSTERS=32768</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>also, have set the following in /etc/sysctl.conf :<BR>kern.ipc.somaxconn=1024<BR>net.inet.tcp.delayed_ack=0<BR>net.inet.ip.portrange.last=30000<BR></FONT><FONT face=Arial size=2><BR>The squid is running without diskd and is in transparent mode.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2>I will appreciate any advices how to fix or tune more this squid-cache server.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Best regards,</FONT></DIV> <DIV><FONT face=Arial size=2>Veno</DIV></FONT></BODY></HTML>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001c01c21306$f41d5610$235c27d4>
