Skip to content

Commit ee83136

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 63b366d commit ee83136

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
@@ -2912,7 +2912,7 @@ void sk_get_meminfo(const struct sock *sk, u32 *meminfo);
29122912
* platforms. This makes socket queueing behavior and performance
29132913
* not depend upon such differences.
29142914
*/
2915-
#define _SK_MEM_PACKETS 256
2915+
#define _SK_MEM_PACKETS 1024
29162916
#define _SK_MEM_OVERHEAD SKB_TRUESIZE(256)
29172917
#define SK_WMEM_MAX (_SK_MEM_OVERHEAD * _SK_MEM_PACKETS)
29182918
#define SK_RMEM_MAX (_SK_MEM_OVERHEAD * _SK_MEM_PACKETS)

0 commit comments

Comments
 (0)