Skip to content

Commit 22bb3b7

Browse files
committed
net/9p: increase tcp max msize to 1MB
Historically TCP has been limited to 64K buffers, but increasing msize provides huge performance benefits especially as latency increase so allow for bigger buffers. Ideally further improvements could change the allocation from the current contiguous chunk in slab (kmem_cache) to some scatter-gather compatible API... Note this only increases the max possible setting, not the default value. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Dominique Martinet <[email protected]>
1 parent 732b33d commit 22bb3b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/9p/trans_fd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include <linux/syscalls.h> /* killme */
3535

3636
#define P9_PORT 564
37-
#define MAX_SOCK_BUF (64*1024)
37+
#define MAX_SOCK_BUF (1024*1024)
3838
#define MAXPOLLWADDR 2
3939

4040
static struct p9_trans_module p9_tcp_trans;

0 commit comments

Comments
 (0)