Parcourir la 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 il y a 13 ans
Parent
révision
6825b2e7bf
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2
    2
      src/core/malloc.c

+ 2
- 2
src/core/malloc.c Voir le fichier

91
 /**
91
 /**
92
  * Heap size
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
 /** The heap itself */
98
 /** The heap itself */
99
 static char heap[HEAP_SIZE] __attribute__ (( aligned ( __alignof__(void *) )));
99
 static char heap[HEAP_SIZE] __attribute__ (( aligned ( __alignof__(void *) )));

Chargement…
Annuler
Enregistrer