* [linux-lvm] lvmcache writeback mode and small writes
@ 2019-07-04 8:09 Paul Richards
0 siblings, 0 replies; only message in thread
From: Paul Richards @ 2019-07-04 8:09 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 755 bytes --]
I have a question about the behavior of lvmcache with respect to writes
that are smaller than the cache chunk size into chunks that are not
Given an lvmcache using writeback mode, 128KiB chunksize, and nothing
When an application does a 4KiB write followed by an fsync, what
reads/writes occur within lvmcache before the fsync is acknowledged?
Is it roughly:
1. The 128KiB cold chunk is read from the origin LV.
2. The 4KiB write is made into this chunk, and written to the cache LV.
3. Fsync acknowledged.
Or, does lvmcache avoid the read of the origin LV (step 1) by buffering the
smaller-than-chunksize write in the cache LV somewhere? Perhaps in some
sort of dedicated journal for small writes.
[-- Attachment #2: Type: text/html, Size: 2168 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-07-04 8:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-04 8:09 [linux-lvm] lvmcache writeback mode and small writes Paul Richards
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).