From owner-freebsd-current@FreeBSD.ORG Sat Sep 6 08:22:03 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 048C916A4BF for ; Sat, 6 Sep 2003 08:22:03 -0700 (PDT) Received: from multiweb.ca (modemcable081.38-200-24.mtl.mc.videotron.ca [24.200.38.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6E0943FE5 for ; Sat, 6 Sep 2003 08:22:01 -0700 (PDT) (envelope-from amyfoub@videotron.ca) Received: from [192.168.1.101] (pc101.multiweb.ca [192.168.1.101]) by multiweb.ca (8.12.9/8.12.6) with ESMTP id h86FLxXB049206 for ; Sat, 6 Sep 2003 11:22:00 -0400 (EDT) (envelope-from amyfoub@videotron.ca) From: Guillaume To: freebsd-current@freebsd.org Content-Type: text/plain Message-Id: <1062861719.2761.35.camel@guillaume.multiweb.ca> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Sat, 06 Sep 2003 11:21:59 -0400 Content-Transfer-Encoding: 7bit Subject: acd0 vs cd0 (ATAPICAM) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Sep 2003 15:22:03 -0000 Hi, I'm running FreeBSD 5-CURRENT (Aug. 28 2003) on a P3 733MHz, 768MB ram with a LG DVD-RW/DVD-RAM burner. I would like to know why ATAPICAM is so slow with my system. DMA is enabled for my ATAPI burner. When I'm copying something using cd0, my system is very slow. (e.g. my mouse moves very very slowly) Here is the results of my tests: Using mkisofs with acd0: ------------------------ # mount_cd9660 /dev/acd0 /dvdrom # time mkisofs -dvd-video -o /divers/acd0.iso /dvdrom/ 0.24% done, estimate finish Fri Sep 5 22:33:31 2003 0.48% done, estimate finish Fri Sep 5 22:33:30 2003 ... 99.54% done, estimate finish Fri Sep 5 22:26:55 2003 99.78% done, estimate finish Fri Sep 5 22:26:55 2003 Total translation table size: 0 Total rockridge attributes bytes: 0 Total directory bytes: 4096 Path table size(bytes): 42 Max brk space used c2e4 2064560 extents written (4032 Mb) real 14m2.575s user 0m16.109s sys 2m43.673s Using mkisofs with cd0 (ATAPICAM): ---------------------------------- # mount_cd9660 /dev/cd0 /dvdrom # time mkisofs -dvd-video -o /divers/cd0.iso /dvdrom/ 0.24% done, estimate finish Fri Sep 5 23:01:41 2003 0.48% done, estimate finish Fri Sep 5 22:58:14 2003 ... 99.54% done, estimate finish Fri Sep 5 22:59:20 2003 99.78% done, estimate finish Fri Sep 5 22:59:21 2003 Total translation table size: 0 Total rockridge attributes bytes: 0 Total directory bytes: 4096 Path table size(bytes): 42 Max brk space used c2e4 2064560 extents written (4032 Mb) real 25m9.761s user 0m22.586s sys 3m13.866s Using dd with acd0 ------------------ root@guillaume# time dd if=/dev/acd0 of=/divers/lepianiste.img bs=2k 2064816+0 records in 2064816+0 records out 4228743168 bytes transferred in 2646.410996 secs (1597916 bytes/sec) real 44m6.434s user 0m5.517s sys 6m27.386s Using dd with cd0 (ATAPICAM) ---------------------------- My computer reboot after ~ 15 or 20 min. Output from dmesg: ------------------ ... ad0: 29325MB [59582/16/63] at ata0-master UDMA66 ad1: 19595MB [39813/16/63] at ata0-slave UDMA66 acd0: DVDR at ata1-master UDMA33 cd0 at ata1 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: cd present [2064816 x 2048 byte records] Mounting root from ufs:/dev/ad0s2a ... Thanks Guillaume amyfoub@videotron.ca