Browse Source

[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>
tags/v1.20.1
Michael Brown 12 years ago
parent
commit
6825b2e7bf
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/core/malloc.c

+ 2
- 2
src/core/malloc.c View File

@@ -91,9 +91,9 @@ size_t freemem;
91 91
 /**
92 92
  * Heap size
93 93
  *
94
- * Currently fixed at 128kB.
94
+ * Currently fixed at 512kB.
95 95
  */
96
-#define HEAP_SIZE ( 128 * 1024 )
96
+#define HEAP_SIZE ( 512 * 1024 )
97 97
 
98 98
 /** The heap itself */
99 99
 static char heap[HEAP_SIZE] __attribute__ (( aligned ( __alignof__(void *) )));

Loading…
Cancel
Save