From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030865AbXCHXFF (ORCPT ); Thu, 8 Mar 2007 18:05:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030864AbXCHXFF (ORCPT ); Thu, 8 Mar 2007 18:05:05 -0500 Received: from hobbit.corpit.ru ([81.13.94.6]:22842 "EHLO hobbit.corpit.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030863AbXCHXFB (ORCPT ); Thu, 8 Mar 2007 18:05:01 -0500 Message-ID: <45F09698.7090606@tls.msk.ru> Date: Fri, 09 Mar 2007 02:04:56 +0300 From: Michael Tokarev Organization: Telecom Service, JSC User-Agent: Icedove 1.5.0.9 (X11/20061220) MIME-Version: 1.0 To: Jan Engelhardt CC: dean gaudet , Marc Perkel , Linux Kernel Mailing List , linux-raid@vger.kernel.org Subject: Re: Raid 10 Problems? References: <708349.8753.qm@web52513.mail.yahoo.com> In-Reply-To: X-Enigmail-Version: 0.94.1.0 OpenPGP: id=4F9CF57E Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Jan Engelhardt wrote: [] > The other thing is, the bitmap is supposed to be written out at intervals, > not at every write, so the extra head movement for bitmap updates should > be really low, and not making the tar -xjf process slower by half a minute. > Is there a way to tweak the write-bitmap-to-disk interval? Perhaps > something in /sys or ye olde /proc. Maybe linux-raid@ knows 8) Hmm. Bitmap is supposed to be written before actual data write, to mark the to-be-written areas of the array as "being written", so that those areas can be detected and recovered in case of power failure during actual write. So in case of writing to a clean array, head movement always takes place - first got to bitmap area, and second to the actual data area. That "written at intervals" is about clearing the bitmaps after some idle time. In other words, dirtying bitmap bits occurs right before actual write, and clearing bits occurs at intervals. Sure, if you write to (or near) the same place again and again, without giving a chance to md subsystem to actually clean the bitmap, there will be no additional head movement. And that means, for example, tar -xjf sometimes, since filesystem will place the files being extracted close to each other, thus hitting the same bit in the bitmap, hence md will skip repeated bitmap updates in this case. /mjt