From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1NeCXb-0008NK-9N for garchives@archives.gentoo.org; Sun, 07 Feb 2010 19:11:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E34E2E0ABB for ; Sun, 7 Feb 2010 19:11:30 +0000 (UTC) Received: from mail-pz0-f199.google.com (mail-pz0-f199.google.com [209.85.222.199]) by pigeon.gentoo.org (Postfix) with ESMTP id 0E714E07FE for ; Sun, 7 Feb 2010 18:38:40 +0000 (UTC) Received: by pzk37 with SMTP id 37so3416067pzk.10 for ; Sun, 07 Feb 2010 10:38:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=gQJJIpw9e8nMYHE5hMs+P9Eyjgg/siIJIcNyjAL6Bt8=; b=P6ysIJpBwYAdYXQ+E6oDrr1WtAQFdBZQXTyKO/r9i7fYiUXMzoZM/NYyFPGi0ms/Pt Kv4GzfY2Ki9YwlZS1kTXBXdm5+KBlsPf2zA+a8gbkwChQDhGoLHupmCPoaGcwGishB2X vLQYCwCZws9HXewL2HRXIO1HYwOE8JNdJfyAI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Guvf3dok8pV/3scI5lHXaE2l7Eqph+doc207COaRJCfQ1u9wGmd4qdknRt+t4vpTTu /XxzX3Mhr515kjK6Bj3J4HHnx2u2qdZ0OwoPHpcSqCMxS8IHmwaYWoXnrQnp8P4gJO4k gRdcpNbP6/EWfYJ4ykvpZP90HOAcG23yUFDKA= Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.142.3.24 with SMTP id 24mr1513553wfc.264.1265567920498; Sun, 07 Feb 2010 10:38:40 -0800 (PST) In-Reply-To: <201002072030.43425.b3nder@yandex.ru> References: <5bdc1c8b1002070827i14f59047k39a695900ebe9889@mail.gmail.com> <201002072030.43425.b3nder@yandex.ru> Date: Sun, 7 Feb 2010 10:38:40 -0800 Message-ID: <5bdc1c8b1002071038q7f9d379fm4b3f4fffecfaba17@mail.gmail.com> Subject: Re: [gentoo-user] 1-Terabyte drives - 4K sector sizes? -> bar performance so far From: Mark Knecht To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: c3c3a94b-2041-4818-a4a7-d7df5005c780 X-Archives-Hash: 12167a2aff9d40bb1791a1b93a21ac30 On Sun, Feb 7, 2010 at 9:30 AM, Alexander wrote: > On Sunday 07 February 2010 19:27:46 Mark Knecht wrote: > >> =C2=A0 =C2=A0Every time there is an apparent delay I just see the hard d= rive >> light turned on solid. That said as far as I know if I wait for things >> to complete the data is there but I haven't tested it extensively. >> >> =C2=A0 =C2=A0Is this a bad drive or am I somehow using it incorrectly? >> > > Is there any related info in dmesg? > > No, nothing in dmesg at all. Here are two tests this morning. The first is to the 1T drive, the second is to a 120GB drive I'm currently using as a system drive until I work this out: gandalf TestMount # time tar xjf /mnt/TestMount/portage-latest.tar.bz2 -C /mnt/TestMount/usr real 8m13.077s user 0m8.184s sys 0m2.561s gandalf TestMount # mark@gandalf ~ $ time tar xjf /mnt/TestMount/portage-latest.tar.bz2 -C /home/mark/Test_usr/ real 0m39.213s user 0m8.243s sys 0m2.135s mark@gandalf ~ $ 8 minutes vs 39 seconds! The amount of data written appears to be the same: gandalf ~ # du -shc /mnt/TestMount/usr/ 583M /mnt/TestMount/usr/ 583M total gandalf ~ # mark@gandalf ~ $ du -shc /home/mark/Test_usr/ 583M /home/mark/Test_usr/ 583M total mark@gandalf ~ $ I did some reading at the WD site and it seems this drive does use the 4K sector size. The way it's done is the addressing on cable is still 512 byte 'user sectors', but they are packed into 4K physical sectors and internal hardware does the mapping. I suspect the performance issue is figuring out how to get the file system to keep things on 4K boundaries. I assume that's what the 4K block size is for when building the file system but I need to go find out more about that. I did not select it specifically. Maybe I need to. Thanks, Mark