From owner-freebsd-stable@FreeBSD.ORG Tue Feb 27 04:11:42 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BFF7016A400 for ; Tue, 27 Feb 2007 04:11:42 +0000 (UTC) (envelope-from serg@tmn.ru) Received: from sbtx.tmn.ru (relay.tmn.ru [212.76.160.49]) by mx1.freebsd.org (Postfix) with ESMTP id 2F4CE13C4AA for ; Tue, 27 Feb 2007 04:11:41 +0000 (UTC) (envelope-from serg@tmn.ru) Received: from sv.tech.sibitex.tmn.ru (sv.tech.sibitex.tmn.ru [10.76.160.59]) by sbtx.tmn.ru (8.13.6/8.13.6) with ESMTP id l1R3u4iH054387; Tue, 27 Feb 2007 08:56:13 +0500 (YEKT) (envelope-from serg@tmn.ru) Received: from sv.tech.sibitex.tmn.ru (localhost.tech.sibitex.tmn.ru [127.0.0.1]) by sv.tech.sibitex.tmn.ru (8.13.8/8.13.8) with ESMTP id l1R3u4q8049519; Tue, 27 Feb 2007 08:56:04 +0500 (YEKT) (envelope-from serg@sv.tech.sibitex.tmn.ru) Received: (from serg@localhost) by sv.tech.sibitex.tmn.ru (8.13.8/8.13.8/Submit) id l1R3u3WP049518; Tue, 27 Feb 2007 08:56:03 +0500 (YEKT) (envelope-from serg) Date: Tue, 27 Feb 2007 08:56:03 +0500 From: "Sergey N. Voronkov" To: Mike Tancsa Message-ID: <20070227035603.GA49430@tmn.ru> References: <003701c75a03$fb478ac0$d801a8c0@dimuthu> <200702270305.l1R35MX2067221@lava.sentex.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200702270305.l1R35MX2067221@lava.sentex.ca> User-Agent: Mutt/1.4.2.2i X-Virus-Scanned: ClamAV version 0.90, clamav-milter version devel-120207 on sbtx.tmn.ru X-Virus-Status: Clean Cc: freebsd-stable@freebsd.org Subject: Re: Clamav-90_2 Lockup with freebsd 6.2 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Feb 2007 04:11:42 -0000 On Mon, Feb 26, 2007 at 10:05:35PM -0500, Mike Tancsa wrote: > At 07:12 PM 2/26/2007, Dimuthu Parussalla wrote: > >Clamav-90_2 Lockup with freebsd 6.2 > > > > > >Still under load clamav_90_2 locks up with high cpu usage. Had to downgrade > >the port to 88.7_1 to get the server going. Sockstat shows lots of open > >sockets from clamd. > > > >I am using simscan+Qmail+Clamav. > > > >Any Ideas to solve this problem?. > > > Change the threading lib. It fixed it for us. > > % cat /etc/libmap.conf > [clamd] > libc_r.so.5 libthr.so.2 > libc_r.so.6 libthr.so.2 > libthr.so.2 libthr.so.2 > libpthread.so.1 libthr.so.2 > libpthread.so.2 libthr.so.2 Or limit MaxThreads to one: # grep MaxT /usr/local/etc/clamd.conf MaxThreads 1 Looks like there are some bugs on thread usage into 0.90. It locks on FreeBSD and Solaris at least. (May be threading is much more linux specific in comparation to 0.88.7). Serg.