From owner-freebsd-stable@FreeBSD.ORG Mon Oct 17 13:26:24 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 ADD1816A41F for ; Mon, 17 Oct 2005 13:26:24 +0000 (GMT) (envelope-from WillS@housing.ufl.edu) Received: from smtp.housing.ufl.edu (smtp1.housing.ufl.edu [128.227.47.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08F7E43D58 for ; Mon, 17 Oct 2005 13:26:22 +0000 (GMT) (envelope-from WillS@housing.ufl.edu) Received: (qmail 56536 invoked by uid 98); 17 Oct 2005 13:26:21 -0000 Received: from 128.227.47.18 by smtp2.housing.ufl.edu (envelope-from , uid 82) with qmail-scanner-1.25 (clamdscan: 0.83/705. spamassassin: 3.0.2. Clear:RC:1(128.227.47.18):. Processed in 0.554192 secs); 17 Oct 2005 13:26:21 -0000 X-Qmail-Scanner-Mail-From: WillS@housing.ufl.edu via smtp2.housing.ufl.edu X-Qmail-Scanner: 1.25 (Clear:RC:1(128.227.47.18):. Processed in 0.554192 secs) Received: from bragi.housing.ufl.edu (128.227.47.18) by smtp.housing.ufl.edu with SMTP; 17 Oct 2005 13:26:20 -0000 Date: Sun, 16 Oct 2005 13:53:54 -0400 Message-ID: <0E972CEE334BFE4291CD07E056C76ED807738007@bragi.housing.ufl.edu> X-MS-Has-Attach: MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" X-MS-TNEF-Correlator: Content-Transfer-Encoding: quoted-printable Thread-Topic: Disk 100% busy Thread-Index: AcXScGAFojqNZMELRYas74A9zVHDPgACOrxY From: "Will Saxon" content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.0.6556.0 To: "Ronald Klop" , 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: Mon, 17 Oct 2005 13:26:24 -0000 -----Original Message----- From: Ronald Klop [mailto:ronald-freebsd8@klop.yi.org] Sent: Sun 2005-10-16 12:40 To: Will Saxon; stable@freebsd.org Cc:=09 Subject: Re: Disk 100% busy > On Sun, 16 Oct 2005 15:16:34 +0200, Will Saxon = =20 > wrote: >=20 > > 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 =20 > are scanned at the same time, etc.. I completely forgot that I had the partition mounted 'sync'. That might = explain things a bit, huh.=20 I am using qmail - the author indicates that softupdates is not = recommended. However, I am going to give it a shot and see if I start = losing mail as he suggests may happen. Thanks for answering! -Will