All of lore.kernel.org
 help / color / mirror / Atom feed
* create_on_open fails with "err=5/file:backend.c:498"
@ 2016-08-02 14:29 Srinivasa Chamarthy
  2016-08-03 15:42 ` Jens Axboe
  0 siblings, 1 reply; 8+ messages in thread
From: Srinivasa Chamarthy @ 2016-08-02 14:29 UTC (permalink / raw)
  To: fio

Hi All,

With the latest version of FIO, i see that create_on_open failing
always with error "err=5/file:backend.c:498"

# fio --name=test --directory=/testdata --nrfiles=10 --size=1g
--refill_buffers=1 --direct=1 --create_on_open=1
test: (g=0): rw=read, bs=4K-4K/4K-4K/4K-4K, ioengine=psync, iodepth=1
fio-2.13-28-g059b6
Starting 1 process
fio: pid=8439, err=5/file:backend.c:498, func=full resid,
error=Input/output error

test: (groupid=0, jobs=1): err= 5 (file:backend.c:498, func=full
resid, error=Input/output error): pid=8439: Tue Aug  2 10:24:08 2016
  cpu          : usr=0.00%, sys=0.00%, ctx=1, majf=0, minf=57
  IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
     submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     complete  : 0=50.0%, 4=50.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
     issued    : total=r=1/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0
     latency   : target=0, window=0, percentile=100.00%, depth=1

Run status group 0 (all jobs):

Disk stats (read/write):
    dm-0: ios=0/0, merge=0/0, ticks=0/0, in_queue=0, util=0.00%,
aggrios=0/0, aggrmerge=0/0, aggrticks=0/0, aggrin_queue=0,
aggrutil=0.00%
  sda: ios=0/0, merge=0/0, ticks=0/0, in_queue=0, util=0.00%

# fio --version
fio-2.13-28-g059b6

The execution was on RHEL7.2 and CentOS7.2

Thanks for your support.

--
Srinivasa R Chamarthy

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: create_on_open fails with "err=5/file:backend.c:498"
  2016-08-02 14:29 create_on_open fails with "err=5/file:backend.c:498" Srinivasa Chamarthy
@ 2016-08-03 15:42 ` Jens Axboe
  2016-08-03 15:54   ` Jens Axboe
  0 siblings, 1 reply; 8+ messages in thread
From: Jens Axboe @ 2016-08-03 15:42 UTC (permalink / raw)
  To: Srinivasa Chamarthy, fio

On 08/02/2016 07:29 AM, Srinivasa Chamarthy wrote:
> Hi All,
>
> With the latest version of FIO, i see that create_on_open failing
> always with error "err=5/file:backend.c:498"
>
> # fio --name=test --directory=/testdata --nrfiles=10 --size=1g
> --refill_buffers=1 --direct=1 --create_on_open=1
> test: (g=0): rw=read, bs=4K-4K/4K-4K/4K-4K, ioengine=psync, iodepth=1
> fio-2.13-28-g059b6
> Starting 1 process
> fio: pid=8439, err=5/file:backend.c:498, func=full resid,
> error=Input/output error
>
> test: (groupid=0, jobs=1): err= 5 (file:backend.c:498, func=full
> resid, error=Input/output error): pid=8439: Tue Aug  2 10:24:08 2016
>   cpu          : usr=0.00%, sys=0.00%, ctx=1, majf=0, minf=57
>   IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
>      submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
>      complete  : 0=50.0%, 4=50.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
>      issued    : total=r=1/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0
>      latency   : target=0, window=0, percentile=100.00%, depth=1
>
> Run status group 0 (all jobs):
>
> Disk stats (read/write):
>     dm-0: ios=0/0, merge=0/0, ticks=0/0, in_queue=0, util=0.00%,
> aggrios=0/0, aggrmerge=0/0, aggrticks=0/0, aggrin_queue=0,
> aggrutil=0.00%
>   sda: ios=0/0, merge=0/0, ticks=0/0, in_queue=0, util=0.00%
>
> # fio --version
> fio-2.13-28-g059b6
>
> The execution was on RHEL7.2 and CentOS7.2

Did that ever work for readable workloads? For a writeable workload it
should be fine.

-- 
Jens Axboe



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: create_on_open fails with "err=5/file:backend.c:498"
  2016-08-03 15:42 ` Jens Axboe
@ 2016-08-03 15:54   ` Jens Axboe
  2016-08-03 16:01     ` Srinivasa Chamarthy
  0 siblings, 1 reply; 8+ messages in thread
From: Jens Axboe @ 2016-08-03 15:54 UTC (permalink / raw)
  To: Srinivasa Chamarthy, fio

On 08/03/2016 08:42 AM, Jens Axboe wrote:
> On 08/02/2016 07:29 AM, Srinivasa Chamarthy wrote:
>> Hi All,
>>
>> With the latest version of FIO, i see that create_on_open failing
>> always with error "err=5/file:backend.c:498"
>>
>> # fio --name=test --directory=/testdata --nrfiles=10 --size=1g
>> --refill_buffers=1 --direct=1 --create_on_open=1
>> test: (g=0): rw=read, bs=4K-4K/4K-4K/4K-4K, ioengine=psync, iodepth=1
>> fio-2.13-28-g059b6
>> Starting 1 process
>> fio: pid=8439, err=5/file:backend.c:498, func=full resid,
>> error=Input/output error
>>
>> test: (groupid=0, jobs=1): err= 5 (file:backend.c:498, func=full
>> resid, error=Input/output error): pid=8439: Tue Aug  2 10:24:08 2016
>>   cpu          : usr=0.00%, sys=0.00%, ctx=1, majf=0, minf=57
>>   IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%,
>> >=64=0.0%
>>      submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
>> >=64=0.0%
>>      complete  : 0=50.0%, 4=50.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
>> >=64=0.0%
>>      issued    : total=r=1/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0
>>      latency   : target=0, window=0, percentile=100.00%, depth=1
>>
>> Run status group 0 (all jobs):
>>
>> Disk stats (read/write):
>>     dm-0: ios=0/0, merge=0/0, ticks=0/0, in_queue=0, util=0.00%,
>> aggrios=0/0, aggrmerge=0/0, aggrticks=0/0, aggrin_queue=0,
>> aggrutil=0.00%
>>   sda: ios=0/0, merge=0/0, ticks=0/0, in_queue=0, util=0.00%
>>
>> # fio --version
>> fio-2.13-28-g059b6
>>
>> The execution was on RHEL7.2 and CentOS7.2
>
> Did that ever work for readable workloads? For a writeable workload it
> should be fine.

I take it back, it should still work. Try current -git, I think I fixed
it for you.

-- 
Jens Axboe



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: create_on_open fails with "err=5/file:backend.c:498"
  2016-08-03 15:54   ` Jens Axboe
@ 2016-08-03 16:01     ` Srinivasa Chamarthy
  2016-08-04 10:53       ` Srinivasa Chamarthy
  0 siblings, 1 reply; 8+ messages in thread
From: Srinivasa Chamarthy @ 2016-08-03 16:01 UTC (permalink / raw)
  To: Jens Axboe, fio

[-- Attachment #1: Type: text/plain, Size: 2121 bytes --]

It's failing when there are no files exist in the directory. If I have
files that already exist, it's working. I think that's expected as it
defaults to read if --rw is not specified.

Will try the -git latest and let you know.

On Wed 3 Aug, 2016, 11:54 PM Jens Axboe, <axboe@kernel.dk> wrote:

> On 08/03/2016 08:42 AM, Jens Axboe wrote:
> > On 08/02/2016 07:29 AM, Srinivasa Chamarthy wrote:
> >> Hi All,
> >>
> >> With the latest version of FIO, i see that create_on_open failing
> >> always with error "err=5/file:backend.c:498"
> >>
> >> # fio --name=test --directory=/testdata --nrfiles=10 --size=1g
> >> --refill_buffers=1 --direct=1 --create_on_open=1
> >> test: (g=0): rw=read, bs=4K-4K/4K-4K/4K-4K, ioengine=psync, iodepth=1
> >> fio-2.13-28-g059b6
> >> Starting 1 process
> >> fio: pid=8439, err=5/file:backend.c:498, func=full resid,
> >> error=Input/output error
> >>
> >> test: (groupid=0, jobs=1): err= 5 (file:backend.c:498, func=full
> >> resid, error=Input/output error): pid=8439: Tue Aug  2 10:24:08 2016
> >>   cpu          : usr=0.00%, sys=0.00%, ctx=1, majf=0, minf=57
> >>   IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%,
> >> >=64=0.0%
> >>      submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
> >> >=64=0.0%
> >>      complete  : 0=50.0%, 4=50.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
> >> >=64=0.0%
> >>      issued    : total=r=1/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0
> >>      latency   : target=0, window=0, percentile=100.00%, depth=1
> >>
> >> Run status group 0 (all jobs):
> >>
> >> Disk stats (read/write):
> >>     dm-0: ios=0/0, merge=0/0, ticks=0/0, in_queue=0, util=0.00%,
> >> aggrios=0/0, aggrmerge=0/0, aggrticks=0/0, aggrin_queue=0,
> >> aggrutil=0.00%
> >>   sda: ios=0/0, merge=0/0, ticks=0/0, in_queue=0, util=0.00%
> >>
> >> # fio --version
> >> fio-2.13-28-g059b6
> >>
> >> The execution was on RHEL7.2 and CentOS7.2
> >
> > Did that ever work for readable workloads? For a writeable workload it
> > should be fine.
>
> I take it back, it should still work. Try current -git, I think I fixed
> it for you.
>
> --
> Jens Axboe
>
>

[-- Attachment #2: Type: text/html, Size: 2836 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: create_on_open fails with "err=5/file:backend.c:498"
  2016-08-03 16:01     ` Srinivasa Chamarthy
@ 2016-08-04 10:53       ` Srinivasa Chamarthy
  2016-08-05  1:39         ` Jens Axboe
  0 siblings, 1 reply; 8+ messages in thread
From: Srinivasa Chamarthy @ 2016-08-04 10:53 UTC (permalink / raw)
  To: Jens Axboe, fio

Tried the latest git, i do not get the failure now. But i have the
following questions

1) The initial failure was due to the fact that there were no files in
the directory to read. In that case, it may be expected that we write
the files first and then do read (workload defaults to read if --rw is
not specified).
2) For Write or mixed jobs, create_on_open is expected not to layout
the IO files before the workload. Currently with the latest git, i see
that it says that files are layed out (but the size is 0) before the
workload starts. If i do not specify create_on_open, its not laying
out files at all. And i have to specify create_on_open=0 explicitly to
layout the files completely.

With create_on_open=1
# fio --name=test --directory=/testdata --nrfiles=10 --size=1g
--refill_buffers=1 --direct=1 --create_on_open=1 --rw=write
test: (g=0): rw=write, bs=4K-4K/4K-4K/4K-4K, ioengine=psync, iodepth=1
fio-2.13-38-gff56
Starting 1 process
test: Laying out IO file(s) (10 file(s) / 0MB)
Jobs: 1 (f=10): [W(1)] [100.0% done] [0KB/5684KB/0KB /s] [0/1421/0
iops] [eta 00m:00s]

Without create_on_open (No Initial layout of files)
# fio --name=test --directory=/testdata --nrfiles=10 --size=1g
--refill_buffers=1 --direct=1 --rw=write
test: (g=0): rw=write, bs=4K-4K/4K-4K/4K-4K, ioengine=psync, iodepth=1
fio-2.13-38-gff56
Starting 1 process
Jobs: 1 (f=10): [W(1)] [8.2% done] [0KB/6612KB/0KB /s] [0/1653/0 iops]
[eta 02m:37s]

With create_on_open=0 (its laying out files)
# fio --name=test --directory=/testdata --nrfiles=10 --size=1g
--refill_buffers=1 --direct=1 --rw=write --create_on_open=0
test: (g=0): rw=write, bs=4K-4K/4K-4K/4K-4K, ioengine=psync, iodepth=1
fio-2.13-38-gff56
Starting 1 process
test: Laying out IO file(s) (10 file(s) / 1023MB)
Jobs: 1 (f=10): [W(1)] [5.1% done] [0KB/6328KB/0KB /s] [0/1582/0 iops]
[eta 02m:49s]

Just wanted to get confirmation on what's the default behavior. I was
under the impression that if create_on_open is not specified, default
behavior is to layout the files for jobs.

Thanks.


--
Srinivasa R Chamarthy


On Thu, Aug 4, 2016 at 12:01 AM, Srinivasa Chamarthy
<chamarthy.raju@gmail.com> wrote:
> It's failing when there are no files exist in the directory. If I have files
> that already exist, it's working. I think that's expected as it defaults to
> read if --rw is not specified.
>
> Will try the -git latest and let you know.
>
>
> On Wed 3 Aug, 2016, 11:54 PM Jens Axboe, <axboe@kernel.dk> wrote:
>>
>> On 08/03/2016 08:42 AM, Jens Axboe wrote:
>> > On 08/02/2016 07:29 AM, Srinivasa Chamarthy wrote:
>> >> Hi All,
>> >>
>> >> With the latest version of FIO, i see that create_on_open failing
>> >> always with error "err=5/file:backend.c:498"
>> >>
>> >> # fio --name=test --directory=/testdata --nrfiles=10 --size=1g
>> >> --refill_buffers=1 --direct=1 --create_on_open=1
>> >> test: (g=0): rw=read, bs=4K-4K/4K-4K/4K-4K, ioengine=psync, iodepth=1
>> >> fio-2.13-28-g059b6
>> >> Starting 1 process
>> >> fio: pid=8439, err=5/file:backend.c:498, func=full resid,
>> >> error=Input/output error
>> >>
>> >> test: (groupid=0, jobs=1): err= 5 (file:backend.c:498, func=full
>> >> resid, error=Input/output error): pid=8439: Tue Aug  2 10:24:08 2016
>> >>   cpu          : usr=0.00%, sys=0.00%, ctx=1, majf=0, minf=57
>> >>   IO depths    : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%,
>> >> >=64=0.0%
>> >>      submit    : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
>> >> >=64=0.0%
>> >>      complete  : 0=50.0%, 4=50.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
>> >> >=64=0.0%
>> >>      issued    : total=r=1/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0
>> >>      latency   : target=0, window=0, percentile=100.00%, depth=1
>> >>
>> >> Run status group 0 (all jobs):
>> >>
>> >> Disk stats (read/write):
>> >>     dm-0: ios=0/0, merge=0/0, ticks=0/0, in_queue=0, util=0.00%,
>> >> aggrios=0/0, aggrmerge=0/0, aggrticks=0/0, aggrin_queue=0,
>> >> aggrutil=0.00%
>> >>   sda: ios=0/0, merge=0/0, ticks=0/0, in_queue=0, util=0.00%
>> >>
>> >> # fio --version
>> >> fio-2.13-28-g059b6
>> >>
>> >> The execution was on RHEL7.2 and CentOS7.2
>> >
>> > Did that ever work for readable workloads? For a writeable workload it
>> > should be fine.
>>
>> I take it back, it should still work. Try current -git, I think I fixed
>> it for you.
>>
>> --
>> Jens Axboe
>>
>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: create_on_open fails with "err=5/file:backend.c:498"
  2016-08-04 10:53       ` Srinivasa Chamarthy
@ 2016-08-05  1:39         ` Jens Axboe
  2016-08-05  1:43           ` Jens Axboe
  2016-08-05  1:43           ` Srinivasa Chamarthy
  0 siblings, 2 replies; 8+ messages in thread
From: Jens Axboe @ 2016-08-05  1:39 UTC (permalink / raw)
  To: Srinivasa Chamarthy, fio

On 08/04/2016 04:53 AM, Srinivasa Chamarthy wrote:
> Tried the latest git, i do not get the failure now. But i have the
> following questions
>
> 1) The initial failure was due to the fact that there were no files in
> the directory to read. In that case, it may be expected that we write
> the files first and then do read (workload defaults to read if --rw is
> not specified).

Right, but that's similar to how a normal read job without
create_on_open would also layout the files to be able to run the read
workload.

> 2) For Write or mixed jobs, create_on_open is expected not to layout
> the IO files before the workload. Currently with the latest git, i see
> that it says that files are layed out (but the size is 0) before the
> workload starts. If i do not specify create_on_open, its not laying
> out files at all. And i have to specify create_on_open=0 explicitly to
> layout the files completely.
>
> With create_on_open=1
> # fio --name=test --directory=/testdata --nrfiles=10 --size=1g
> --refill_buffers=1 --direct=1 --create_on_open=1 --rw=write
> test: (g=0): rw=write, bs=4K-4K/4K-4K/4K-4K, ioengine=psync, iodepth=1
> fio-2.13-38-gff56
> Starting 1 process
> test: Laying out IO file(s) (10 file(s) / 0MB)
> Jobs: 1 (f=10): [W(1)] [100.0% done] [0KB/5684KB/0KB /s] [0/1421/0
> iops] [eta 00m:00s]
>
> Without create_on_open (No Initial layout of files)
> # fio --name=test --directory=/testdata --nrfiles=10 --size=1g
> --refill_buffers=1 --direct=1 --rw=write
> test: (g=0): rw=write, bs=4K-4K/4K-4K/4K-4K, ioengine=psync, iodepth=1
> fio-2.13-38-gff56
> Starting 1 process
> Jobs: 1 (f=10): [W(1)] [8.2% done] [0KB/6612KB/0KB /s] [0/1653/0 iops]
> [eta 02m:37s]
>
> With create_on_open=0 (its laying out files)
> # fio --name=test --directory=/testdata --nrfiles=10 --size=1g
> --refill_buffers=1 --direct=1 --rw=write --create_on_open=0
> test: (g=0): rw=write, bs=4K-4K/4K-4K/4K-4K, ioengine=psync, iodepth=1
> fio-2.13-38-gff56
> Starting 1 process
> test: Laying out IO file(s) (10 file(s) / 1023MB)
> Jobs: 1 (f=10): [W(1)] [5.1% done] [0KB/6328KB/0KB /s] [0/1582/0 iops]
> [eta 02m:49s]
>
> Just wanted to get confirmation on what's the default behavior. I was
> under the impression that if create_on_open is not specified, default
> behavior is to layout the files for jobs.

Right, that was essentially the behaviour before the recent change. With
the recent change, it'll lay them out if it needs to. It needs to, if
the actual job doesn't do it, or if overwrite=1 is set, for instance,
and it's a writable job.

-- 
Jens Axboe



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: create_on_open fails with "err=5/file:backend.c:498"
  2016-08-05  1:39         ` Jens Axboe
@ 2016-08-05  1:43           ` Jens Axboe
  2016-08-05  1:43           ` Srinivasa Chamarthy
  1 sibling, 0 replies; 8+ messages in thread
From: Jens Axboe @ 2016-08-05  1:43 UTC (permalink / raw)
  To: Srinivasa Chamarthy, fio

On 08/04/2016 07:39 PM, Jens Axboe wrote:
> On 08/04/2016 04:53 AM, Srinivasa Chamarthy wrote:
>> Tried the latest git, i do not get the failure now. But i have the
>> following questions
>>
>> 1) The initial failure was due to the fact that there were no files in
>> the directory to read. In that case, it may be expected that we write
>> the files first and then do read (workload defaults to read if --rw is
>> not specified).
>
> Right, but that's similar to how a normal read job without
> create_on_open would also layout the files to be able to run the read
> workload.
>
>> 2) For Write or mixed jobs, create_on_open is expected not to layout
>> the IO files before the workload. Currently with the latest git, i see
>> that it says that files are layed out (but the size is 0) before the
>> workload starts. If i do not specify create_on_open, its not laying
>> out files at all. And i have to specify create_on_open=0 explicitly to
>> layout the files completely.
>>
>> With create_on_open=1
>> # fio --name=test --directory=/testdata --nrfiles=10 --size=1g
>> --refill_buffers=1 --direct=1 --create_on_open=1 --rw=write
>> test: (g=0): rw=write, bs=4K-4K/4K-4K/4K-4K, ioengine=psync, iodepth=1
>> fio-2.13-38-gff56
>> Starting 1 process
>> test: Laying out IO file(s) (10 file(s) / 0MB)
>> Jobs: 1 (f=10): [W(1)] [100.0% done] [0KB/5684KB/0KB /s] [0/1421/0
>> iops] [eta 00m:00s]
>>
>> Without create_on_open (No Initial layout of files)
>> # fio --name=test --directory=/testdata --nrfiles=10 --size=1g
>> --refill_buffers=1 --direct=1 --rw=write
>> test: (g=0): rw=write, bs=4K-4K/4K-4K/4K-4K, ioengine=psync, iodepth=1
>> fio-2.13-38-gff56
>> Starting 1 process
>> Jobs: 1 (f=10): [W(1)] [8.2% done] [0KB/6612KB/0KB /s] [0/1653/0 iops]
>> [eta 02m:37s]
>>
>> With create_on_open=0 (its laying out files)
>> # fio --name=test --directory=/testdata --nrfiles=10 --size=1g
>> --refill_buffers=1 --direct=1 --rw=write --create_on_open=0
>> test: (g=0): rw=write, bs=4K-4K/4K-4K/4K-4K, ioengine=psync, iodepth=1
>> fio-2.13-38-gff56
>> Starting 1 process
>> test: Laying out IO file(s) (10 file(s) / 1023MB)
>> Jobs: 1 (f=10): [W(1)] [5.1% done] [0KB/6328KB/0KB /s] [0/1582/0 iops]
>> [eta 02m:49s]
>>
>> Just wanted to get confirmation on what's the default behavior. I was
>> under the impression that if create_on_open is not specified, default
>> behavior is to layout the files for jobs.
>
> Right, that was essentially the behaviour before the recent change. With
> the recent change, it'll lay them out if it needs to. It needs to, if
> the actual job doesn't do it, or if overwrite=1 is set, for instance,
> and it's a writable job.

I have reverted the change, I think the previous behavior made more
sense. I think you alluded to that as well.

-- 
Jens Axboe



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: create_on_open fails with "err=5/file:backend.c:498"
  2016-08-05  1:39         ` Jens Axboe
  2016-08-05  1:43           ` Jens Axboe
@ 2016-08-05  1:43           ` Srinivasa Chamarthy
  1 sibling, 0 replies; 8+ messages in thread
From: Srinivasa Chamarthy @ 2016-08-05  1:43 UTC (permalink / raw)
  To: Jens Axboe; +Cc: fio

Thanks for the info. :)

--
Srinivasa R Chamarthy


On Fri, Aug 5, 2016 at 9:39 AM, Jens Axboe <axboe@kernel.dk> wrote:
> On 08/04/2016 04:53 AM, Srinivasa Chamarthy wrote:
>>
>> Tried the latest git, i do not get the failure now. But i have the
>> following questions
>>
>> 1) The initial failure was due to the fact that there were no files in
>> the directory to read. In that case, it may be expected that we write
>> the files first and then do read (workload defaults to read if --rw is
>> not specified).
>
>
> Right, but that's similar to how a normal read job without
> create_on_open would also layout the files to be able to run the read
> workload.
>
>
>> 2) For Write or mixed jobs, create_on_open is expected not to layout
>> the IO files before the workload. Currently with the latest git, i see
>> that it says that files are layed out (but the size is 0) before the
>> workload starts. If i do not specify create_on_open, its not laying
>> out files at all. And i have to specify create_on_open=0 explicitly to
>> layout the files completely.
>>
>> With create_on_open=1
>> # fio --name=test --directory=/testdata --nrfiles=10 --size=1g
>> --refill_buffers=1 --direct=1 --create_on_open=1 --rw=write
>> test: (g=0): rw=write, bs=4K-4K/4K-4K/4K-4K, ioengine=psync, iodepth=1
>> fio-2.13-38-gff56
>> Starting 1 process
>> test: Laying out IO file(s) (10 file(s) / 0MB)
>> Jobs: 1 (f=10): [W(1)] [100.0% done] [0KB/5684KB/0KB /s] [0/1421/0
>> iops] [eta 00m:00s]
>>
>> Without create_on_open (No Initial layout of files)
>> # fio --name=test --directory=/testdata --nrfiles=10 --size=1g
>> --refill_buffers=1 --direct=1 --rw=write
>> test: (g=0): rw=write, bs=4K-4K/4K-4K/4K-4K, ioengine=psync, iodepth=1
>> fio-2.13-38-gff56
>> Starting 1 process
>> Jobs: 1 (f=10): [W(1)] [8.2% done] [0KB/6612KB/0KB /s] [0/1653/0 iops]
>> [eta 02m:37s]
>>
>> With create_on_open=0 (its laying out files)
>> # fio --name=test --directory=/testdata --nrfiles=10 --size=1g
>> --refill_buffers=1 --direct=1 --rw=write --create_on_open=0
>> test: (g=0): rw=write, bs=4K-4K/4K-4K/4K-4K, ioengine=psync, iodepth=1
>> fio-2.13-38-gff56
>> Starting 1 process
>> test: Laying out IO file(s) (10 file(s) / 1023MB)
>> Jobs: 1 (f=10): [W(1)] [5.1% done] [0KB/6328KB/0KB /s] [0/1582/0 iops]
>> [eta 02m:49s]
>>
>> Just wanted to get confirmation on what's the default behavior. I was
>> under the impression that if create_on_open is not specified, default
>> behavior is to layout the files for jobs.
>
>
> Right, that was essentially the behaviour before the recent change. With
> the recent change, it'll lay them out if it needs to. It needs to, if
> the actual job doesn't do it, or if overwrite=1 is set, for instance,
> and it's a writable job.
>
> --
> Jens Axboe
>


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-08-05  1:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-02 14:29 create_on_open fails with "err=5/file:backend.c:498" Srinivasa Chamarthy
2016-08-03 15:42 ` Jens Axboe
2016-08-03 15:54   ` Jens Axboe
2016-08-03 16:01     ` Srinivasa Chamarthy
2016-08-04 10:53       ` Srinivasa Chamarthy
2016-08-05  1:39         ` Jens Axboe
2016-08-05  1:43           ` Jens Axboe
2016-08-05  1:43           ` Srinivasa Chamarthy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.