All of lore.kernel.org
 help / color / mirror / Atom feed
* [NFS] read-ahead in NFS server
@ 2007-12-25 15:34 saeed bishara
       [not found] ` <c70ff3ad0712250734u2f9512f8j1e04f1179a4e2616-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: saeed bishara @ 2007-12-25 15:34 UTC (permalink / raw)
  To: nfs; +Cc: saeed bishara

Hi,
my NFS server seems not to utilize the read-ahead feature, my exported
dir is located on ext3 fs over sata disk. the sata controller can
issue commands up to 1MB, also I modified the read ahead under the sys
to 1MB. but when the client do reads in 32KB chunks (rsize), I can see
in the server side that all IOs are ~32KB. my kernel version is
2.6.22.7.
does the NFS server utilizes the read-ahead feature? what should I do
to enable it?

please CC me as I'm not subscribed to this list.
saeed

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
_______________________________________________
Please note that nfs@lists.sourceforge.net is being discontinued.
Please subscribe to linux-nfs@vger.kernel.org instead.
    http://vger.kernel.org/vger-lists.html#linux-nfs


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

* Re: [NFS] read-ahead in NFS server
       [not found] ` <c70ff3ad0712250734u2f9512f8j1e04f1179a4e2616-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2007-12-31  4:33   ` Dean Hildebrand
  2007-12-31 13:43     ` saeed bishara
  0 siblings, 1 reply; 3+ messages in thread
From: Dean Hildebrand @ 2007-12-31  4:33 UTC (permalink / raw)
  To: saeed bishara; +Cc: nfs

My understanding is that readahead is a client concept, in the sense 
that the nfs client and ext3 are both clients.  The NFS client performs 
readahead, which is carried out as a series of 32 KB requests.  The 
exported file system client, ext3 in your case, will decide how best to 
react to these requests and perform readahead, etc as necessary.  The 
NFS server only relays the I/O requests to the underlying file system, 
although it might delay (on linux) or gather the requests for maximum 
performance.

I believe ext3 uses the standard linux readahead mechanism, so readahead 
should be occurring.  How are you determining on the server that ext3 is 
only issuing 32KB requests to the disks?  I bet that the nfs server is 
passing 32 KB requests to ext3, which in turn is issuing larger requests 
to the disks.

Another thing to do is on linux you can increase the rsize to 1 MB to 
get larger chunks out of the disks.

Dean

saeed bishara wrote:
> Hi,
> my NFS server seems not to utilize the read-ahead feature, my exported
> dir is located on ext3 fs over sata disk. the sata controller can
> issue commands up to 1MB, also I modified the read ahead under the sys
> to 1MB. but when the client do reads in 32KB chunks (rsize), I can see
> in the server side that all IOs are ~32KB. my kernel version is
> 2.6.22.7.
> does the NFS server utilizes the read-ahead feature? what should I do
> to enable it?
>
> please CC me as I'm not subscribed to this list.
> saeed
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> NFS maillist  -  NFS@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nfs
> _______________________________________________
> Please note that nfs@lists.sourceforge.net is being discontinued.
> Please subscribe to linux-nfs@vger.kernel.org instead.
>     http://vger.kernel.org/vger-lists.html#linux-nfs
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
_______________________________________________
Please note that nfs@lists.sourceforge.net is being discontinued.
Please subscribe to linux-nfs@vger.kernel.org instead.
    http://vger.kernel.org/vger-lists.html#linux-nfs


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

* Re: [NFS] read-ahead in NFS server
  2007-12-31  4:33   ` Dean Hildebrand
@ 2007-12-31 13:43     ` saeed bishara
  0 siblings, 0 replies; 3+ messages in thread
From: saeed bishara @ 2007-12-31 13:43 UTC (permalink / raw)
  To: Dean Hildebrand; +Cc: nfs

>
> I believe ext3 uses the standard linux readahead mechanism, so readahead
> should be occurring.  How are you determining on the server that ext3 is
> only issuing 32KB requests to the disks?
I use sar -du to see the actual requests average size that handled by
the sata driver.

 I bet that the nfs server is
> passing 32 KB requests to ext3, which in turn is issuing larger requests
> to the disks.
>
> Another thing to do is on linux you can increase the rsize to 1 MB to
> get larger chunks out of the disks.
it seems this is known issue with NFSv3 that is resolved in version 4,
please see my commit to the linux kernel mailing list:

http://lkml.org/lkml/2007/12/27/172

thanks
saeed

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs
_______________________________________________
Please note that nfs@lists.sourceforge.net is being discontinued.
Please subscribe to linux-nfs@vger.kernel.org instead.
    http://vger.kernel.org/vger-lists.html#linux-nfs


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

end of thread, other threads:[~2007-12-31 13:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-25 15:34 [NFS] read-ahead in NFS server saeed bishara
     [not found] ` <c70ff3ad0712250734u2f9512f8j1e04f1179a4e2616-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-12-31  4:33   ` Dean Hildebrand
2007-12-31 13:43     ` saeed bishara

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.