root/gpxe/gpxe.diff

Revision 770f0c1ee49542fcbb857fa704c805a4dba67d25, 2.4 KB (checked in by H. Peter Anvin <hpa@…>, 2 years ago)

gPXE: change heap size to 512K

Change heap size from 128K to 512K to accommodate larger TCP windows.

Signed-off-by: H. Peter Anvin <hpa@…>

  • Property mode set to 100644
  • gpxe/src/config/general.h

    diff --git a/gpxe/src/config/general.h b/gpxe/src/config/general.h
    index 0a9e625..de51f9f 100644
    a b  
    5555 
    5656#define DOWNLOAD_PROTO_TFTP     /* Trivial File Transfer Protocol */ 
    5757#define DOWNLOAD_PROTO_HTTP     /* Hypertext Transfer Protocol */ 
    58 #undef  DOWNLOAD_PROTO_HTTPS    /* Secure Hypertext Transfer Protocol */ 
    59 #undef  DOWNLOAD_PROTO_FTP      /* File Transfer Protocol */ 
     58#define DOWNLOAD_PROTO_HTTPS    /* Secure Hypertext Transfer Protocol */ 
     59#define DOWNLOAD_PROTO_FTP      /* File Transfer Protocol */ 
    6060#undef  DOWNLOAD_PROTO_TFTM     /* Multicast Trivial File Transfer Protocol */ 
    6161#undef  DOWNLOAD_PROTO_SLAM     /* Scalable Local Area Multicast */ 
    6262 
  • gpxe/src/config/general.h

    diff --git a/gpxe/src/config/general.h b/gpxe/src/config/general.h
    index de51f9f..2f5a938 100644
    a b  
    3131 * Timer configuration 
    3232 * 
    3333 */ 
    34 #define BANNER_TIMEOUT  20      /* Tenths of a second for which the shell 
     34#define BANNER_TIMEOUT  0       /* Tenths of a second for which the shell 
    3535                                   banner should appear */ 
    3636 
    3737/* 
  • gpxe/src/hci/shell_banner.c

    diff --git a/gpxe/src/hci/shell_banner.c b/gpxe/src/hci/shell_banner.c
    index 8afefe3..b92e08e 100644
    a b  
    4141        int wait_count; 
    4242        int key; 
    4343 
     44        if ( BANNER_TIMEOUT <= 0 ) 
     45                return enter_shell; 
     46 
    4447        printf ( "\nPress Ctrl-B for the gPXE command line..." ); 
    4548 
    4649        /* Wait for key */ 
  • gpxe/src/include/gpxe/tcp.h

    diff --git a/gpxe/src/include/gpxe/tcp.h b/gpxe/src/include/gpxe/tcp.h
    index 7ae7eab..9dc39fc 100644
    a b  
    286286 * actually use 65536, we use a window size of (65536-4) to ensure 
    287287 * that payloads remain dword-aligned. 
    288288 */ 
    289 //#define TCP_MAX_WINDOW_SIZE   ( 65536 - 4 ) 
    290 #define TCP_MAX_WINDOW_SIZE     4096 
     289#define TCP_MAX_WINDOW_SIZE     ( 65536 - 4 ) 
     290//#define TCP_MAX_WINDOW_SIZE   4096 
    291291 
    292292/** 
    293293 * Path MTU 
  • gpxe/src/core/malloc.c

    diff --git a/gpxe/src/core/malloc.c b/gpxe/src/core/malloc.c
    index 8b0bc24..0153748 100644
    a b  
    7878/** 
    7979 * Heap size 
    8080 * 
    81  * Currently fixed at 128kB. 
     81 * Currently fixed at 512kB. 
    8282 */ 
    83 #define HEAP_SIZE ( 128 * 1024 ) 
     83#define HEAP_SIZE ( 512 * 1024 ) 
    8484 
    8585/** The heap itself */ 
    8686static char heap[HEAP_SIZE] __attribute__ (( aligned ( __alignof__(void *) ))); 
Note: See TracBrowser for help on using the browser.