Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mbgre-0005pF-Jx for mharc-grub-devel@gnu.org; Thu, 13 Aug 2009 16:25:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mbgrb-0005oC-Vb for grub-devel@gnu.org; Thu, 13 Aug 2009 16:25:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MbgrW-0005lg-GL for grub-devel@gnu.org; Thu, 13 Aug 2009 16:25:31 -0400 Received: from [199.232.76.173] (port=40320 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MbgrW-0005lW-4T for grub-devel@gnu.org; Thu, 13 Aug 2009 16:25:26 -0400 Received: from mail-bw0-f218.google.com ([209.85.218.218]:45054) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MbgrV-0003ui-AR for grub-devel@gnu.org; Thu, 13 Aug 2009 16:25:25 -0400 Received: by bwz18 with SMTP id 18so807352bwz.31 for ; Thu, 13 Aug 2009 13:25:15 -0700 (PDT) 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=okUd/dQVC+XqAQ6oZBmd1movaQSPdmohHOB4lYUe5oM=; b=Q4/hTePgkb3dOujkf/niBuAw3UkIA5h8SsdGn8CxPTX3f1dmCMPrq+nEnaiJz3s9Yy VRHevJmuY5+4erHGt3pRyaY1d+jyqm83rlI4PZXEzwDkeLV9ZKd+YFJzYIxlzLVpsK1G lEejcJSEX7uzsTVSAB3zC1YWSmeJMM1pUfyMM= 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=QveuaCDkn4dO5wwPYdcjpcyVnRv2liI+McdaroteCXzltMQ3HLjM2g7bWmH0wa6CUh CIBfoe/UYDRLjp0uhVpVq2pkcD5awX3skGy10VImdsbt906yUg7DjWwZQOzGKDyqdTtQ W7TGecye/hyy/pI4nH+juMTH32tcUbUOvEsJk= MIME-Version: 1.0 Received: by 10.204.34.14 with SMTP id j14mr833341bkd.55.1250195115115; Thu, 13 Aug 2009 13:25:15 -0700 (PDT) In-Reply-To: <20090813200503.GC22130@thorin> References: <20090813200503.GC22130@thorin> Date: Thu, 13 Aug 2009 22:25:15 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-Greylist: delayed 101700 seconds by postgrey-1.27 at monty-python; Thu, 13 Aug 2009 16:25:25 EDT Subject: Re: [PATCH 2/2] Handle group offsets in UFS1 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Aug 2009 20:25:32 -0000 On Thu, Aug 13, 2009 at 10:05 PM, Robert Millan wrote: > On Thu, Aug 13, 2009 at 06:04:35PM +0200, Vladimir 'phcoder' Serbinenko w= rote: > > This looks a bit odd (a mask applied to an integer?), but if it's really > this way, please go ahead with it. > It's the so-called skewness. Let's say you place inodes on addresses (C/H/S) (0/0/1) and (1/0/1) you first read the metadata at (0/0/1) then you try to fetch the metadata from (0/1/1). Responding to your request harddrive moves the head to cylinder number 1 but it takes some time. Meanwhile the plates have spinned (they are spinning constantly) and perhaps head is above sector (1/0/10) and you need to wait for complete rotation to fetch your sector. If you write inodes at (0/0/1) and (1/0/15) you will need to wait only for 4 sectors. This is called skewness and was an optimisation technique in the past. But now OS doesn't know about physical geometry and so can't do such kind of optimisation. I suppose it's why it's not used anymore for UFS2. I don't know if FreeBSD variant of UFS1 still uses this feature. > Btw, your mailer marked this attachment as application/octet-stream (I ca= n't > context-reply :-( ) > I forgot the extension. Sorry. > -- > Robert Millan > > =A0The DRM opt-in fallacy: "Your data belongs to us. We will decide when = (and > =A0how) you may access your data; but nobody's threatening your freedom: = we > =A0still allow you to remove your data and not access it at all." > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > --=20 Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git