From 6825b2e7bfc94e8758824bf0d81f8b98fde1968c Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 8 Jul 2012 17:20:25 +0100 Subject: [PATCH] [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 --- src/core/malloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/malloc.c b/src/core/malloc.c index 8660f449..1b8ac17e 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 *) )));