Return-Path: Received: from casper.infradead.org ([85.118.1.10]:46297 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759025Ab2EIXtw convert rfc822-to-8bit (ORCPT ); Wed, 9 May 2012 19:49:52 -0400 References: <4FA0FB19.6010506@thomas-krenn.com> <4FA10E08.70009@fusionio.com> <4FA11FC5.4030202@thomas-krenn.com> <4FA120C2.6080205@kernel.dk> <4FA12358.7010204@thomas-krenn.com> <4FA123A3.5030801@kernel.dk> <4FA1249D.6000104@thomas-krenn.com> <4FA1255F.9020301@kernel.dk> <4FA127C7.9040401@thomas-krenn.com> <4FAAD964.2020504@kernel.dk> In-Reply-To: Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="utf-8" Message-Id: From: Jens Axboe Subject: Re: Tell fio to only lay out files Date: Thu, 10 May 2012 01:49:48 +0200 Sender: fio-owner@vger.kernel.org List-Id: fio@vger.kernel.org To: Vikram Seth Cc: =?utf-8?Q?Georg_Sch=C3=B6nberger?= , "fio@vger.kernel.org" On 10/05/2012, at 00.10, Vikram Seth wrote: > On Wed, May 9, 2012 at 1:53 PM, Jens Axboe wrote: >> On 2012-05-09 22:52, Vikram Seth wrote: >>> On Wed, May 2, 2012 at 5:25 AM, Georg Schönberger >>> wrote: >>>> Am 2012-05-02 14:15, schrieb Jens Axboe: >>>>> On 05/02/2012 02:12 PM, Georg Schönberger wrote: >>>>>> Same error after a clean compilation. >>>>>> $ fio --version >>>>>> fio-2.0.7-13-g3b7f >>>>>> $ fio --create_only --name=test-read-4k-4G-1-jobs --directory=./tests >>>>>> --rw=read --size=10M --bs=4k --numjobs=4 >>>>>> max value out of range: 4 (1 max) >>>>>> max value out of range: 4 (1 max) >>>>> Please don't top post, reply beneath what you are replying to. >>>>> >>>>> Parser looks confused, because you forgot to add the value for the >>>>> create_only option. If you use --create_only=1 instead, it should work. >>>>> >>>>> I wonder why that isn't caught in the command line variant, if you put >>>>> it in a job file it does catch it: >>>>> >>>>> axboe@nelson:/home/axboe/git/fio $ ./fio seq-null >>>>> Option create_only requires an argument >>>>> fio: failed parsing create_only >>>>> fio: job global dropped >>>>> >>>>> I'll take a look at that separately. >>>>> >>>> That works now: >>>> $ fio --create_only=1 --name=test --directory=./tests --rw=read >>>> --size=10M --bs=4k --numjobs=4 >>>> test: (g=0): rw=read, bs=4K-4K/4K-4K, ioengine=sync, iodepth=1 >>>> ... >>>> test: (g=0): rw=read, bs=4K-4K/4K-4K, ioengine=sync, iodepth=1 >>>> fio-2.0.7-13-g3b7f >>>> Starting 4 processes >>>> test: Laying out IO file(s) (1 file(s) / 10MB) >>>> test: Laying out IO file(s) (1 file(s) / 10MB) >>>> test: Laying out IO file(s) (1 file(s) / 10MB) >>>> test: Laying out IO file(s) (1 file(s) / 10MB) >>>> >>>> >>>> Run status group 0 (all jobs): >>>> $ ls tests/ >>>> test.1.0 test.2.0 test.3.0 test.4.0 >>>> >>>> Nice! >>>> Thanks, Georg >>>> >>>> P.S.: Sorry for top posting >>>> >>>> >>>> -- >>>> To unsubscribe from this list: send the line "unsubscribe fio" in >>>> the body of a message to majordomo@vger.kernel.org >>>> More majordomo info at http://vger.kernel.org/majordomo-info.html >>> >>> Hi Jens, >>> >>> Does this mean that if we create the files with appropriate names and >>> size before starting fio, then fio will not lay them out explicitly? >>> Just confirming .. this will be very useful (reduce runtime) when >>> performing tests on large filesystems. >> >> It does, yes, or you can just use this create_only option for the same >> effect. >> >> Fio uses repeatable file names, it always has. >> >> -- >> Jens Axboe >> > > I guess my question was is that if I created the files using some > other method other than create_only option, will this still work ? > Will fio look for needed files and skip layout step if they already > exist? Yes, fio doesn't care. If the files are already there and of the right size, it will skip the layout phase completely. Jens