Skip to content

Commit d0c4382

Browse files
Colin Ian Kingkakra
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]>
1 parent f2a5b73 commit d0c4382

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/net/sock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2820,7 +2820,7 @@ void sk_get_meminfo(const struct sock *sk, u32 *meminfo);
28202820
* platforms. This makes socket queueing behavior and performance
28212821
* not depend upon such differences.
28222822
*/
2823-
#define _SK_MEM_PACKETS 256
2823+
#define _SK_MEM_PACKETS 1024
28242824
#define _SK_MEM_OVERHEAD SKB_TRUESIZE(256)
28252825
#define SK_WMEM_MAX (_SK_MEM_OVERHEAD * _SK_MEM_PACKETS)
28262826
#define SK_RMEM_MAX (_SK_MEM_OVERHEAD * _SK_MEM_PACKETS)

0 commit comments

Comments
 (0)