FreeBSD Bugzilla – Attachment 17683 Details for
Bug 32041
Add point about net.inet.tcp.portange.{first,last} sysctl tunable to tuning(7) manpage
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.42 KB, created by
mark
on 2001-11-16 18:30:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
mark
Created:
2001-11-16 18:30:01 UTC
Size:
1.42 KB
patch
obsolete
>--- tuning.7 Sat Nov 3 03:32:43 2001 >+++ - Thu Nov 15 19:10:11 2001 >@@ -332,6 +332,32 @@ > connections. > .Pp > The >+.Em net.inet.ip.portrange.first >+and >+.Em net.inet.ip.portrange.last >+tunables default to 1024 and 5000, respectively. These, like many other >+sysctl tunables, are designed to limit the use of kernel resources >+(i.e. port number space) unless there is an explicit requirement for >+more than this reasonable default. These are the port numbers >+allocated to sockets which were created with a >+.Xr socket 2 >+call where >+the port number parameter was zero. This default range of ports (3977 >+in total) is likely to be insufficient for a machine running a number >+of client programs of whatever description. The 'first' tunable can't >+be set below 1024, but may be set higher. >+The 'last' tunable will usually be the one that requires tweaking on >+a machine with numerous clients (that don't make use of the IP_PORTRANGE >+.Xr setsockopt 2 >+option). Assuming you have enough file descriptors and your client >+code uses >+.Xr perror 3 , >+you will see a message like "Can't assign requested address" >+(EADDRNOTAVAIL) or "Resource temporarily unavailable" (EAGAIN) if this is set >+too low for your application. See /usr/src/sys/netinet/in.h for more >+discussion. >+.Pp >+The > .Em kern.ipc.somaxconn > sysctl limits the size of the listen queue for accepting new tcp connections. > The default value of 128 is typically too low for robust handling of new
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 32041
: 17683