Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #193497

Q: RAID1 and chunk size

From "Steve Keller" <keller.steve@gmx.de>
Newsgroups linux.debian.user
Subject Q: RAID1 and chunk size
Date 2018-03-07 22:40 +0100
Message-ID <vqOX0-5LE-11@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


I have a RAID1 array with 2 disks (/dev/sda1 and /dev/sdb1) of 2 TB
each.  By running mdadm -X /dev/sda1 I see that the chunk size is 64 MB:

    # mdadm -X /dev/sda1
    Filename : /dev/sda1
    Magic : 6d746962
    Version : 4
    UUID : 300551ed:f6690dfb:1c939898:af5509c6
    Events : 2599997
    Events Cleared : 2599997
    State : OK
    Chunksize : 64 MB
    Daemon : 5s flush period
    Write Mode : Normal
    Sync Size : 1953381376 (1862.89 GiB 2000.26 GB)
    Bitmap : 29807 bits (chunks), 2 dirty (0.0%)

What exactly does the chunk sized mean?  My question is how reads and
writes on an array are done.  Will the kernel always read or write a
complete chunk?  If so, does that mean that writing a single 4 KB
block to a file system will cause a 64 MB read, i.e one chunk, change
the 4 KB block in that chunk and write back the 64 MB chunk?

Wouldn't that mean a massive performance problem?

Steve

Back to linux.debian.user | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Q: RAID1 and chunk size "Steve Keller" <keller.steve@gmx.de> - 2018-03-07 22:40 +0100
  Re: Q: RAID1 and chunk size Darac Marjal <mailinglist@darac.org.uk> - 2018-03-07 23:10 +0100
    Re: Q: RAID1 and chunk size Toni Mas i Soler <antomassol@gmail.com> - 2018-03-08 11:00 +0100

csiph-web