* NFS client send out of order offsets....
@ 2010-04-23 21:56 Steve Dickson
2010-04-23 22:09 ` Trond Myklebust
2010-04-24 8:40 ` Bathie, Jon
0 siblings, 2 replies; 4+ messages in thread
From: Steve Dickson @ 2010-04-23 21:56 UTC (permalink / raw)
To: Linux NFS Mailing list, Trond Myklebust
Hey Trond (and all),
It been brought to my attention that Linux NFS clients, with big-ish
writes (8GB and above), quickly started sending out writes with
out-of-order offsets... Meaning in the start of an 8GB write a 7GB offset
will be send and then smaller offsets, closer to the the beginning
of the file, will follow.
Now I realize this is perfectly fine from a protocol standpoint and (w/out
any on hands investigation) pretty sure it has to do with how pages are
being kicked out of the cache (i.e. memory pressure), meaning is
not an NFS issue at all... but...
It was also point out to me that this type of out of order-ness does
not happen with Solaris clients and with an AIX clients there is some
mount option fix out of order-ness...
So my question is there some way to tweak the client to ensure
offset are send sequential order...
Note this happening on a older kernel, so before I go off and
"re-invent the wheel", I was wonder if other people have seen this
issue and has it been addressed...
tia,
steved.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: NFS client send out of order offsets....
2010-04-23 21:56 NFS client send out of order offsets Steve Dickson
@ 2010-04-23 22:09 ` Trond Myklebust
2010-04-23 22:26 ` Steve Dickson
2010-04-24 8:40 ` Bathie, Jon
1 sibling, 1 reply; 4+ messages in thread
From: Trond Myklebust @ 2010-04-23 22:09 UTC (permalink / raw)
To: Steve Dickson; +Cc: Linux NFS Mailing list
On Fri, 2010-04-23 at 17:56 -0400, Steve Dickson wrote:
> Hey Trond (and all),
>
> It been brought to my attention that Linux NFS clients, with big-ish
> writes (8GB and above), quickly started sending out writes with
> out-of-order offsets... Meaning in the start of an 8GB write a 7GB offset
> will be send and then smaller offsets, closer to the the beginning
> of the file, will follow.
>
> Now I realize this is perfectly fine from a protocol standpoint and (w/out
> any on hands investigation) pretty sure it has to do with how pages are
> being kicked out of the cache (i.e. memory pressure), meaning is
> not an NFS issue at all... but...
>
> It was also point out to me that this type of out of order-ness does
> not happen with Solaris clients and with an AIX clients there is some
> mount option fix out of order-ness...
>
> So my question is there some way to tweak the client to ensure
> offset are send sequential order...
>
> Note this happening on a older kernel, so before I go off and
> "re-invent the wheel", I was wonder if other people have seen this
> issue and has it been addressed...
>
> tia,
>
> steved.
The NFS layer will always write out pages in order whenever it initiates
a flush.
The problem here is the VM's use of the 'range_cyclic' writeback control
option in functions like 'balance_dirty_pages()' and in the kflush
daemons.
That neither can nor should be fixed in the NFS layer. It really needs
to be addressed in the VM.
Cheers
Trond
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: NFS client send out of order offsets....
2010-04-23 22:09 ` Trond Myklebust
@ 2010-04-23 22:26 ` Steve Dickson
0 siblings, 0 replies; 4+ messages in thread
From: Steve Dickson @ 2010-04-23 22:26 UTC (permalink / raw)
To: Trond Myklebust; +Cc: Linux NFS Mailing list
On 04/23/2010 06:09 PM, Trond Myklebust wrote:
> On Fri, 2010-04-23 at 17:56 -0400, Steve Dickson wrote:
>> Hey Trond (and all),
>>
>> It been brought to my attention that Linux NFS clients, with big-ish
>> writes (8GB and above), quickly started sending out writes with
>> out-of-order offsets... Meaning in the start of an 8GB write a 7GB offset
>> will be send and then smaller offsets, closer to the the beginning
>> of the file, will follow.
>>
>> Now I realize this is perfectly fine from a protocol standpoint and (w/out
>> any on hands investigation) pretty sure it has to do with how pages are
>> being kicked out of the cache (i.e. memory pressure), meaning is
>> not an NFS issue at all... but...
>>
>> It was also point out to me that this type of out of order-ness does
>> not happen with Solaris clients and with an AIX clients there is some
>> mount option fix out of order-ness...
>>
>> So my question is there some way to tweak the client to ensure
>> offset are send sequential order...
>>
>> Note this happening on a older kernel, so before I go off and
>> "re-invent the wheel", I was wonder if other people have seen this
>> issue and has it been addressed...
>>
>> tia,
>>
>> steved.
>
> The NFS layer will always write out pages in order whenever it initiates
> a flush.
>
> The problem here is the VM's use of the 'range_cyclic' writeback control
> option in functions like 'balance_dirty_pages()' and in the kflush
> daemons.
> That neither can nor should be fixed in the NFS layer. It really needs
> to be addressed in the VM.
>
Understood... completely....
But I wonder if there some vm tweak (via sysctl) that would
give a better chance of having things go out in order...
steved.
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: NFS client send out of order offsets....
2010-04-23 21:56 NFS client send out of order offsets Steve Dickson
2010-04-23 22:09 ` Trond Myklebust
@ 2010-04-24 8:40 ` Bathie, Jon
1 sibling, 0 replies; 4+ messages in thread
From: Bathie, Jon @ 2010-04-24 8:40 UTC (permalink / raw)
To: Steve Dickson, Linux NFS Mailing list, Trond Myklebust
Steve,
Further investigation sonce we spoke has shown that our intial Solaris data point may have been spurious.
However, we still think that both Solaris and HP-UX have options to force "ordering" of data between client and server.
Jon.
-----Original Message-----
From: Steve Dickson [mailto:SteveD@redhat.com]
Sent: 23 April 2010 22:56
To: Linux NFS Mailing list; Trond Myklebust
Subject: NFS client send out of order offsets....
Hey Trond (and all),
It been brought to my attention that Linux NFS clients, with big-ish writes (8GB and above), quickly started sending out writes with out-of-order offsets... Meaning in the start of an 8GB write a 7GB offset will be send and then smaller offsets, closer to the the beginning of the file, will follow.
Now I realize this is perfectly fine from a protocol standpoint and (w/out any on hands investigation) pretty sure it has to do with how pages are being kicked out of the cache (i.e. memory pressure), meaning is not an NFS issue at all... but...
It was also point out to me that this type of out of order-ness does not happen with Solaris clients and with an AIX clients there is some mount option fix out of order-ness...
So my question is there some way to tweak the client to ensure offset are send sequential order...
Note this happening on a older kernel, so before I go off and "re-invent the wheel", I was wonder if other people have seen this issue and has it been addressed...
tia,
steved.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-04-24 8:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-23 21:56 NFS client send out of order offsets Steve Dickson
2010-04-23 22:09 ` Trond Myklebust
2010-04-23 22:26 ` Steve Dickson
2010-04-24 8:40 ` Bathie, Jon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox