From: Michael Brown Date: Sun, 8 Jul 2012 16:20:25 +0000 (+0100) Subject: [malloc] Increase heap size to 512kB X-Git-Tag: v1.20.1~1721 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6825b2e7bfc94e8758824bf0d81f8b98fde1968c;p=thirdparty%2Fipxe.git [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 --- diff --git a/src/core/malloc.c b/src/core/malloc.c index 8660f4493..1b8ac17e2 100644 --- a/src/core/malloc.c +++ b/src/core/malloc.c @@ -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 *) )));