-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This add a new sysctl: net.smc.autocorking_size We can dynamically change the behaviour of autocorking by change the value of autocorking_size. Setting to 0 disables autocorking in SMC Signed-off-by: Dust Li <dust.li@linux.alibaba.com> Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Dust Li
authored and
David S. Miller
committed
Mar 1, 2022
1 parent
dcd2cf5
commit 12bbb0d
Showing
4 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
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,23 @@ | ||
.. SPDX-License-Identifier: GPL-2.0 | ||
========= | ||
SMC Sysctl | ||
========= | ||
|
||
/proc/sys/net/smc/* Variables | ||
============================== | ||
|
||
autocorking_size - INTEGER | ||
Setting SMC auto corking size: | ||
SMC auto corking is like TCP auto corking from the application's | ||
perspective of view. When applications do consecutive small | ||
write()/sendmsg() system calls, we try to coalesce these small writes | ||
as much as possible, to lower total amount of CDC and RDMA Write been | ||
sent. | ||
autocorking_size limits the maximum corked bytes that can be sent to | ||
the under device in 1 single sending. If set to 0, the SMC auto corking | ||
is disabled. | ||
Applications can still use TCP_CORK for optimal behavior when they | ||
know how/when to uncork their sockets. | ||
|
||
Default: 64K |
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