2019-08-06 06:10:43

by Su, Yanjun

[permalink] [raw]
Subject: NFS issues about aio and dio test

Hi,

When I tested xfstests generic/465 with NFS, there was something unexpected.

When memory of NFS server was 10G, test passed.
But when memory of NFS server was 4G, test failed.

Fail message was as below.
    non-aio dio test
    encounter an error: block 4 offset 0, content 62
    aio-dio test
    encounter an error: block 1 offset 0, content 62

All of the NFS versions(v3 v4.0 v4.1 v4.2) have  this problem.
Maybe something is wrong about NFS's I/O operation.

Thanks in advance.








2019-08-26 00:47:46

by Su, Yanjun

[permalink] [raw]
Subject: Re: NFS issues about aio and dio test

Any ping?

在 2019/8/6 14:08, Su Yanjun 写道:
> Hi,
>
> When I tested xfstests generic/465 with NFS, there was something
> unexpected.
>
> When memory of NFS server was 10G, test passed.
> But when memory of NFS server was 4G, test failed.
>
> Fail message was as below.
>     non-aio dio test
>     encounter an error: block 4 offset 0, content 62
>     aio-dio test
>     encounter an error: block 1 offset 0, content 62
>
> All of the NFS versions(v3 v4.0 v4.1 v4.2) have  this problem.
> Maybe something is wrong about NFS's I/O operation.
>
> Thanks in advance.
>
>
>
>
>
>
>


2019-08-28 17:29:15

by J. Bruce Fields

[permalink] [raw]
Subject: Re: NFS issues about aio and dio test

On Mon, Aug 26, 2019 at 08:37:41AM +0800, Su Yanjun wrote:
> Any ping?
>
> 在 2019/8/6 14:08, Su Yanjun 写道:
> >Hi,
> >
> >When I tested xfstests generic/465 with NFS, there was something
> >unexpected.
> >
> >When memory of NFS server was 10G, test passed.
> >But when memory of NFS server was 4G, test failed.
> >
> >Fail message was as below.
> >    non-aio dio test
> >    encounter an error: block 4 offset 0, content 62
> >    aio-dio test
> >    encounter an error: block 1 offset 0, content 62
> >
> >All of the NFS versions(v3 v4.0 v4.1 v4.2) have  this problem.
> >Maybe something is wrong about NFS's I/O operation.
> >
> >Thanks in advance.

Off the top of my head it doesn't look familiar.

What kernel version are you running on client and server?

Did this test previously pass on an older kernel (so, was this a recent
regression?)

Have you looked at generic/465 to see what exactly is happening here?

--b.

2019-09-02 08:46:56

by Su, Yanjun

[permalink] [raw]
Subject: Re: NFS issues about aio and dio test


在 2019/8/29 1:28, J. Bruce Fields 写道:
> On Mon, Aug 26, 2019 at 08:37:41AM +0800, Su Yanjun wrote:
>> Any ping?
>>
>> 在 2019/8/6 14:08, Su Yanjun 写道:
>>> Hi,
>>>
>>> When I tested xfstests generic/465 with NFS, there was something
>>> unexpected.
>>>
>>> When memory of NFS server was 10G, test passed.
>>> But when memory of NFS server was 4G, test failed.
>>>
>>> Fail message was as below.
>>>     non-aio dio test
>>>     encounter an error: block 4 offset 0, content 62
>>>     aio-dio test
>>>     encounter an error: block 1 offset 0, content 62
>>>
>>> All of the NFS versions(v3 v4.0 v4.1 v4.2) have  this problem.
>>> Maybe something is wrong about NFS's I/O operation.
>>>
>>> Thanks in advance.
> Off the top of my head it doesn't look familiar.
>
> What kernel version are you running on client and server?
client:4.18
server:4.18 (latest version:5.3.0-rc6+ also has this problem)
>
> Did this test previously pass on an older kernel (so, was this a recent
> regression?)
This test previously passed on 3.10 kernel.
> Have you looked at generic/465 to see what exactly is happening here?

generic/465 tests for  aio and dio function.

The memory usage is very low for th test case.

Not quite like a memory problem.

>
> --b.
>
Thanks in advance.

su