All of lore.kernel.org
 help / color / mirror / Atom feed
* Different NFSSVC_MAXBLKSIZE for udp and tcp clients?
@ 2003-11-25 17:34 James Pearson
  2003-11-26  1:08 ` Greg Banks
  0 siblings, 1 reply; 13+ messages in thread
From: James Pearson @ 2003-11-25 17:34 UTC (permalink / raw)
  To: nfs

Is it possible to force a different maximum [rw]size on the server
depending on whether the client uses udp or tcp?

Currently, when a client NFS mounts a file system without specifying a
[rw]size, it defaults to whatever NFSSVC_MAXBLKSIZE was defined as (at
compile time) on the server. However, this is the same for udp and tcp
clients.

What I would like is to have a smaller default [rw]size for udp clients,
but allow tcp clients to use 32k.

Is this possible?

Thanks

James Pearson


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: Different NFSSVC_MAXBLKSIZE for udp and tcp clients?
@ 2003-11-26 14:20 Lever, Charles
  2003-11-27  0:08 ` Greg Banks
  0 siblings, 1 reply; 13+ messages in thread
From: Lever, Charles @ 2003-11-26 14:20 UTC (permalink / raw)
  To: James Pearson, Greg Banks; +Cc: nfs

here's a vote for leaving these values variable rather than
fixed on the server side.  48KB maximum for UDP is great on
a clean network, but some folks would probably prefer setting
it to 8KB to ensure clients on more realistically congested
networks retain reasonable UDP performance.

is there any evidence to show that a 4MB TCP maximum will
have benefits over something smaller, like say 1MB ?  as
the per-op costs go down when you add more data, the per-byte
costs will become the major part of the overhead for such
operations.  there's probably a sweet spot where the sum
of both per-op and per-byte costs reach a minimum.  as
far as i can tell that value is around 16KB in the current
Linux client implementations.


> -----Original Message-----
> From: James Pearson [mailto:james-p@moving-picture.com]=20
> Sent: Wednesday, November 26, 2003 5:44 AM
> To: Greg Banks; Trond Myklebust
> Cc: nfs@lists.sourceforge.net
> Subject: Re: [NFS] Different NFSSVC_MAXBLKSIZE for udp and=20
> tcp clients?
>=20
>=20
> Greg Banks wrote:
> >=20
> > James Pearson wrote:
> > >
> > > Is it possible to force a different maximum [rw]size on the server
> > > depending on whether the client uses udp or tcp?
> >=20
> > If someone writes the code, e.g. some new export options?
>=20
> Do you know if this would be possible with 2.4 kernels?
>=20
> If it is possible, and someone could give me some pointers, I=20
> won't mind
> giving it a a go ...
>=20
> James Pearson
>=20
>=20
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> NFS maillist  -  NFS@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nfs
>=20


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

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

end of thread, other threads:[~2003-11-27  1:34 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-25 17:34 Different NFSSVC_MAXBLKSIZE for udp and tcp clients? James Pearson
2003-11-26  1:08 ` Greg Banks
2003-11-26  1:40   ` Trond Myklebust
2003-11-26  1:51     ` Greg Banks
2003-11-26  2:00       ` Trond Myklebust
2003-11-26 10:43   ` James Pearson
2003-11-26 22:15     ` Neil Brown
2003-11-27  0:21       ` Greg Banks
2003-11-27  0:35         ` Neil Brown
2003-11-27  1:33           ` Greg Banks
  -- strict thread matches above, loose matches on Subject: below --
2003-11-26 14:20 Lever, Charles
2003-11-27  0:08 ` Greg Banks
2003-11-27  0:53   ` Trond Myklebust

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.