Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Aug 2001 18:50:03 -0700 (PDT)
From:      Chih-Chang Hsieh <cch@cc.kmu.edu.tw>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: i386/29315: Promise ATA100 UDMA5 works incorrectly
Message-ID:  <200108070150.f771o3K35960@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/29315; it has been noted by GNATS.

From: Chih-Chang Hsieh <cch@cc.kmu.edu.tw>
To: freebsd-gnats-submit@FreeBSD.org, cch@kmu.edu.tw
Cc:  
Subject: Re: i386/29315: Promise ATA100 UDMA5 works incorrectly
Date: Tue, 07 Aug 2001 09:34:28 +0800

 3o,O MIME .f&!*:&h$y,q6l%s!C
 --------------08D908B015FCF9827134B2E2
 Content-Type: text/plain; charset=big5
 Content-Transfer-Encoding: 7bit
 
 I have done several tests by the script in attachment.
 The results of these tests show that: (simply checked by "grep MD5
 chkcp.txt")
 
 1. Intel ICH2 ATA driver (UDMA5 mode) + Seagate-ST320413A -> OK
 please see:
 http://cc.kmu.edu.tw/~cch/FreeBSD/ata/intel-ich2-udma5-hd.txt
 
 2.Promise ATA100 driver (UDMA5 mode) + IBM-DTLA-307030 -> FAIL
 (It sometimes works correctly,  but incorrectly at most time.)
 please see: http://cc.kmu.edu.tw/~cch/FreeBSD/ata/promise-udma5-hd.txt
 
 3. Promise ATA100 driver (UDMA5 mode) + IBM-DTLA-307030 * 2 (vinum -
 raid0) -> FAIL
 please see:
 http://cc.kmu.edu.tw/~cch/FreeBSD/ata/promise-udma5-vinum0.txt
 
 4. Promise ATA100 driver (PIO mode) + IBM-DTLA-307030 *2 (vinum-raid0)
 -> OK
 (But it's too too slow!)
 please see: http://cc.kmu.edu.tw/~cch/FreeBSD/ata/promise-pio-vinum0.txt
 
 Test 1 has been done on machine PC-A.
 Test 2 has been done on machine PC-B.
 Test3 and Test4 has been done on PC-C.
 
 PC-B and PC-C have the same hardware configuration except
 different number of hard disks.
 
 --------------08D908B015FCF9827134B2E2
 Content-Type: application/x-sh;
  name="chkcp.sh"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="chkcp.sh"
 
 #!/bin/sh
 
 #
 # This script tests large file copying on FreeBSD/i386 with ATA hardisk
 #
 sample=/kernel.GENERIC
 nrun=10
 sleep_unit=0
 src=fsrc.tmp
 dst=fdst.tmp
 log=chkcp.txt
 
 echo "Large File Copy Testing begins (`date`)" > $log
 
 # get some of hardware and file system configuration
 #
 echo "" >> $log
 grep -i ata /var/run/dmesg.boot >> $log
 echo "" >> $log
 mount >> $log
 echo "" >> $log
 df >> $log
 echo "" >> $log
 sysctl -a | grep hw.ata >> $log
 
 # tests for file size: (sample file size) * {10,100,1000}
 #
 for count in 10 100 1000 
 do
 
 	# generate source file for copying
 	#
 	echo "" >> $log
 	cat $sample > $src
 	i=0
 	while [ $i -lt $count ]
 	do 
 		cat $sample >> $src
 		i=`expr $i + 1`
 	done
 	echo "src: `ls -l $src`" >> $log
 	md5 $src >> $log
 	echo "" >> $log
 	#sync;sleep 60;sync;sleep 30
 
 	# tests copying
 	#
 	i=0
 	while [ $i -lt $nrun ]
 	do
 		echo "-- Run $i begins (`date`)" >> $log
 		echo "	- cp begins (`date`)" >> $log
 		cp $src $dst
 		echo "	- cp ends (`date`)" >> $log
 		#sync
 		st=`expr $i \* $sleep_unit` 
 		#sync
 		echo "	sleep $st seconds" >> $log
 		sleep $st
 		echo "	dst: `ls -l $dst`" >> $log
 		echo "	- md5 begins (`date`)" >> $log
 		echo "	`md5 $dst`" >> $log
 		echo "	- md5 ends (`date`)" >> $log
 		#sync
 		echo "-- Run $i ends (`date`)" >> $log
 		echo "" >> $log
 		i=`expr $i + 1`
 	done
 done
 echo "Large File Copy Testing ends (`date`)" >> $log
 
 --------------08D908B015FCF9827134B2E2--
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108070150.f771o3K35960>