Ver código fonte

[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 anos atrás
pai
commit
6825b2e7bf
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      src/core/malloc.c

+ 2
- 2
src/core/malloc.c Ver arquivo

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

Carregando…
Cancelar
Salvar