mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-30 10:38:55 +00:00
d426c5e6c2
Ported drivers list and extract all needed source files. This decouples ports according to contrib sources and also enables us to revert lxip to Linux version 3.9, while staying with 3.14 for usb. Fixes #1285
33 lines
1.0 KiB
Diff
33 lines
1.0 KiB
Diff
From 8b2f74f2258b62ca0e62656cdccbc9159aeab893 Mon Sep 17 00:00:00 2001
|
|
From: Sebastian Sumpf <sebastian.sumpf@genode-labs.com>
|
|
Date: Tue, 6 Aug 2013 16:12:54 +0200
|
|
Subject: [PATCH] L4Linux: Increase TCP-window size
|
|
|
|
TCP window size is calculated by the amount of memory within L4Linux, use a
|
|
larger window size to allow acceptable performance even on smaller VMs.
|
|
---
|
|
net/ipv4/tcp.c | 7 +++++++
|
|
1 file changed, 7 insertions(+)
|
|
|
|
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
|
|
index e220207..29613bf 100644
|
|
--- a/net/ipv4/tcp.c
|
|
+++ b/net/ipv4/tcp.c
|
|
@@ -3648,6 +3648,13 @@ void __init tcp_init(void)
|
|
tcp_init_mem(&init_net);
|
|
/* Set per-socket limits to no more than 1/128 the pressure threshold */
|
|
limit = nr_free_buffer_pages() << (PAGE_SHIFT - 7);
|
|
+
|
|
+ /*
|
|
+ * Adjust limit so it performs well on systems with little memory. If
|
|
+ * this causes errors increase L4Linux main memory
|
|
+ */
|
|
+ limit = limit < 1024U * 1024 ? 1024U * 1024 : limit;
|
|
+
|
|
max_wshare = min(4UL*1024*1024, limit);
|
|
max_rshare = min(6UL*1024*1024, limit);
|
|
|
|
--
|
|
1.8.4
|
|
|