From: Jens Axboe <axboe@kernel.dk>
To: Karthick Srinivasachary <karthick@pernixdata.com>, fio@vger.kernel.org
Subject: Re: Repeat given pattern with buffer_compress_percentage
Date: Wed, 03 Dec 2014 19:58:08 -0700 [thread overview]
Message-ID: <547FCDC0.3000005@kernel.dk> (raw)
In-Reply-To: <547FCBC7.20309@kernel.dk>
On 12/03/2014 07:49 PM, Jens Axboe wrote:
> 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...
Updated documentation, everything is now in -git. So forget the patch,
just git pull and try it out.
Note the distinction on using refill_buffers=1 or not. If you don't set
this, then each block will be compressible to the extent specified. But
buffers are recycled, so whole device/file ratios might look different.
If you want the compression percentage to apply across all blocks
written, then you set refill_buffers=1 as well.
--
Jens Axboe
next prev parent reply other threads:[~2014-12-04 2:58 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-03 18:48 Repeat given pattern with buffer_compress_percentage Karthick Srinivasachary
2014-12-03 19:45 ` Andrey Kuzmin
2014-12-03 19:49 ` Karthick Srinivasachary
2014-12-03 19:52 ` Andrey Kuzmin
2014-12-04 2:42 ` Jens Axboe
2014-12-04 2:49 ` Jens Axboe
2014-12-04 2:58 ` Jens Axboe [this message]
2014-12-04 7:53 ` Karthick Srinivasachary
2014-12-04 15:27 ` Jens Axboe
2014-12-04 22:41 ` Jens Axboe
2014-12-05 7:25 ` Karthick Srinivasachary
2014-12-05 17:02 ` Jens Axboe
2014-12-05 17:20 ` Jens Axboe
2014-12-05 17:46 ` Jens Axboe
2014-12-05 20:06 ` Karthick Srinivasachary
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=547FCDC0.3000005@kernel.dk \
--to=axboe@kernel.dk \
--cc=fio@vger.kernel.org \
--cc=karthick@pernixdata.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox