On 12/03/2014 07:42 PM, Jens Axboe wrote: > On 12/03/2014 11:48 AM, Karthick Srinivasachary wrote: >> Hi Folks, >> >> I have question. Any feedback appreciated..! >> >> With buffer_compress_percentage, fio writes random data + zeros. >> >> Is there a way to write random data + repeat_pattern (instead of >> zero's). Pattern can be any user given pattern. > > We can just make it fill with buffer_pattern instead of zeroing. Given > that the pattern is short enough, it should not skew the compression > rate significantly. > > OK, did a quick patch and ran a quick test, looks like it's still within > half a percent. > > Pull the latest -git, then apply the attached patch. That should do what > you want. Please report back. Use this -v2 instead, it fixes a crash if you _don't_ set buffer_pattern... -- Jens Axboe