[dm-devel] dm-thin COMMIT_PERIOD problem

Mike Snitzer snitzer at redhat.com
Sat Nov 1 18:45:02 UTC 2014

On Sat, Nov 01 2014 at 10:40am -0400,
lilofile <lilofile at aliyun.com> wrote:

> In dm-thin.c,COMMIT_PERIOD is set HZ, I think this value has a  impact on system impact,too frequent commit will reduce the write performance of the system?
> other method which it is submitted by  the total size of dirty data   is feasible?

It only issues IO if changes have occured.  It isn't writing to disk
every second unless changes need to get to disk anyway.

(There was a bug where it _did_ write the metadata superblock every
second even when it wasn't needed.. since fixed with this commit:
http://git.kernel.org/linus/4d1662a30 )

More information about the dm-devel mailing list