From: Patrick Steinhardt <ps@pks.im>
To: Daniel Kiper <dkiper@net-space.pl>
Cc: Daniel Axtens <dja@axtens.net>,
grub-devel@gnu.org, droidbittin@gmail.com, glin@suse.com,
heinrich.schuchardt@canonical.com, jim945@mail.ru,
langner.marcel@myiq.de, marcan@marcan.st,
zhangboyang.id@gmail.com
Subject: Re: [PATCH] efi: Increase default memory allocation to 32MB
Date: Sun, 25 Sep 2022 16:03:34 +0200 [thread overview]
Message-ID: <YzBftiBMBRwFTvX0@ncase> (raw)
In-Reply-To: <20220922155934.7eyw2e6a3pgvmikv@tomti.i.net-space.pl>
[-- Attachment #1: Type: text/plain, Size: 1698 bytes --]
On Thu, Sep 22, 2022 at 05:59:34PM +0200, Daniel Kiper wrote:
> Adding some folks who may be interested in this thing too...
>
> On Tue, Sep 20, 2022 at 12:30:30AM +1000, Daniel Axtens wrote:
> > 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 <dja@axtens.net>
>
> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
>
> However, I think we should consider [1] patch set too. I will be
> looking at it in the following days.
>
> Daniel
>
> [1] https://lists.gnu.org/archive/html/grub-devel/2022-09/msg00080.html
Agreed, we should definitely merge some form of fixes to improve the
page request patterns. I'm also happy with bumping the default heap size
in addition.
Out of curiosity: do we have any kind of minimum system requirements
documented somewhere that would allow us to come up with a default heap
size?
Patrick
>
> > ---
> > 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;
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2022-09-25 14:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-19 14:30 [PATCH] efi: Increase default memory allocation to 32MB Daniel Axtens
2022-09-22 15:59 ` Daniel Kiper
2022-09-25 14:03 ` Patrick Steinhardt [this message]
2022-09-27 12:46 ` Daniel Axtens
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YzBftiBMBRwFTvX0@ncase \
--to=ps@pks.im \
--cc=dja@axtens.net \
--cc=dkiper@net-space.pl \
--cc=droidbittin@gmail.com \
--cc=glin@suse.com \
--cc=grub-devel@gnu.org \
--cc=heinrich.schuchardt@canonical.com \
--cc=jim945@mail.ru \
--cc=langner.marcel@myiq.de \
--cc=marcan@marcan.st \
--cc=zhangboyang.id@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.