From owner-freebsd-isp@FreeBSD.ORG Mon Feb 9 08:31:10 2004 Return-Path: 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 303D316A4CE for ; Mon, 9 Feb 2004 08:31:10 -0800 (PST) Received: from smtp4.wlink.com.np (smtp4.wlink.com.np [202.79.32.87]) by mx1.FreeBSD.org (Postfix) with SMTP id AE64443D31 for ; Mon, 9 Feb 2004 08:30:47 -0800 (PST) (envelope-from bikrant_ml@wlink.com.np) Received: (qmail 92140 invoked from network); 9 Feb 2004 16:30:37 -0000 Received: from unknown (HELO qmail-scanner.wlink.com.np) (202.79.32.74) by 0 with SMTP; 9 Feb 2004 16:30:37 -0000 Received: (qmail 77384 invoked by uid 1008); 9 Feb 2004 16:30:37 -0000 Received: from bikrant_ml@wlink.com.np by qmail-scanner.wlink.com.np by uid 1002 with qmail-scanner-1.20 (clamscan: 0.60. Clear:RC:1(202.79.32.78):. Processed in 0.019711 secs); 09 Feb 2004 16:30:37 -0000 X-Qmail-Scanner-Mail-From: bikrant_ml@wlink.com.np via qmail-scanner.wlink.com.np X-Qmail-Scanner: 1.20 (Clear:RC:1(202.79.32.78):. Processed in 0.019711 secs) Received: from smtp3.wlink.com.np (202.79.32.78) by qmail-scanner.wlink.com.np with SMTP; 9 Feb 2004 16:30:37 -0000 Received: (qmail 16846 invoked by uid 514); 9 Feb 2004 16:30:37 -0000 Received: from [202.79.55.254] (HELO ekanta4ey6dw38) by smtp3.wlink.com.np (qmail-smtpd) with SMTP; 09 Feb 2004 16:30:37 -0000 (Mon, 09 Feb 2004 22:15:37 +0545) Message-ID: <006001c3ef2a$0e029120$0100a8c0@ekanta4ey6dw38> From: "Bikrant Neupane" To: , Date: Mon, 9 Feb 2004 22:15:35 +0545 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Check-By: smtp3.wlink.com.np Spam: No ; 0.0 / 5.0 X-Spam-Status: No, hits=0.0 required=5.0 Subject: High Cpu utilization X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2004 16:31:10 -0000 Hi, For some reason my squid cache is running at 99% load. I don't see any abnormal pattern in traffic and number of connections. Agv. traffic is around 2M/sec and goes upto 3.5M/sec during peak hours. Max File descriptor open is around 2K. I'm running squid-2.5.stable4 on FreeBSD-4.9. The hardware is Dell Power edge with 2.6 Gig P4 HT processor and 2 GB RAM. I've got custom kernel running with HT enabled. I've got 2 cache dirs (10 Gb each) on 20 GB SCSI drive dedicated for cache only. This system has been running since last 30 days. Under same traffic load (and connections) the avg. cpu usage was around 30% during peak hours. but since last 2 days it is running at 99% most of the time :( I compiled squid with following options: ./configure \ --enable-delay-pools \ --enable-ipf-transparent \ --enable-storeio=diskd,ufs,aufs \ --disable-ident-lookups \ --enable-snmp \ --enable-wccp \ --enable-removal-policies \ -sysconfdir=/etc/squid/ \ --with-pthreads \ --enable-async-io=60 \ --enable-async-io \ --enable-time-hack And these are few lines from my squid.conf: cache_mem 128 MB cache_swap_low 90 cache_swap_high 95 maximum_object_size 32768 KB maximum_object_size_in_memory 16 KB tcp_recv_bufsize 65535 bytes ipcache_size 4096 fqdncache_size 4096 cache_dir aufs /usr/local/squid/cache1 8000 32 512 cache_dir aufs /usr/local/squid/cache2 8000 32 512 I think I need to tweak some parameter..Please help. with regards, Bikrant