linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Does the chunk size of RAID5 really mean the "smallest atomic" mass of data?
@ 2013-08-19  1:10 taejin1999
  2013-08-19  1:33 ` NeilBrown
  0 siblings, 1 reply; 2+ messages in thread
From: taejin1999 @ 2013-08-19  1:10 UTC (permalink / raw)
  To: linux-raid

I have counted the number of write requests from the raid disks which are
implemented as virtual block devices.
The result is
  ** the larger chunk size is, the more write requests are received per
device.

I was wondering what the "chunk size" means on RAID5 of mdadm.
According to below site, chunk is the smallest atomic mass of data that
can be written to the device.
(https://raid.wiki.kernel.org/index.php/RAID_setup)

The source code, however, seems to work differently.
As I know, mdadm issues bio to each device in ops_run_io function.
In the code, the size of bio is set to be only STRIPE_SIZE.
I think the device would get STRIPE_SIZE-sized data which is smaller than
the chunk size.

Is the chunk size not smallest data that can be written to the device?
Or is there any procedure that merge the STRIPE_SIZE-sized data into
chunk-sized data?

I am looking forward to your reply.
Thank you.

PS) Could you guess why more writes are issued for larger chunk size?


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

end of thread, other threads:[~2013-08-19  1:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-19  1:10 Does the chunk size of RAID5 really mean the "smallest atomic" mass of data? taejin1999
2013-08-19  1:33 ` NeilBrown

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).