From owner-freebsd-stable@FreeBSD.ORG Sun Oct 16 16:40:50 2005 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7A8016A41F for ; Sun, 16 Oct 2005 16:40:50 +0000 (GMT) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out3.tiscali.nl (smtp-out3.tiscali.nl [195.241.79.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6338043D48 for ; Sun, 16 Oct 2005 16:40:50 +0000 (GMT) (envelope-from ronald-freebsd8@klop.yi.org) Received: from [82.171.39.195] (helo=guido.klop.ws) by smtp-out3.tiscali.nl with smtp (Tiscali http://www.tiscali.nl) id 1ERBZ3-0003CG-Jj for ; Sun, 16 Oct 2005 18:40:49 +0200 Received: (qmail 7728 invoked from network); 16 Oct 2005 16:40:48 -0000 Received: from localhost.thuis.klop.ws (HELO outgoing.local) (127.0.0.1) by localhost.thuis.klop.ws with SMTP; 16 Oct 2005 16:40:48 -0000 Date: Sun, 16 Oct 2005 18:40:47 +0200 To: "Will Saxon" , stable@freebsd.org References: <0E972CEE334BFE4291CD07E056C76ED807738005@bragi.housing.ufl.edu> From: "Ronald Klop" Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: <0E972CEE334BFE4291CD07E056C76ED807738005@bragi.housing.ufl.edu> User-Agent: Opera M2/8.50 (FreeBSD, build 1358) Cc: Subject: Re: Disk 100% busy 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: Sun, 16 Oct 2005 16:40:50 -0000 On Sun, 16 Oct 2005 15:16:34 +0200, Will Saxon wrote: > I am trying to diagnose a problem whereby a virus scanner (clam > antivirus) is taking too long to scan attachments on a mail server. We > have an attachment limitation of 20MB and an attachment of 7-20MB can > take over 3 minutes to scan. This often causes the sending mail server > to timeout and resend the mail. > > In this case, my mail gateway is is a dual 3.06GHz Xeon with 1GB of ram > and 2 36GB 15krpm drives in a raid-1 on a smart array 6i (cciss) > controller. I am running FreeBSD 5.4-RELEASE-p1. > > Systat -vmstat reports the disk mirror is 100% busy at all times on this > machine, with an average of around 300 tps at 15KB/t. This seems wrong > to me, as these numbers are maintained even when the system doesn't > otherwise appear busy. We don't seem to be swamped by log writes. How > can I tell what's generating these disk writes? At the moment the 100% > disk utilization is the only thing I can see that would cause the > scanning delay. The machine overall is sluggish with file operations. How many e-mails do you process every second/minute? Do you use softupdates are is the filesystem mounted 'sync'. Change the mailserver to first accept the message, then scan it, then deliver it. In that case you have much more control over how many messages are scanned at the same time, etc.. Ronald. -- Ronald Klop Amsterdam, The Netherlands