gPXE: change heap size to 512K
authorH. Peter Anvin <hpa@zytor.com>
Thu, 4 Feb 2010 19:18:36 +0000 (11:18 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Sat, 6 Feb 2010 00:41:52 +0000 (16:41 -0800)
Change heap size from 128K to 512K to accommodate larger TCP windows.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
gpxe/gpxe.diff
gpxe/src/core/malloc.c

index 16ab1c9..57e5f41 100644 (file)
@@ -55,3 +55,19 @@ index 7ae7eab..9dc39fc 100644
  
  /**
   * Path MTU
+diff --git a/gpxe/src/core/malloc.c b/gpxe/src/core/malloc.c
+index 8b0bc24..0153748 100644
+--- a/gpxe/src/core/malloc.c
++++ b/gpxe/src/core/malloc.c
+@@ -78,9 +78,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 *) )));
index 8b0bc24..0153748 100644 (file)
@@ -78,9 +78,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 *) )));