<div dir="ltr">I am considering using dm-thin for a project and have been running some performance tests.<div><br></div><div>After a snapshot has been taken, writes to the existing blocks in the original volume appears to take a severe performance hit unless the blocks written are >= than the thin-pool chunksize.  If the writes are smaller than the chunksize, dm-thin appears to do a RMW of the chunk that is being written and the throughput drops to less than half.  If the writes are >= chunksize, the chunk is simply overwritten (without reading it first) and throughput is much better.</div><div>The minimum chunksize is hard-coded to 64k (in both lvm2 tools and kernel).  If this chunksize could be set to 4k, then data that is (over)written in the original volume would never any any RMW.</div><div><br></div><div>My question is, why is 64k the minimum chunksize supported?</div><div>What would be the impact of reducing this hard-coded minimum?</div><div><br></div><div>Any feedback would be appreciated.</div><div>Thanks,</div><div>-eivind</div></div>