RE: sunrpc: socket buffer size tuneable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: J. Bruce Fields [mailto:bfields@xxxxxxxxxxxx]
> Sent: Friday, January 25, 2013 4:21 PM
> To: Myklebust, Trond
> Cc: Ben Myers; Olga Kornievskaia; linux-nfs@xxxxxxxxxxxxxxx; Jim Rees
> Subject: Re: sunrpc: socket buffer size tuneable
> 
> On Fri, Jan 25, 2013 at 09:12:55PM +0000, Myklebust, Trond wrote:

> > Why is it not sufficient to clamp the TCP values of 'snd' and 'rcv' using
> sysctl_tcp_wmem/sysctl_tcp_rmem?
> > ...and clamp the UDP values using
> sysctl_[wr]mem_min/sysctl_[wr]mem_max?.
> 
> Yeah, I was just looking at that--so, Ben, something like:
> 
> 	echo "1048576 1048576 4194304" >/proc/sys/net/ipv4/tcp_wmem
> 
> But I'm unclear on some of the details: do we need to set the minimum or
> only the default?  And does it need any more allowance for protocol
> overhead?

I meant adding a check either to svc_sock_setbufsize or to the 2 call-sites that enforces the above limits.

Trond
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux