From owner-freebsd-bugs@FreeBSD.ORG Mon Apr 11 08:50:22 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B1C0E16A4CE for ; Mon, 11 Apr 2005 08:50:22 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7053C43D2F for ; Mon, 11 Apr 2005 08:50:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j3B8oMBE072398 for ; Mon, 11 Apr 2005 08:50:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j3B8oMVE072397; Mon, 11 Apr 2005 08:50:22 GMT (envelope-from gnats) Resent-Date: Mon, 11 Apr 2005 08:50:22 GMT Resent-Message-Id: <200504110850.j3B8oMVE072397@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Simun Mikecin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B91B16A4CE for ; Mon, 11 Apr 2005 08:44:23 +0000 (GMT) Received: from mail.logos.hr (gates.logos.hr [213.149.47.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E5DA43D3F for ; Mon, 11 Apr 2005 08:44:22 +0000 (GMT) (envelope-from sime@logos.hr) Received: from localhost (localhost.logos.hr [127.0.0.1]) by mail.logos.hr (Postfix) with ESMTP id C869326D094 for ; Mon, 11 Apr 2005 10:44:19 +0200 (CEST) Received: from mail.logos.hr ([127.0.0.1]) by localhost (mail.logos.hr [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31684-02-3 for ; Mon, 11 Apr 2005 10:43:53 +0200 (CEST) Received: by mail.logos.hr (Postfix, from userid 34062) id 3D9E326D05D; Mon, 11 Apr 2005 10:43:53 +0200 (CEST) Message-Id: <20050411084353.3D9E326D05D@mail.logos.hr> Date: Mon, 11 Apr 2005 10:43:53 +0200 (CEST) From: Simun Mikecin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/79783: ata: hw.ata.atapi_dma=1 reduces HDD writing transfer rate X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Simun Mikecin List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Apr 2005 08:50:22 -0000 >Number: 79783 >Category: kern >Synopsis: ata: hw.ata.atapi_dma=1 reduces HDD writing transfer rate >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Apr 11 08:50:22 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Simun Mikecin >Release: FreeBSD 5.4-STABLE i386 >Organization: >Environment: System: FreeBSD data.home.hr 5.4-STABLE FreeBSD 5.4-STABLE #0: Wed Apr 6 20:26:25 CEST 2005 root@data.home.hr:/var/obj/usr/src/sys/DATA i386 Reproduced on two machines both using 5.4-STABLE. Tried with GENERIC and custom kernel. #1) Laptop Toshiba Qosmio F10 (Centrino, Intel 855/ICH4 chipset) with: atapci0: port 0xbfa0-0xbfaf,0x376,0x170-0x177,0x3f6,0x1f0-0x1f77 irq 11 at device 31.1 on pci0 ad0: 57137MB [116088/16/63] atata0-master UDMA100 acd0: DVDR at ata1-master UDMA33 #2) Pentium 4 desktop PC, Intel 875P/ICH5 chipset with: atapci0: port 0xf000-0xf00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0 ad0: 176700MB [359010/16/63] at ata0-master UDMA100 acd0: DVDROM at ata0-slave UDMA66 acd1: DVDR at ata1-master UDMA33 >Description: When hw.ata.atapi_dma is set to 1, HDD writing transfer rate reduces to 16MB/s. Reading is not affected. Optical drives are not being used while testing. Using: sync && dd if=/dev/zero of=foo bs=1m count=100 results are: Machine #1) with hw.ata.atapi_dma=1: 104857600 bytes transferred in 6.521342 secs (16079144 bytes/sec) Machine #1) with hw.ata.atapi_dma=0: 104857600 bytes transferred in 3.586123 secs (29239823 bytes/sec) Machine #2) with hw.ata.atapi_dma=1: 104857600 bytes transferred in 6.532039 secs (16052813 bytes/sec) Machine #2) with hw.ata.atapi_dma=0: 104857600 bytes transferred in 2.160149 secs (48541835 bytes/sec) >How-To-Repeat: Try: sync && dd if=/dev/zero of=foo bs=1m count=100 >Fix: Set hw.ata.atapi_dma to 0. But that could break writing to optical media. >Release-Note: >Audit-Trail: >Unformatted: