2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-11-25 19:08:35 +00:00

[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>
This commit is contained in:
Michael Brown 2012-07-08 17:20:25 +01:00
parent a5d16a91af
commit 6825b2e7bf

View File

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