Skip to contentSkip to conversation

Missing net sysctls, some fixed, rest flagged

PATCH In review bert hubert 3 participants 4 messages Jun 9, 2004 – Jun 16, 2004

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Missing net sysctls, some fixed, rest flagged

Dave, Lists,

I ran the following (crappy) script:

for b in $(for a in $(find | grep -v eth0 | grep -v binfmt)
do
basename $a
done | sort -u);
do
if rgrep -q $b ~/download/linux-2.6.6/Documentation/ then
touch /tmp/script
else
echo $b missing
fi
done

In /proc/sys/ and found a host of undocumented sysctls. This patch documents a number of them, and at least mentions the rest as 'TODO'. Please verify my code-inspired documentation before applying!

Documentation/networking/ip-sysctl.txt renamed from Documentation/networking/ip-sysctl.txt.ahu +55 -0
@@ -17,6 +17,16 @@
 	Disable Path MTU Discovery.
 	default FALSE
 
+min_pmtu - INTEGER
+	default 562 - minimum discovered Path MTU
+
+mtu_expires - INTEGER
+	FIXME: unknown
+
+min_adv_mss - INTEGER
+	The advertised MSS depends on the first hop route MTU, but will
+	never be lower than this setting
+
 IP Fragmentation:
 
 ipfrag_high_thresh - INTEGER
@@ -340,6 +350,17 @@
 	more rapidly.
 	Default: 1
 
+
+tcp_frto - BOOLEAN
+	Enables F-RTO, an enhanced recovery algorithm for TCP retransmission
+	timeouts
+
+somaxconn - INTEGER
+	Limit of TCP listen backlog, known in userspace as SOMAXCONN.
+	Defaults to 128
+
+IP Variables:
+
 ip_local_port_range - 2 INTEGERS
 	Defines the local port range that is used by TCP and UDP to
 	choose the local port. The first number is the first, the 
@@ -581,6 +602,19 @@
 	The max value from conf/{all,interface}/arp_ignore is used
 	when ARP request is received on the {interface}
 
+app_solicit - INTEGER
+	The maximum number of probes to send to the user space ARP daemon
+	via netlink before dropping back to multicast probes (see
+	mcast_solicit).  Defaults to 0.
+
+disable_policy - BOOLEAN
+	Disable IPSEC policy (SPD) for this interface
+
+disable_xfrm - BOOLEAN
+	Disable IPSEC encryption on this interface, whatever the policy
+
+
+
 tag - INTEGER
 	Allows you to write a number, which can be used as required.
 	Default value is 0.
@@ -799,4 +833,25 @@
 	Default: 1
 
 
+UNDOCUMENTED:
+
+dev_weight FIXME
+discovery_slots FIXME
+discovery_timeout FIXME
+fast_poll_increase FIXME
+ip6_queue_maxlen FIXME
+lap_keepalive_time FIXME
+lo_cong FIXME
+max_baud_rate FIXME
+max_dgram_qlen FIXME
+max_noreply_time FIXME
+max_tx_data_size FIXME
+max_tx_window FIXME
+min_tx_turn_time FIXME
+mod_cong FIXME
+no_cong FIXME
+no_cong_thresh FIXME
+slot_timeout FIXME
+warn_noreply_time FIXME
+
 $Id: ip-sysctl.txt,v 1.20 2001/12/13 09:00:18 davem Exp $
Documentation/filesystems/proc.txt renamed from Documentation/filesystems/proc.txt.ahu +2 -1
@@ -1628,7 +1628,8 @@
 
 Writing to this file results in a flush of the routing cache.
 
-gc_elastic, gc_interval, gc_min_interval, gc_tresh, gc_timeout
+gc_elasticity, gc_interval, gc_min_interval, gc_tresh, gc_timeout,
+gc_thresh, gc_thresh1, gc_thresh2, gc_thresh3
 --------------------------------------------------------------
 
 Values to  control  the  frequency  and  behavior  of  the  garbage collection
Signature · 2 lines
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO
#1 lore raw

Looks fine, I applied it with some minor changes as follows:

# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2004/06/15 20:20:25-07:00 [email protected]
# [NET]: Update some sysctl documentation.
#
# I ran the following (crappy) script:
# ...

#   In /proc/sys/ and found a host of undocumented sysctls. This patch documents
#   a number of them, and at least mentions the rest as 'TODO'. Please verify my
#   code-inspired documentation before applying!

#
# Signed-off-by: Bert Hubert <[email protected]>
# Signed-off-by: David S. Miller <[email protected]>
#
# Documentation/networking/ip-sysctl.txt
# 2004/06/15 20:19:32-07:00 [email protected] +57 -0
# [NET]: Update some sysctl documentation.
#
# I ran the following (crappy) script:
# ...

#   In /proc/sys/ and found a host of undocumented sysctls. This patch documents
#   a number of them, and at least mentions the rest as 'TODO'. Please verify my
#   code-inspired documentation before applying!

#
# Signed-off-by: Bert Hubert <[email protected]>
# Signed-off-by: David S. Miller <[email protected]>
#
# Documentation/filesystems/proc.txt
# 2004/06/15 20:19:32-07:00 [email protected] +2 -1
# [NET]: Update some sysctl documentation.
#
# I ran the following (crappy) script:
# ...

#   In /proc/sys/ and found a host of undocumented sysctls. This patch documents
#   a number of them, and at least mentions the rest as 'TODO'. Please verify my
#   code-inspired documentation before applying!

#
# Signed-off-by: Bert Hubert <[email protected]>
# Signed-off-by: David S. Miller <[email protected]>
#

Documentation/filesystems/proc.txt +2 -1
diff -Nru a/Documentation/filesystems/proc.txt b/Documentation/filesystems/proc.txt
@@ -1640,7 +1640,8 @@
 
 Writing to this file results in a flush of the routing cache.
 
-gc_elastic, gc_interval, gc_min_interval, gc_tresh, gc_timeout
+gc_elasticity, gc_interval, gc_min_interval, gc_tresh, gc_timeout,
+gc_thresh, gc_thresh1, gc_thresh2, gc_thresh3
 --------------------------------------------------------------
 
 Values to  control  the  frequency  and  behavior  of  the  garbage collection
Documentation/networking/ip-sysctl.txt +57 -0

80 lines not on this page · raw message

#2 lore raw

Documentation/networking/ip-sysctl.txt line 368

Quoted 6 lines · David S. Miller
Documentation/networking/ip-sysctl.txt +4 -0
+somaxconn - INTEGER
+	Limit of TCP listen backlog, known in userspace as SOMAXCONN.
+	Defaults to 128
+

Hmm...

I dont agree with the 'TCP' word here : listen() system call is not tied with TCP, isn't it ? I would suggest :

+somaxconn - INTEGER
+ Limit of socket listen() backlog, known in userspace as SOMAXCONN.
+ Defaults to 128. See also tcp_max_syn_backlog for additional tuning for TCP sockets.
+

Thank you

Eric Dumazet

#3 lore raw

Documentation/networking/ip-sysctl.txt line 368

Quoted 8 lines · On Wed, 16 Jun 2004 10:37:19 +0200 Eric Dumazet <[email protected]> wrote:

I dont agree with the 'TCP' word here : listen() system call is not tied with TCP, isn't it ?
I would suggest :

Documentation/networking/ip-sysctl.txt +4 -0
+somaxconn - INTEGER
+	Limit of socket listen() backlog, known in userspace as SOMAXCONN.
+	Defaults to 128. See also tcp_max_syn_backlog for additional tuning for TCP sockets.
+

Works for me. Applied.