]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[malloc] Increase heap size to 512kB
authorMichael Brown <mcb30@ipxe.org>
Sun, 8 Jul 2012 16:20:25 +0000 (17:20 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 9 Jul 2012 09:13:47 +0000 (10:13 +0100)
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>
src/core/malloc.c

index 8660f44936b852c27a2c006b6cf8cb8d31c15a34..1b8ac17e24367a3cc34b3ca7fd017b350cea1813 100644 (file)
@@ -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 *) )));