From: Moshe Yudkowsky <moshe@pobox.com>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: linux-raid@vger.kernel.org
Subject: Re: In this partition scheme, grub does not find md information?
Date: Wed, 30 Jan 2008 08:10:34 -0600 [thread overview]
Message-ID: <47A0855A.1010901@pobox.com> (raw)
In-Reply-To: <47A07796.2010805@msgid.tls.msk.ru>
Michael Tokarev wrote:
> You only write to root (including /bin and /lib and so on) during
> software (re)install and during some configuration work (writing
> /etc/password and the like). First is very infrequent, and both
> needs only a few writes, -- so write speed isn't important.
Thanks, but I didn't make myself clear. The preformance problem I'm
concerned about was having different md drives accessing different
partitions.
For example, I can partition the drives as follows:
/dev/sd[abcd]1 -- RAID1, /boot
/dev/sd[abcd]2 -- RAID5, the rest of the file system
I originally had asked, way back when, if having different md drives on
different partitions of the *same* disk was a problem for perfomance --
or if, for some reason (e.g., threading) it was actually smarter to do
it that way. The answer I received was from Iustin Pop, who said :
Iustin Pop wrote:
> md code works better if it's only one array per physical drive,
> because it keeps statistics per array (like last accessed sector,
> etc.) and if you combine two arrays on the same drive these
> statistics are not exactly true anymore
So if I use /boot on its own drive and it's only accessed at startup,
the /boot will only be accessed that one time and afterwards won't cause
problems for the drive statistics. However, if I use put /boot, /bin,
and /sbin on this RAID1 drive, it will always be accessed and it might
create a performance issue.
To return to that peformance question, since I have to create at least 2
md drives using different partitions, I wonder if it's smarter to create
multiple md drives for better performance.
/dev/sd[abcd]1 -- RAID1, the /boot, /dev, /bin/, /sbin
/dev/sd[abcd]2 -- RAID5, most of the rest of the file system
/dev/sd[abcd]3 -- RAID10 o2, a drive that does a lot of downloading (writes)
> For typical filesystem usage, raid5 works good for both reads
> and (cached, delayed) writes. It's workloads like databases
> where raid5 performs badly.
Ah, very interesting. Is this true even for (dare I say it?) bittorrent
downloads?
> What you do care about is your data integrity. It's not really
> interesting to reinstall a system or lose your data in case if
> something goes wrong, and it's best to have recovery tools as
> easily available as possible. Plus, amount of space you need.
Sure, I understand. And backing up in case someone steals your server.
But did you have something specific in mind when you wrote this? Don't
all these configurations (RAID5 vs. RAID10) have equal recovery tools?
Or were you referring to the file system? Reiserfs and XFS both seem to
have decent recovery tools. LVM is a little tempting because it allows
for snapshots, but on the other hand I wonder if I'd find it useful.
>>> Also, placing /dev on a tmpfs helps alot to minimize number of writes
>>> necessary for root fs.
>> Another interesting idea. I'm not familiar with using tmpfs (no need,
>> until now); but I wonder how you create the devices you need when you're
>> doing a rescue.
>
> When you start udev, your /dev will be on tmpfs.
Sure, that's what mount shows me right now -- using a standard Debian
install. What did you suggest I change?
--
Moshe Yudkowsky * moshe@pobox.com * www.pobox.com/~moshe
"Many that live deserve death. And some that die deserve life. Can you
give it to
them? Then do not be too eager to deal out death in judgement. For even the
wise cannot see all ends."
-- Gandalf (J.R.R. Tolkien)
next prev parent reply other threads:[~2008-01-30 14:10 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-29 4:44 In this partition scheme, grub does not find md information? Moshe Yudkowsky
2008-01-29 5:08 ` Neil Brown
2008-01-29 11:02 ` Moshe Yudkowsky
2008-01-29 11:14 ` Peter Rabbitson
2008-01-29 11:29 ` Moshe Yudkowsky
2008-01-29 14:09 ` Michael Tokarev
2008-01-29 14:07 ` Michael Tokarev
2008-01-29 14:47 ` Peter Rabbitson
2008-01-29 15:13 ` Michael Tokarev
2008-01-29 15:41 ` Peter Rabbitson
2008-01-29 16:51 ` Michael Tokarev
2008-01-29 17:51 ` Keld Jørn Simonsen
2008-01-29 16:16 ` Moshe Yudkowsky
2008-01-29 16:34 ` Peter Rabbitson
2008-01-29 19:34 ` Moshe Yudkowsky
2008-01-29 20:21 ` Keld Jørn Simonsen
2008-01-29 22:14 ` Moshe Yudkowsky
2008-01-29 23:45 ` Bill Davidsen
2008-01-30 0:13 ` Moshe Yudkowsky
2008-01-30 22:36 ` Bill Davidsen
2008-01-30 0:17 ` Keld Jørn Simonsen
2008-01-29 23:44 ` Bill Davidsen
2008-01-30 0:22 ` Keld Jørn Simonsen
2008-01-30 0:26 ` Peter Rabbitson
2008-01-30 22:39 ` Bill Davidsen
2008-01-30 0:32 ` Moshe Yudkowsky
2008-01-30 0:53 ` Keld Jørn Simonsen
2008-01-30 1:00 ` Moshe Yudkowsky
2008-01-31 14:40 ` Bill Davidsen
2008-01-30 13:11 ` Michael Tokarev
2008-01-30 14:10 ` Moshe Yudkowsky [this message]
2008-01-30 14:41 ` Michael Tokarev
2008-01-31 14:59 ` Bill Davidsen
2008-02-02 20:17 ` Bill Davidsen
2008-01-30 12:01 ` Peter Rabbitson
2008-01-29 16:42 ` Michael Tokarev
2008-01-29 16:26 ` Keld Jørn Simonsen
2008-01-29 16:46 ` Michael Tokarev
2008-01-29 18:01 ` Keld Jørn Simonsen
2008-01-30 13:37 ` Michael Tokarev
2008-01-30 14:47 ` Peter Rabbitson
2008-01-30 15:21 ` Keld Jørn Simonsen
2008-01-30 15:35 ` Peter Rabbitson
2008-01-30 15:46 ` Loop devices to RAID? (was Re: In this partition scheme, grub does not find md information?) Moshe Yudkowsky
2008-01-30 15:56 ` Tim Southerwood
2008-01-29 15:57 ` In this partition scheme, grub does not find md information? Moshe Yudkowsky
2008-01-29 16:37 ` Keld Jørn Simonsen
2008-01-29 16:57 ` Michael Tokarev
2008-01-30 11:03 ` David Greaves
2008-01-30 11:44 ` Moshe Yudkowsky
2008-01-30 12:00 ` WRONG INFO (was Re: In this partition scheme, grub does not find md information?) Peter Rabbitson
2008-01-30 12:41 ` David Greaves
2008-01-30 13:39 ` Michael Tokarev
2008-02-04 16:49 ` In this partition scheme, grub does not find md information? John Stoffel
2008-02-04 17:26 ` Michael Tokarev
2008-01-30 11:03 ` David Greaves
2008-01-29 14:48 ` Keld Jørn Simonsen
2008-01-29 16:00 ` Moshe Yudkowsky
2008-01-29 16:25 ` Peter Rabbitson
2008-01-29 14:04 ` Keld Jørn Simonsen
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=47A0855A.1010901@pobox.com \
--to=moshe@pobox.com \
--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;
as well as URLs for NNTP newsgroup(s).