Skip to content

Commit 9d60df4

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 <colin.i.king@intel.com>
1 parent db1d2e3 commit 9d60df4

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
@@ -3006,7 +3006,7 @@ void sk_get_meminfo(const struct sock *sk, u32 *meminfo);
30063006
* platforms. This makes socket queueing behavior and performance
30073007
* not depend upon such differences.
30083008
*/
3009-
#define _SK_MEM_PACKETS 256
3009+
#define _SK_MEM_PACKETS 1024
30103010
#define _SK_MEM_OVERHEAD SKB_TRUESIZE(256)
30113011
#define SK_WMEM_DEFAULT (_SK_MEM_OVERHEAD * _SK_MEM_PACKETS)
30123012
#define SK_RMEM_DEFAULT (_SK_MEM_OVERHEAD * _SK_MEM_PACKETS)

0 commit comments

Comments
 (0)