LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   SocketBuffer (https://www.linuxquestions.org/questions/linux-networking-3/socketbuffer-4175735329/)

KatrinAlec 03-26-2024 06:42 AM

SocketBuffer
 
conntrackd.conf

Can someone please clarify if there is a parameter

SocketBufferSizeMaxGrown
or if that is a typo for
SocketBufferSizeMaxGrowth

I don't quite understand how it works because I don't see a difference when I change either.
Shouldn't it change something in
sysctl -A | grep mem

?

pan64 03-26-2024 07:20 AM

Socket buffer size can grow if needed, SocketBufferSizeMaxGrown is the upper limit.

KatrinAlec 03-26-2024 07:23 AM

So it is SocketBufferSizeMax...GROWN and not ...GROWTH?

boughtonp 03-26-2024 08:37 AM


 
I've never seen a config file use past tense before.

Looking at man conntrackd.conf the only option containing "grow" is "NetlinkBufferSizeMaxGrowth"

However, the "See Also" section points at something claiming to be a manual - //conntrack-tools.netfilter.org/manual.html - searching for "grow" there returns a single instance, in the sentence "You can increase the values of SocketBufferSize and SocketBufferSizeMaxGrown."

Searching the netfilter site, reveals a 2008 commit with the message:
Quote:

doc: fix typo SocketBufferSizeMaxGrowth in example conffiles

This patch replaces SocketBufferSizeMaxGrown by SocketBufferSizeMaxGrowth. Both clauses are still valid but better to use the one that has no typos in the configuration files.
So yes, it's a typo.

You might like to raise an issue with NetFilter pointing out that the manual.html page is 16 years out of date.

(It might also mean that whatever config file you're looking at is similarly out of date.)


KatrinAlec 03-26-2024 08:46 AM

Thanks :)
I must have found it somewhere on the web ages ago and only now I noticed that "grown" doesn't make much sense.

pan64 03-26-2024 09:08 AM

quite a stubborn mistake


All times are GMT -5. The time now is 11:04 PM.