From krs@geclab1.cips.mpg.de  Wed Jan 21 01:49:26 2004
Return-Path: <krs@geclab1.cips.mpg.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B817116A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 21 Jan 2004 01:49:26 -0800 (PST)
Received: from mpehp1.mpe-garching.mpg.de (mpehp1.mpe-garching.mpg.de [130.183.70.10])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2CDD643D1F
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 21 Jan 2004 01:49:19 -0800 (PST)
	(envelope-from krs@geclab1.cips.mpg.de)
Received: from geclab1.cips.mpg.de (geclab1.cips.mpg.de [130.183.6.151])
	by mpehp1.mpe-garching.mpg.de (8.9.3 (PHNE_25183+JAGae58098)/8.9.3) with ESMTP id KAA05322
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 21 Jan 2004 10:49:17 +0100 (MET)
Received: (from krs@localhost)
	by geclab1.cips.mpg.de (8.12.10/8.12.10/Submit) id i0L9kJuM003346;
	Wed, 21 Jan 2004 10:46:19 +0100 (CET)
	(envelope-from krs)
Message-Id: <200401210946.i0L9kJuM003346@geclab1.cips.mpg.de>
Date: Wed, 21 Jan 2004 10:46:19 +0100 (CET)
From: Klaus Robert Suetterlin <krs@geclab1.cips.mpg.de>
Reply-To: robert@mpe.mpg.de
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: writing to 3ware escalade (twe) spends 90% of cpu in system.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         61669
>Category:       kern
>Synopsis:       [twe] writing to 3ware escalade spends 90% of cpu in system.
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 21 01:50:15 PST 2004
>Closed-Date:    Tue Mar 20 12:28:22 GMT 2007
>Last-Modified:  Tue Mar 20 12:28:22 GMT 2007
>Originator:     Klaus Robert Suetterlin
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
Max-Planck-Institut
>Environment:
System: FreeBSD geclab1.cips.mpg.de 5.2-CURRENT FreeBSD 5.2-CURRENT #2: Tue Jan 20 14:35:53 CET 2004 krs@geclab1.cips.mpg.de:/usr/obj/usr/src/sys/GECLAB1 i386

I removed all INVARIANTS and WITNESS related options from the kerneli configuration.

MPTable: <COMPAQ   PROLIANT    >
CPU: Intel Pentium III (927.11-MHz 686-class CPU)
real memory  = 805306368 (768 MB)
avail memory = 782446592 (746 MB)
pcib5: <ServerWorks NB6635 3.0LE host to PCI bridge> at pcibus 5 on motherboard
pci5: <PCI bus> on pcib5
twe0: <3ware 7000 series Storage Controller. Driver version 1.50.00.000> port 0x
b040-0xb04f mem 0xd0800000-0xd0ffffff,0xd0200000-0xd020000f irq 10 at device 2.0
 on pci5
twe0: 4 ports, Firmware FE7S 1.05.00.063, BIOS BE7X 1.08.00.048

The 3ware escalade is a 8506-4LP (64Bit, 66MHz) which is plugged into a 64Bit, 33MHz pci slot.  It has 4 250GB SATA disks in Raid0.

>Description:
(I posted this to freebsd-current, but couldn't get any solution.)
Writing to the 3ware escalade uses up all my cpu time.

When I do ``dd if=/dev/zero of=/space/test bs=1000000 count=10000'', systat -vmstat reports:  500 Interrupts total, 280 in twe.  CPU usage is 90% system, 1% interrupt, 9% idle.  The twe is serving 128KB/t at 570 tps for a total of 72MB/s, beeing only 75% busy.

With INVARIANTS and WITNESS options in the kernel system uses up all cpu, but twe only serves 30MB/s.

>How-To-Repeat:
Always on.

>Fix:
>Release-Note:
>Audit-Trail:

From: Harrison Grundy <astrodog@gmail.com>
To: bug-followup@FreeBSD.org,  robert@mpe.mpg.de
Cc:  
Subject: Re: kern/61669: [twe] writing to 3ware escalade spends 90% of cpu
 in system.
Date: Sat, 17 Mar 2007 04:13:31 -0500

 Does this still occur?
 
 If so, does it occur when writing at lower speeds? (Say, the 12MB/s of a 
 network copy at 100mbps.
 
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Tue Mar 20 12:28:03 UTC 2007 
State-Changed-Why:  
Harrison reports that a firmware update resolved this issue. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=61669 
>Unformatted:
