Re: [2.6 patch] always export sysctl_{r,w}mem_max

From: David Miller
Date: Fri Oct 26 2007 - 19:52:47 EST


From: Rick Jones <rick.jones2@xxxxxx>
Date: Fri, 26 Oct 2007 16:46:36 -0700

> David Miller wrote:
> > If DLM really wants minimum, it can use SO_SNDBUFFORCE and
> > SO_RCVBUFFORCE socket options and use whatever limits it
> > likes.
> >
> > But even this is questionable.
>
> Drift...
>
> Is that something netperf should be using though? Right now it uses the regular
> SO_[SND|RCV]BUF calls and is at the mercy of sysctls. I wonder if it would be
> better to have it use their FORCE versions to make life easier on the
> benchmarker - such as myself - who has an unfortunate habit of forgetting to
> update sysctl.conf :)

The force calls are for root only.

And I want to remind you that explicitly setting socket
buffer sizes hurts performance with TCP. I know you know
this but it bears restating for the benefit of others.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/