From owner-freebsd-stable@FreeBSD.ORG Tue Mar 6 16:05:46 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 4EC0516A406 for ; Tue, 6 Mar 2007 16:05:46 +0000 (UTC) (envelope-from ob@gruft.de) Received: from obh.snafu.de (obh.snafu.de [213.73.92.34]) by mx1.freebsd.org (Postfix) with ESMTP id F26F613C428 for ; Tue, 6 Mar 2007 16:05:45 +0000 (UTC) (envelope-from ob@gruft.de) Received: from ob by obh.snafu.de with local (Exim 4.64 (FreeBSD)) (envelope-from ) id 1HObkm-000Eek-3j for freebsd-stable@freebsd.org; Tue, 06 Mar 2007 16:39:04 +0100 Date: Tue, 6 Mar 2007 16:39:04 +0100 From: Oliver Brandmueller To: freebsd-stable@freebsd.org Message-ID: <20070306153904.GK31435@e-Gitt.NET> Mail-Followup-To: freebsd-stable@freebsd.org References: <003701c75a03$fb478ac0$d801a8c0@dimuthu> <200702270305.l1R35MX2067221@lava.sentex.ca> <20070227035603.GA49430@tmn.ru> <20070227183553.B18301@godot.imp.ch> <867iu2gtny.fsf@sparrow.local> <3aaaa3a0703010217u63e389f2hbe848a8fc42cd9f2@mail.gmail.com> <868xehfdcs.fsf@sparrow.local> <20070301121848.L18301@godot.imp.ch> <45E71276.2050708@FreeBSD.org> <32c25d140703020619i67ac96e6y24175f73a70c76c7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <32c25d140703020619i67ac96e6y24175f73a70c76c7@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: Oliver Brandmueller 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, 06 Mar 2007 16:05:46 -0000 Hi, On Fri, Mar 02, 2007 at 11:19:40AM -0300, Carlos Horowicz wrote: > Anybody tried this additionally in /etc/libmap.conf ? > > [/usr/local/lib/libclamav.so.1] > libpthread.so.2 libthr.so.2 > > clamav-0.90_2 reduced CPU consumption for me on 6.2-Stable since I > added the two sections in libmap.conf Apart from already running with libthr for clamav for a long time, I just changed my exim config: While having big CPU usage problems in the last days with exim connecting to the local socket I have exim now connecting to localhot:3310 by tcp. The difference is, that before clamd scanned all files in the directory given by exim. Effectively exim was unpacking the whole MIME structure and placed all parts in the dir plus the complete e-mail. That way clamd need to examine every single part and also checked the whole e-mail unpacking the structure by itself. When using the TCP socket the mail is just sent as a stream and clamd handles it completely. For us this was anyhow just the first step before moving clamd to a loadbalanced set of servers, so that a failing clamd does not affect exim anymore. - Oliver -- | Oliver Brandmueller | Offenbacher Str. 1 | Germany D-14197 Berlin | | Fon +49-172-3130856 | Fax +49-172-3145027 | WWW: http://the.addict.de/ | | Ich bin das Internet. Sowahr ich Gott helfe. | | Eine gewerbliche Nutzung aller enthaltenen Adressen ist nicht gestattet! |