linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Block size and read-modify-write
@ 2017-12-28 23:14 Gionatan Danti
  2018-01-02 10:25 ` Carlos Maiolino
  0 siblings, 1 reply; 9+ messages in thread
From: Gionatan Danti @ 2017-12-28 23:14 UTC (permalink / raw)
  To: linux-xfs; +Cc: g.danti

Hi list,
I would ask a question: how XFS block size affect read-modify-write in 
case of very small writes?

For example, suppose an XFS filesystem with the default 4K data block 
size. Am I correct saying that:
- a 512B normal, cached writes will cause a read-modify-write of the 
entire 4K sector?
- a 512B O_DIRECT write will *not* cause a read-modify-write of the 4K 
sector, rather it will be flushed to disk as-is (512 bytes in length)?

Thanks.

-- 
Danti Gionatan
Supporto Tecnico
Assyoma S.r.l. - www.assyoma.it
email: g.danti@assyoma.it - info@assyoma.it
GPG public key ID: FF5F32A8

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

end of thread, other threads:[~2018-01-04  1:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-28 23:14 Block size and read-modify-write Gionatan Danti
2018-01-02 10:25 ` Carlos Maiolino
2018-01-03  1:19   ` Dave Chinner
2018-01-03  8:19     ` Carlos Maiolino
2018-01-03 14:54     ` Gionatan Danti
2018-01-03 21:47       ` Dave Chinner
2018-01-03 22:09         ` Gionatan Danti
2018-01-03 22:59           ` Dave Chinner
2018-01-04  1:38             ` Gionatan Danti

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