From dd1968@mail.ru  Sat Nov 22 10:29:43 2003
Return-Path: <dd1968@mail.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 361F616A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 22 Nov 2003 10:29:43 -0800 (PST)
Received: from f12.mail.ru (f12.mail.ru [194.67.57.42])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 43D2843FCB
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 22 Nov 2003 10:29:42 -0800 (PST)
	(envelope-from dd1968@mail.ru)
Received: from mail by f12.mail.ru with local 
	id 1ANcVp-000IKK-00
	for FreeBSD-gnats-submit@freebsd.org; Sat, 22 Nov 2003 21:29:41 +0300
Received: from [194.186.29.253] by win.mail.ru with HTTP;
	Sat, 22 Nov 2003 21:29:40 +0300
Message-Id: <E1ANcVp-000IKK-00.dd1968-mail-ru@f12.mail.ru>
Date: Sat, 22 Nov 2003 21:29:41 +0300
From: =?koi8-r?Q?=22?=dd dd=?koi8-r?Q?=22=20?= <dd1968@mail.ru>
Reply-To: =?koi8-r?Q?=22?=dd dd=?koi8-r?Q?=22=20?= <dd1968@mail.ru>
To: FreeBSD-gnats-submit@freebsd.org
Subject: I/O operations freeze system when perform file transfer 

>Number:         59594
>Category:       kern
>Synopsis:       [hang] I/O operations freeze system when perform file transfer
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 22 10:40:06 PST 2003
>Closed-Date:    Sat Mar 01 20:17:15 UTC 2008
>Last-Modified:  Sat Mar 01 20:17:15 UTC 2008
>Originator:     dmitry
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
SPEC
>Environment:
System: FreeBSD mail.spec.ru 5.1-RELEASE FreeBSD 5.1-RELEASE #4: Tue Nov 18 22:55:56 GMT 2003 diwil@mail.spec.ru:/usr/src/sys/i386/compile/SERVER i386

>Description:
        ASUS m/b with Intel Celeron 850 MHz.
        I've got 2 ATA UDMA100 Samsung disks.
        Each of them connected to the its own controller.

        Some of Boot messages:
        ...
        atapci0: <VIA 82C686B UDMA100 controller> port 0xd800-0xd80f at device 4.1 on pci0
        ata0: at 0x1f0 irq 14 on atapci0
        ata1: at 0x170 irq 15 on atapci0
        ...
        ad0: 9732MB <SAMSUNG SV1021H> [19774/16/63] at ata0-master UDMA100
        ad2: 76351MB <SAMSUNG SV0802N> [155127/16/63] at ata1-master UDMA100
        ad0: UDMA ICRC error cmd=write fsbn 786815 of 786815-786846 retrying
        ad0: UDMA ICRC error cmd=write fsbn 2473791 of 2473791-2473822 retrying
        ad0: UDMA ICRC error cmd=write fsbn 2473791 of 2473791-2473822 retrying
        ad0: UDMA ICRC error cmd=write fsbn 2473791 of 2473791-2473822 retrying
        ad0: UDMA ICRC error cmd=write fsbn 2473791 of 2473791-2473822 falling back to PIO mode
        ad2: UDMA ICRC error cmd=read fsbn 107260415 of 107260415-107260418 retrying
        ad2: UDMA ICRC error cmd=read fsbn 107260415 of 107260415-107260418 retrying
        ad2: UDMA ICRC error cmd=read fsbn 107260415 of 107260415-107260418 retrying
        ad2: UDMA ICRC error cmd=read fsbn 107260415 of 107260415-107260418 falling back to PIO mode

        Then system runs and looks stable until I try to perform large file transfers between 2 disks.
        When I do
          cp /mountpoint1/largefile /mountpoint2/
        system freezes after about 10M transfered.
        If transfer a bunch of small files (of overall size > 10M) it freezes as well.

        4.7-STABLE installed on the same hardware does not freeze at all.

>How-To-Repeat:
        Repeats constantly.
>Fix:
        Sometimes 'atacontrol mode 0 udma100 udma100 ; atacontrol mode 1 udma100 udma100` helps for one transfer
        but then ata falls into PIO mode and next transfer hangs everything.



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: kris 
State-Changed-When: Mon Nov 24 01:34:44 PST 2003 
State-Changed-Why:  
Does the problem persist in 5.2-BETA, which has a rewritten 
ATA driver? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=59594 

From: Hexren <me@hexren.net>
To: freebsd-gnats-submit@FreeBSD.org, dd1968@mail.ru
Cc:  
Subject: Re: kern/59594: I/O operations freeze system when perform file transfer
Date: Tue, 17 Feb 2004 16:34:50 +0100

 The same Problem happens under Production Release: 4.9.
 Interestingly also with a samsung Disc a Maxtor Discs on the same IDE
 cable is doing well in UDMA.
 
 Hexren
 

From: Eugene Grosbein <eugen@grosbein.pp.ru>
To: bug-followup@freebsd.org
Cc: sos@freebsd.org, dmitry <dd1968@mail.ru>, stable@freebsd.org
Subject: Re: kern/59594: I/O operations freeze system when perform file transfer
Date: Thu, 19 Feb 2004 00:28:41 +0700

 Also note http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/60526,
 these PRs may be related.
 
 Eugene Grosbein
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Sat Mar 1 20:16:49 UTC 2008 
State-Changed-Why:  
Feedback timeout (> 1 year). 

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