浏览代码

[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 年前
父节点
当前提交
6825b2e7bf
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      src/core/malloc.c

+ 2
- 2
src/core/malloc.c 查看文件

@@ -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 *) )));

正在加载...
取消
保存