From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: random buffer_compress_percentage instead of static References: From: Jens Axboe Message-ID: Date: Thu, 24 Jun 2021 18:55:10 -0600 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit To: Sunil Vettukalppurathu , fio@vger.kernel.org List-ID: On 6/24/21 12:38 PM, Sunil Vettukalppurathu wrote: > Hi, > > Currently we can’t vary % of compressible data from block to block (as > far as I know). The value provided for buffer_compress_percentage is > used for all blocks. > > """ > buffer_compress_percentage=int > If this is set, then fio will attempt to provide I/O buffer content > (on WRITEs) that compresses to the specified > level. Fio does this by providing a mix of random data followed by > fixed pattern data. """ > > As we have a requirement to test with random compression %, we > modified the code to accept a range of values for > buffer_compress_percentage instead of one number so that the > percentage changes from block to block – random value between min and > max. > > Not sure if it’s useful for others; if so, will send the patch for review. Please do, sounds like a useful feature. How is it managed in terms of options? -- Jens Axboe