From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Rees Subject: Re: raind-1 resync speed slow down to 50% by the time it finishes Date: Tue, 4 Aug 2009 16:42:10 -0700 Message-ID: <72dbd3150908041642i64583624q7574cafcb8bac1a0@mail.gmail.com> References: <20090730101846.GA17332@rap.rap.dk> <72dbd3150907301311t5abef2fai91cdae154b987d33@mail.gmail.com> <20090731175455.GA11463@rap.rap.dk> <72dbd3150907311310s2ccfc379u2c23fe724007b9bb@mail.gmail.com> <20090801130043.GA24915@rap.rap.dk> <72dbd3150908010813n3aed3804s3a0c0265cb2c2c6d@mail.gmail.com> <20090801175734.GB27831@rap.rap.dk> <72dbd3150908041521q1d71994cl25159d5ec3e7f326@mail.gmail.com> <4A78C1AE.9040002@anonymous.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4A78C1AE.9040002@anonymous.org.uk> Sender: linux-raid-owner@vger.kernel.org To: John Robinson Cc: =?ISO-8859-1?Q?Keld_J=F8rn_Simonsen?= , linux-raid@vger.kernel.org List-Id: linux-raid.ids On Tue, Aug 4, 2009 at 4:18 PM, John Robinson wrote: > On 04/08/2009 23:21, David Rees wrote: >> Near layout, 4 disks, 2 copies: >> a b c d >> 0 0 1 1 >> 2 2 3 3 >> 4 4 5 5 >> 6 6 7 7 >> >> Far layout, 4 disks, 2 copies >> a b c d >> 0 1 2 3 >> 4 5 6 7 >> 7 0 1 2 >> 3 4 5 6 > > But I don't think I'd want reads isolated to the first half of the disc. If > I wanted a block read, and the drive which has its near copy is already > busy, but the drive with the far copy is idle, I'd probably rather the read > came from the far copy, than wait for the drive with the near copy to come > free. > > For example, say I want block 0, and there's a write pending for block 3. I > want block 0 from drive b now, not drive a later. In that case, it seems that it should be fastest to retrieve it from the idle disk b, even if it has to go to the slower half of the disk. After all, any write will take at least as long as the read will. > Or will I actually get more IOPS by waiting, if I'm doing a lot of small > reads and writes? I doubt it - if you're doing a lot of small reads and writes, during the writes the heads will be frequently seeking to the slow half of the disk, anyway. Of course, benchmarks would tell for sure. ;-) -Dave