Date: Tue, 2 Jul 2002 16:00:42 +0200 From: Alexander Maret <maret@atrada.net> To: "'Anton V. Petrov'" <apetrov@smrtlc.ru> Cc: "'isp@freebsd.org'" <isp@freebsd.org> Subject: AW: squid under freebsd4.0 eats almost 100% of CPU Message-ID: <58A002A02C5ED311812E0050044517F00D284E@erlangen01.atrada.de>
next in thread | raw e-mail | index | archive | help
> -----Ursprungliche Nachricht----- > Von: Anton V. Petrov [mailto:apetrov@smrtlc.ru] > Gesendet: Dienstag, 2. Juli 2002 08:15 > An: isp@FreeBSD.ORG > Betreff: squid under freebsd4.0 eats almost 100% of CPU > > > Dear readers, > > I'm using squid under FreeBSD 4.0-RELEASE and it permanently > eats almost > 100% of CPU resourses (99.50-99.99%). Luckily, this machine > has 2 CPUs :) > First it was squid-2.3stable3, but now I have upgraded it to > 2.4stable6. > The result shown by top, is the same :(( Upgrading to 4.6 will probably not help as I don't think that the default values for SYSV message buffers have been increased. Had exactly the same problem with 4.5. Squid eats all of your system resources because of your message buffers being too small. Adding the following kernel configuration lines solved the problem for me: # SQUID - do not touch! options SYSVSHM options SYSVMSG options SYSVSEM options MSGMNB=16384 options MSGMNI=41 options MSGSEG=2049 options MSGSSZ=64 options MSGTQL=512 options SHMSEG=16 options SHMMNI=32 options SHMMAX=2097152 options SHMALL=4096 options MAXDSIZ=536870912 options DFLDSIZ=134217728 options NMBCLUSTERS=10240 # SQUID END For completeness I've posted my full squid kernel conf, though you probably don't need the network things. SYSV messaging and semaphores are the important values. Good Luck, Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?58A002A02C5ED311812E0050044517F00D284E>