-
Notifications
You must be signed in to change notification settings - Fork 519
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3140 from etungsten/1.14.1-cherrypicks
- Loading branch information
Showing
7 changed files
with
289 additions
and
91 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
packages/kernel-5.10/1003-af_unix-increase-default-max_dgram_qlen-to-512.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
From b3983ebbfa2dc231a2b61092b0a936bd25294239 Mon Sep 17 00:00:00 2001 | ||
From: Markus Boehme <[email protected]> | ||
Date: Tue, 23 May 2023 21:24:38 +0000 | ||
Subject: [PATCH] af_unix: increase default max_dgram_qlen to 512 | ||
|
||
The net.unix.max_dgram_qlen sysctl has been defined with a default value of | ||
10 since before the current Git history started in 2005. Systems have more | ||
resources these days, and while the default values for other sysctls like | ||
net.core.somaxconn have been adapted, max_dgram_qlen never was. | ||
|
||
Increase the default value for max_dgram_qlen to 512. A large number of | ||
hosts effectively already run with this or a larger value, since systemd | ||
has been making sure it is set to at least 512 since 2015. | ||
|
||
Signed-off-by: Markus Boehme <[email protected]> | ||
--- | ||
Documentation/networking/ip-sysctl.rst | 2 +- | ||
net/unix/af_unix.c | 2 +- | ||
2 files changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/Documentation/networking/ip-sysctl.rst b/Documentation/networking/ip-sysctl.rst | ||
index 252212998..164a65667 100644 | ||
--- a/Documentation/networking/ip-sysctl.rst | ||
+++ b/Documentation/networking/ip-sysctl.rst | ||
@@ -2688,5 +2688,5 @@ addr_scope_policy - INTEGER | ||
max_dgram_qlen - INTEGER | ||
The maximum length of dgram socket receive queue | ||
|
||
- Default: 10 | ||
+ Default: 512 | ||
|
||
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c | ||
index 28721e957..a5f081ad8 100644 | ||
--- a/net/unix/af_unix.c | ||
+++ b/net/unix/af_unix.c | ||
@@ -2948,7 +2948,7 @@ static int __net_init unix_net_init(struct net *net) | ||
{ | ||
int error = -ENOMEM; | ||
|
||
- net->unx.sysctl_max_dgram_qlen = 10; | ||
+ net->unx.sysctl_max_dgram_qlen = 512; | ||
if (unix_sysctl_register(net)) | ||
goto out; | ||
|
||
-- | ||
2.39.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
packages/kernel-5.15/1004-af_unix-increase-default-max_dgram_qlen-to-512.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
From e36140bfb2795377360bb92c343b10c717567c62 Mon Sep 17 00:00:00 2001 | ||
From: Markus Boehme <[email protected]> | ||
Date: Tue, 23 May 2023 17:16:44 +0000 | ||
Subject: [PATCH] af_unix: increase default max_dgram_qlen to 512 | ||
|
||
The net.unix.max_dgram_qlen sysctl has been defined with a default value of | ||
10 since before the current Git history started in 2005. Systems have more | ||
resources these days, and while the default values for other sysctls like | ||
net.core.somaxconn have been adapted, max_dgram_qlen never was. | ||
|
||
Increase the default value for max_dgram_qlen to 512. A large number of | ||
hosts effectively already run with this or a larger value, since systemd | ||
has been making sure it is set to at least 512 since 2015. | ||
|
||
Signed-off-by: Markus Boehme <[email protected]> | ||
--- | ||
Documentation/networking/ip-sysctl.rst | 2 +- | ||
net/unix/af_unix.c | 2 +- | ||
2 files changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/Documentation/networking/ip-sysctl.rst b/Documentation/networking/ip-sysctl.rst | ||
index 7890b395e..54a0be396 100644 | ||
--- a/Documentation/networking/ip-sysctl.rst | ||
+++ b/Documentation/networking/ip-sysctl.rst | ||
@@ -2885,5 +2885,5 @@ plpmtud_probe_interval - INTEGER | ||
max_dgram_qlen - INTEGER | ||
The maximum length of dgram socket receive queue | ||
|
||
- Default: 10 | ||
+ Default: 512 | ||
|
||
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c | ||
index a96026dbd..267ee6d29 100644 | ||
--- a/net/unix/af_unix.c | ||
+++ b/net/unix/af_unix.c | ||
@@ -3343,7 +3343,7 @@ static int __net_init unix_net_init(struct net *net) | ||
{ | ||
int error = -ENOMEM; | ||
|
||
- net->unx.sysctl_max_dgram_qlen = 10; | ||
+ net->unx.sysctl_max_dgram_qlen = 512; | ||
if (unix_sysctl_register(net)) | ||
goto out; | ||
|
||
-- | ||
2.39.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.