Skip to content

Commit 7312395

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 d883ad2 commit 7312395

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
@@ -2814,7 +2814,7 @@ void sk_get_meminfo(const struct sock *sk, u32 *meminfo);
28142814
* platforms. This makes socket queueing behavior and performance
28152815
* not depend upon such differences.
28162816
*/
2817-
#define _SK_MEM_PACKETS 256
2817+
#define _SK_MEM_PACKETS 1024
28182818
#define _SK_MEM_OVERHEAD SKB_TRUESIZE(256)
28192819
#define SK_WMEM_MAX (_SK_MEM_OVERHEAD * _SK_MEM_PACKETS)
28202820
#define SK_RMEM_MAX (_SK_MEM_OVERHEAD * _SK_MEM_PACKETS)

0 commit comments

Comments
 (0)