From owner-freebsd-isp Tue Jul 2 7: 0:57 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFBD937B400 for ; Tue, 2 Jul 2002 07:00:53 -0700 (PDT) Received: from hermes.atrada.de (hermes.atrada.de [212.118.32.33]) by mx1.FreeBSD.org (Postfix) with SMTP id 4D7E943E09 for ; Tue, 2 Jul 2002 07:00:52 -0700 (PDT) (envelope-from maret@atrada.net) Received: from erlangen01.atrada.de by hermes.atrada.de via smtpd (for mx1.FreeBSD.org [216.136.204.125]) with SMTP; 2 Jul 2002 14:00:52 UT Received: (private information removed) Message-ID: <58A002A02C5ED311812E0050044517F00D284E@erlangen01.atrada.de> From: Alexander Maret To: "'Anton V. Petrov'" Cc: "'isp@freebsd.org'" Subject: AW: squid under freebsd4.0 eats almost 100% of CPU Date: Tue, 2 Jul 2002 16:00:42 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > -----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