[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 07 Jul 2008 14:49:12 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: aglo@...i.umich.edu
Cc: shemminger@...tta.com, netdev@...r.kernel.org, rees@...ch.edu,
bfields@...ldses.org
Subject: Re: setsockopt()
From: Olga Kornievskaia <aglo@...i.umich.edu>
Date: Mon, 07 Jul 2008 17:30:49 -0400
> Auto-tuning would be guided by the sysctl values that are set for all
> applications. I could be wrong but what I see is that unless an
> application does a setsockopt(), its window is bound by the default
> sysctl value. If it is true, than it is not acceptable. It means that in
> order for NFSD to achieve a large enough window it needs to modify TCP's
> sysctl value which will effect all other applications.
This is nonsense.
The kernel autotunes the receive and send buffers based upon the
dynamic behavior of the connection.
The sysctls only control limits.
If you set the socket buffer sizes explicitly, you essentially turn
off half of the TCP stack because it won't do dynamic socket buffer
sizing afterwards.
There is no reason these days to ever explicitly set the socket
buffer sizes on TCP sockets under Linux.
If something is going wrong it's a bug and we should fix it.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists