Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1oaHnf-0003LB-OS for mharc-grub-devel@gnu.org; Mon, 19 Sep 2022 10:31:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oaHne-0003Iy-Fe for grub-devel@gnu.org; Mon, 19 Sep 2022 10:31:06 -0400 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]:42520) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oaHnZ-0002Kz-Tv for grub-devel@gnu.org; Mon, 19 Sep 2022 10:31:05 -0400 Received: by mail-pj1-x1030.google.com with SMTP id s90-20020a17090a2f6300b00203a685a1aaso285658pjd.1 for ; Mon, 19 Sep 2022 07:31:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axtens.net; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=6+EZBrcs/Xe1NIZeuOL+H0ADrZdaEiJTMsmIped4RJQ=; b=KDDXDbniHVyWvi8WmOZFcVe28XSo/69DFpWnJmlL9RNaqLfuheF0Ico0UYQQL58lre HlU9PrkVJXzswpngtW47ymMZQghaCRfFtGuqAkTRMT7vvxdryDgkUCrtXSM8GNXr1Kiw vF4nyM/fJKYf6VQx6biNYEY64A3LrSu+vv8qI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=6+EZBrcs/Xe1NIZeuOL+H0ADrZdaEiJTMsmIped4RJQ=; b=aL2DZOw+LSJoQ0Agin1AoFByekBbGcdKbO7odhAcrBNweMJairebv9dGE0vJZh7vFh c+OzN2gYVqTwjsSwG1Bzo9fnWSZ1fx40LEes6OhScrupCJQY7eNaOpoWD8+eS76L/KVW wCayqTj8MJ6Pg4maZDfQBJ6vSWd27SkCeIhb6I4RecF51VoZQtlL5irf//S3cycnNhNF ZvgkctZVoii3iukpQpaT/zq9gOW0hvwO2c0tAjGfebW5Zzmw6u9zwHX8KVBTuvBSm17n RiZ47Mr8KxIQeS278rafqDJgyM09f9qD9j9gYf2oDl5zsbqvvqqBnmZxZkyJHI7cfU5/ mueg== X-Gm-Message-State: ACgBeo2y81AwKiT6fg23pkA1ltW48zpCFAO6UsI6phsMsXtltV1TMbG0 NtcbFSOLYE7ioZ4pefqMjx6NacmUT31+rA== X-Google-Smtp-Source: AMsMyM5EgLX6uvI81THUT96UCfCwP/zhI4wG3qzDaSWr4/A+yY4fy4NbRh3qMyTsPMZ6vrn+ys82RA== X-Received: by 2002:a17:90b:350d:b0:202:ff91:a0bd with SMTP id ls13-20020a17090b350d00b00202ff91a0bdmr31327462pjb.46.1663597859737; Mon, 19 Sep 2022 07:30:59 -0700 (PDT) Received: from linkitivity.lan ([2001:4479:e300:5b00:d865:3ff8:c9bd:3254]) by smtp.gmail.com with ESMTPSA id b186-20020a62cfc3000000b005480167b921sm12252276pfg.172.2022.09.19.07.30.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Sep 2022 07:30:59 -0700 (PDT) From: Daniel Axtens To: grub-devel@gnu.org Cc: Daniel Axtens Subject: [PATCH] efi: Increase default memory allocation to 32MB Date: Tue, 20 Sep 2022 00:30:30 +1000 Message-Id: <20220919143030.355141-1-dja@axtens.net> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=dja@axtens.net; helo=mail-pj1-x1030.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2022 14:31:06 -0000 We have multiple reports of things being slower with a 1MB initial static allocation, and a report (more difficult to nail down) of a boot failure as a result of the smaller initial allocation. Make the initial memory allocation 32MB. Signed-off-by: Daniel Axtens --- grub-core/kern/efi/mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grub-core/kern/efi/mm.c b/grub-core/kern/efi/mm.c index d290c9a76270..3705b8b1b465 100644 --- a/grub-core/kern/efi/mm.c +++ b/grub-core/kern/efi/mm.c @@ -39,7 +39,7 @@ #define MEMORY_MAP_SIZE 0x3000 /* The default heap size for GRUB itself in bytes. */ -#define DEFAULT_HEAP_SIZE 0x100000 +#define DEFAULT_HEAP_SIZE 0x2000000 static void *finish_mmap_buf = 0; static grub_efi_uintn_t finish_mmap_size = 0; -- 2.25.1