Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 28 Jun 2002 19:58:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 28 Jun 2002 19:58:40 -0400 Received: from quechua.inka.de ([212.227.14.2]:31758 "EHLO mail.inka.de") by vger.kernel.org with ESMTP id ; Fri, 28 Jun 2002 19:58:39 -0400 From: Bernd Eckenfels To: linux-kernel@vger.kernel.org Subject: Re: raid1 performance In-Reply-To: <20020502183758.Q31556@unthought.net> X-Newsgroups: ka.lists.linux.kernel User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (Linux/2.0.39 (i686)) Message-Id: Date: Sat, 29 Jun 2002 02:01:00 +0200 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 918 Lines: 24 In article <20020502183758.Q31556@unthought.net> you wrote: >> No, you just distribute the ready round robin, this means each disk has only >> half the seeks it had before. > No, this is the way it was done a long time ago. > It turns out to be an incredibly bad idea. In fact, it is the most CPU-efficient > way of guaranteeing the largest average seek times on your disks ;) > The RAID-1 code now looks at which disk worked closest to the wanted position > last, and picks that disk for the seek. Thats right, it is done on the distance in sector numbers. Thats a simple compare, not sure if one could do that better. raid1.c:raid1_read_balance() Greetings Bernd - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/