From owner-freebsd-fs@FreeBSD.ORG Sat Feb 7 05:56:31 2004 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 43D1A16A4CE for ; Sat, 7 Feb 2004 05:56:31 -0800 (PST) Received: from rdsnet.ro (smtp.rdsnet.ro [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6519143D1F for ; Sat, 7 Feb 2004 05:56:30 -0800 (PST) (envelope-from itetcu@apropo.ro) Received: (qmail 14676 invoked from network); 7 Feb 2004 13:56:28 -0000 Received: from unknown (HELO it.buh.cameradicommercio.ro) (81.196.25.19) by mail.rdsnet.ro with SMTP; 7 Feb 2004 13:56:28 -0000 Date: Sat, 7 Feb 2004 15:58:19 +0200 From: Ion-Mihai Tetcu To: freebsd-fs@freebsd.org Message-Id: <20040207155819.186335d4@it.buh.cameradicommercio.ro> X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Painful speed for copying to fat32 partitions with small cluster size. X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Feb 2004 13:56:31 -0000 Hi, Does anyone know why this happens or what to do ? Setup: UDMA133 primary master, UFS2; UDMA100 secondary master, FAT32. Copying to FAT32 partitions is very slow with small cluster sizes (I was copying some 300 - 700MB files): FAT32 clustersize=4K 500KB/s FAT32 clustersize=32K 3.5MB/s FAT32 clustersize=64K 6.2MB/s FAT32 clustersize=128K 6.4MB/s FAT16 6.5MB/s Reading speed is the same. Same experience for newfs_msdos: on a 10G partition: itetcu@it> /home/itetcu [16:23:40] 0 # newfs_msdos -F32 -b32768 /dev/ad2s2 /dev/ad2s2: 20959616 sectors in 327494 FAT32 clusters (32768 bytes/cluster) bps=512 spc=64 res=32 nft=2 mid=0xf0 spt=63 hds=16 hid=0 bsec=20964825 bspf=2559 rdcl=2 infs=1 bkbs=2 itetcu@it> /home/itetcu [16:24:51] 0 # itetcu@it> /home/itetcu [16:28:56] 1 # newfs_msdos -F32 -b65536 /dev/ad2s2 /dev/ad2s2: 20962176 sectors in 163767 FAT32 clusters (65536 bytes/cluster) bps=512 spc=128 res=32 nft=2 mid=0xf0 spt=63 hds=16 hid=0 bsec=20964825 bspf=1280 rdcl=2 infs=1 bkbs=2 itetcu@it> /home/itetcu [16:29:23] 0 # Newfs_msdos on a 30G partition: itetcu@it> /home/itetcu [16:31:40] 1 # newfs_msdos -F32 -b65536 /dev/ad2s1 /dev/ad2s1: 167746176 sectors in 1310517 FAT32 clusters (65536 bytes/cluster) bps=512 spc=128 res=32 nft=2 mid=0xf0 spt=63 hds=16 hid=0 bsec=167766732 bspf=10239 rdcl=2 infs=1 bkbs=2 itetcu@it> /home/itetcu [16:34:48] 0 # The same with 4K clusters takes about 50 minutes ! -- IOnut Unregistered ;) FreeBSD user