summaryrefslogtreecommitdiffstats
path: root/src/core/malloc.c
diff options
context:
space:
mode:
authorMichael Brown2012-07-08 18:20:25 +0200
committerMichael Brown2012-07-09 11:13:47 +0200
commit6825b2e7bfc94e8758824bf0d81f8b98fde1968c (patch)
tree6b952f34c8d1b75a93942ef8c6b1fbc0f7683b5b /src/core/malloc.c
parent[tcp] Truncate TCP window to prevent future packet discards (diff)
downloadipxe-6825b2e7bfc94e8758824bf0d81f8b98fde1968c.tar.gz
ipxe-6825b2e7bfc94e8758824bf0d81f8b98fde1968c.tar.xz
ipxe-6825b2e7bfc94e8758824bf0d81f8b98fde1968c.zip
[malloc] Increase heap size to 512kB
The maximum TCP throughput is fundamentally limited by the amount of available receive buffer space. Increase the heap size from 128kB to 512kB to allow the use of larger TCP windows. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core/malloc.c')
-rw-r--r--src/core/malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/malloc.c b/src/core/malloc.c
index 8660f449..1b8ac17e 100644
--- a/src/core/malloc.c
+++ b/src/core/malloc.c
@@ -91,9 +91,9 @@ size_t freemem;
/**
* Heap size
*
- * Currently fixed at 128kB.
+ * Currently fixed at 512kB.
*/
-#define HEAP_SIZE ( 128 * 1024 )
+#define HEAP_SIZE ( 512 * 1024 )
/** The heap itself */
static char heap[HEAP_SIZE] __attribute__ (( aligned ( __alignof__(void *) )));