From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965096Ab0COOtS (ORCPT ); Mon, 15 Mar 2010 10:49:18 -0400 Received: from terminus.zytor.com ([198.137.202.10]:36659 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965030Ab0COOtQ (ORCPT ); Mon, 15 Mar 2010 10:49:16 -0400 Message-ID: <4B9E489F.6040709@zytor.com> Date: Mon, 15 Mar 2010 07:47:59 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Thunderbird/3.0.3 MIME-Version: 1.0 To: Denys Vlasenko CC: david@lang.hm, Arnd Bergmann , Tejun Heo , "linux-ide@vger.kernel.org" , lkml , Daniel Taylor , Jeff Garzik , Mark Lord , tytso@mit.edu, hirofumi@mail.parknet.co.jp, Andrew Morton , Alan Cox , irtiger@gmail.com, Matthew Wilcox , aschnell@suse.de, knikanth@suse.de, jdelvare@suse.de Subject: Re: ATA 4 KiB sector issues. References: <4B947393.2050002@kernel.org> <201003150326.22262.vda.linux@googlemail.com> <201003151056.05833.vda.linux@googlemail.com> In-Reply-To: <201003151056.05833.vda.linux@googlemail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/15/2010 02:56 AM, Denys Vlasenko wrote: > I think Linux already is doing this. The problem is, in many cases > OS can't possibly do this, short of using a specially designed > filesystem. > > If you untar a Linux kernel source tarball on a seriously > fragmented ext2 filesystem, there will be a lot of discontiguous > and/or misaligned writes smaller than 256K. > Only smart firmware can help in this case. Yes, but guess what... there is a lot of stupid firmware out there, and there are lots of RAID arrays, and so on. "Seriously fragmented" means you have already lost in the first place. This doesn't change the fact that this is a real issue and that that is the major reason why aligning to 63*4K is a bad idea. -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.