From: Marc Perkel <mperkel@yahoo.com>
To: Michael Tokarev <mjt@tls.msk.ru>,
Jan Engelhardt <jengelh@linux01.gwdg.de>
Cc: dean gaudet <dean@arctic.org>, Marc Perkel <mperkel@yahoo.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
linux-raid@vger.kernel.org
Subject: Re: Raid 10 Problems?
Date: Thu, 8 Mar 2007 16:58:03 -0800 (PST) [thread overview]
Message-ID: <464915.77231.qm@web52507.mail.yahoo.com> (raw)
In-Reply-To: <45F09698.7090606@tls.msk.ru>
--- Michael Tokarev <mjt@tls.msk.ru> wrote:
> 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
>
I assume that if a block is already dirty then that is
cached somewhere in memory so you aren't writing to
the bitmap unless you're changing it for clean to
dirty? If that's the case then I would think that
writing to the map wouldn't be that expensive?
____________________________________________________________________________________
Now that's room service! Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097
next prev parent reply other threads:[~2007-03-09 0:58 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-04 16:25 Raid 10 Problems? Marc Perkel
2007-03-04 17:33 ` Jan Engelhardt
2007-03-04 23:10 ` Marc Perkel
2007-03-05 2:13 ` Jan Engelhardt
2007-03-05 3:17 ` Marc Perkel
2007-03-05 3:32 ` Jan Engelhardt
2007-03-05 3:37 ` Marc Perkel
2007-03-05 12:31 ` Jan Engelhardt
2007-03-05 15:59 ` Marc Perkel
2007-03-05 16:04 ` Jan Engelhardt
2007-03-07 18:20 ` dean gaudet
2007-03-08 5:16 ` Jan Engelhardt
2007-03-08 23:04 ` Michael Tokarev
2007-03-09 0:58 ` Marc Perkel [this message]
2007-03-06 16:48 ` Bill Davidsen
2007-03-06 19:41 ` Jan Engelhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=464915.77231.qm@web52507.mail.yahoo.com \
--to=mperkel@yahoo.com \
--cc=dean@arctic.org \
--cc=jengelh@linux01.gwdg.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=mjt@tls.msk.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox