Skip to content

Commit 479548a

Browse files
Colin Ian Kingxdevs23
authored andcommitted
net: sock: increase default number of _SK_MEM_PACKETS to 1024
scale these by a factor of 4 to improve socket performance Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Simão Gomes Viana <[email protected]>
1 parent 5fbe97a commit 479548a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/net/sock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2932,7 +2932,7 @@ void sk_get_meminfo(const struct sock *sk, u32 *meminfo);
29322932
* platforms. This makes socket queueing behavior and performance
29332933
* not depend upon such differences.
29342934
*/
2935-
#define _SK_MEM_PACKETS 256
2935+
#define _SK_MEM_PACKETS 1024
29362936
#define _SK_MEM_OVERHEAD SKB_TRUESIZE(256)
29372937
#define SK_WMEM_MAX (_SK_MEM_OVERHEAD * _SK_MEM_PACKETS)
29382938
#define SK_RMEM_MAX (_SK_MEM_OVERHEAD * _SK_MEM_PACKETS)

0 commit comments

Comments
 (0)