All of lore.kernel.org
 help / color / mirror / Atom feed
* RAID newbie, 1 vs 5, chunk sizes
@ 2014-06-14 21:01 Nuno Magalhães
  2014-06-14 21:56 ` Stan Hoeppner
  2014-06-16  2:23 ` Phil Turmel
  0 siblings, 2 replies; 23+ messages in thread
From: Nuno Magalhães @ 2014-06-14 21:01 UTC (permalink / raw)
  To: linux-raid

Hi,

Sorry if this is the wrong list. Most of the stuff out there seems
outdated, and i have some specific doubts.

I'm trying to decide how to best create a RAID array and what
configuration to use. This is a desktop system, nothing
mission-critical, but i'd like it to be reasonably tailored to the
hardware and intended usage, and have questions about default values.

Hardware:
    1x Toshiba DT01ACA100 - 32MB bus, 931.0 GiB (1 TB; 1000204886016 bytes)
    2x Seagate ST1000DM0003 - 64MB bus, 931.0 GiB (1 TB; 1000204886016 bytes)
and
    1x Maxtor 6G160E0 - 8MB bus, 149.1 GiB (160 GB; 160041885696 bytes)

The 3 1TB disks all show similar data using
# fdisk -l /dev/sda

    Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
    255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes

The Maxtor is different, of course. The system has 8GiB RAM and a
Phenom II quadcore, running Debian Wheezy (stable) at the moment. The
motherboard's an Asus M2nPV-VM. On top the the software RAID i intend
to put LVM and then XFS for the / partition. Then i'll want to use
Xen. One of the VMs will be my regular desktop, another may be a
Windows HVM, another for LAN streaming, other(s) for trying out
distros...

My first question is: does the disk cache size *significantly* affect
performance? Are there any caveats? I assume not (i've already used
another Seagate with maybe 32MB of cache and the Maxtor in a RAID1
159GB array) but i ask because i'm trying to decide between the 2
Seagates in RAID1 + the Toshiba *or* all 3 in RAID5.
I don't intend to put the system under heavy load, but that may be
relative if i want to run 2-3 VMs in Xen and doing some streaming or
running a webserver or what not. It seems to me the overhead RAID5 has
on a system is either irrelevant for this kind of light usage or not
so much an issue with modern hardware (although the motherboard's the
bottlebeck here).

Secondly, the chunks. How do they relate to sectors and why are they
different in fdisk output? From [1] the chunk size should be at least
4KiB, so 4096 bytes seems to match sector size. Am i making the right
assumptions? Or the wrong ones even if the conclusion may be correct?
Chunk size is irrelevant to RAID1, so i assume the 4 KiB value would
apply; but for RAID5 128 KiB are suggested[2], which seems a big
difference. Is there a formula for this? A rule of thumb?
If i go for RAID5 i'd have to consider stripes, which would be 3*4KiB
in size? Of should i use only 2*4KiB as the 3rd chunk is for parity?

The partition type will depend on the RAID type. I've used whole disks
for RAID1, but i'd probably use partitions slightly smaller if i go
for RAID5. I'm assuming binary units are the way to go here,
regardless of vendor usage (and other issues). I'll just have to get
used to the 931 GiB figure.

Sorry if this is a big message or miss-directed but i'd really like
some experienced suggestions before i go re/installing stuff and
creating VMs.

Thanks,
Nuno

[1] https://raid.wiki.kernel.org/index.php/Chunk_size
[2] https://raid.wiki.kernel.org/index.php/RAID_setup#RAID-5


-- 
"On the internet, nobody knows you're a dog."

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2014-06-29 13:22 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-14 21:01 RAID newbie, 1 vs 5, chunk sizes Nuno Magalhães
2014-06-14 21:56 ` Stan Hoeppner
2014-06-15 11:50   ` Nuno Magalhães
     [not found]     ` <pmrj5x4rq3qbl6unnu7guho9.1402849407134@email.android.com>
2014-06-15 17:40       ` Nuno Magalhães
2014-06-16  2:23 ` Phil Turmel
2014-06-16 12:36   ` Nuno Magalhães
2014-06-16 13:19     ` Mark Knecht
2014-06-16 14:28     ` Phil Turmel
2014-06-16 16:14       ` Nuno Magalhães
2014-06-16 20:13         ` Phil Turmel
2014-06-16 21:02           ` Mark Knecht
2014-06-17  0:41         ` Nuno Magalhães
2014-06-17  0:47           ` Brad Campbell
2014-06-17  9:09             ` Nuno Magalhães
2014-06-17 19:50               ` Stan Hoeppner
2014-06-18  2:55               ` Brad Campbell
2014-06-18  7:33     ` Wilson, Jonathan
2014-06-18 10:19     ` Dag Nygren
2014-06-18 11:58       ` Mathias Burén
2014-06-18 12:16         ` Brad Campbell
2014-06-18 17:34         ` Roman Mamedov
2014-06-19  6:45           ` Wilson, Jonathan
2014-06-29 13:22             ` Nuno Magalhães

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.