From owner-freebsd-stable@FreeBSD.ORG Tue Jan 22 17:17:36 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0F5C16A419 for ; Tue, 22 Jan 2008 17:17:36 +0000 (UTC) (envelope-from dds@FreeBSD.org) Received: from blue.servers.aueb.gr (blue.servers.aueb.gr [195.251.255.132]) by mx1.freebsd.org (Postfix) with ESMTP id 607E613C45B for ; Tue, 22 Jan 2008 17:17:36 +0000 (UTC) (envelope-from dds@FreeBSD.org) Received: from [195.251.249.159] ([::ffff:195.251.249.142]) by blue.servers.aueb.gr with esmtp; Tue, 22 Jan 2008 19:09:08 +0200 id 000D11A5.47962334.00002E88 Message-ID: <479622BC.30101@FreeBSD.org> Date: Tue, 22 Jan 2008 19:07:08 +0200 From: Diomidis Spinellis User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4) Gecko/20070509 SeaMonkey/1.1.2 MIME-Version: 1.0 To: freebsd-stable@FreeBSD.ORG Content-Type: text/plain; charset=ISO-8859-7; format=flowed Content-Transfer-Encoding: quoted-printable Cc: Subject: Low NTFS read performance X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jan 2008 17:17:36 -0000 I can't get an Ultrium-2 LTO drive to stream, and (I think) I've traced=20 the problem to the read performance of the USB2-attached NTFS disk, and=20 specifically the NTFS filesystem. I'm reading a single 190GB file, and=20 the throughput I'm getting is 5.4MB/s: $ dd if=3Dad2c.dump of=3D/dev/null bs=3D1M ^=D4 load: 0.04 cmd: dd 1434 [biord] 0.00u 4.78s 2% 1672k 610+0 records in 610+0 records out 639631360 bytes transferred in 117.937613 secs (5423472 bytes/sec) The is an old but relatively fast machine CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (2407.18-MHz 686-class CPU) running 7.0-RC1: $ uname -a FreeBSD icarian.dmst.aueb.gr 7.0-RC1 FreeBSD 7.0-RC1 #0: Mon Dec 24=20 12:18:24 UTC 2007=20 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 and the load during the read remains comfortably low: $ uptime 6:34PM up 3:50, 3 users, load averages: 0.09, 0.04, 0.04 Reading from the raw device tripples the performance: # dd if=3D/dev/da0s1 bs=3D1m of=3D/dev/null 533725184 bytes transferred in 34.777460 secs (15346871 bytes/sec) bringing it on par with what I get from Windows (on a different machine):= F:\>dd if=3Dother.20051007.tgz of=3D/dev/null bs=3D1M 1231030919 bytes (1.2 GB) copied, 82.845 s, 14.9 MB/s These are some (vaguely) relevant parts of dmesg: ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb2: EHCI version 0.95 usb2: companion controllers, 3 ports each: usb0 usb1 usb2: on ehci0 usb2: USB revision 2.0 uhub2: on usb2 uhub2: 5 ports with 5 removable, self powered [...] ad0: 76319MB at ata0-master UDMA100 acd0: DVDROM at ata1-master UDMA33 acd1: DVDR at ata1-slave UDMA33 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-0 devic= e da0: 40.000MB/s transfers da0: 305245MB (625142448 512 byte sectors: 255H 63S/T 38913C) GEOM_LABEL: Label for provider da0s1 is ntfs/Backup. Trying to mount root from ufs:/dev/ad0s2a GEOM_LABEL: Label ntfs/Backup removed. GEOM_LABEL: Label for provider da0s1 is ntfs/Backup. I'd appreciate any suggestions you may have. Diomidis Spinellis - http://www.spinellis.gr