On Mon, Jun 04, 2018 at 05:55:14PM +0800, guangrong.xiao@xxxxxxxxx wrote: > From: Xiao Guangrong <xiaoguangrong@xxxxxxxxxxx> > > Detecting zero page is not a light work, we can disable it > for compression that can handle all zero data very well Is there any number shows how the compression algo performs better than the zero-detect algo? Asked since AFAIU buffer_is_zero() might be fast, depending on how init_accel() is done in util/bufferiszero.c. >From compression rate POV of course zero page algo wins since it contains no data (but only a flag). Regards, -- Peter Xu