From: Ingo Molnar <mingo@kernel.org>
To: Xunlei Pang <xlpang@redhat.com>
Cc: Yinghai Lu <yinghai@kernel.org>,
x86@kernel.org, kexec@lists.infradead.org,
linux-kernel@vger.kernel.org, Ingo Molnar <mingo@redhat.com>,
Borislav Petkov <bp@alien8.de>,
Eric Biederman <ebiederm@xmission.com>,
Andy Lutomirski <luto@kernel.org>,
"H. Peter Anvin" <hpa@zytor.com>,
akpm@linux-foundation.org, Dave Young <dyoung@redhat.com>,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [PATCH v2 1/2] x86/mm/ident_map: Add PUD level 1GB page support
Date: Wed, 26 Apr 2017 10:09:05 +0200 [thread overview]
Message-ID: <20170426080905.gvfjwpoknsgcrsyd@gmail.com> (raw)
In-Reply-To: <1493192562-6669-1-git-send-email-xlpang@redhat.com>
* Xunlei Pang <xlpang@redhat.com> wrote:
> The current kernel_ident_mapping_init() creates the identity
> mapping using 2MB page(PMD level), this patch adds the 1GB
> page(PUD level) support.
>
> This is useful on large machines to save some reserved memory
> (as paging structures) in the kdump case when kexec setups up
> identity mappings before booting into the new kernel.
>
> We will utilize this new support in the following patch.
Well, the primary advantage would be better TLB coverage/performance, because we'd
utilize 1GB TLBs instead of 2MB ones, right?
Any kexec fallout is secondary.
And I'd like to hear more about the primary advantage: what are the effects of
this change on a typical test system you have access to:
- For example what percentage of the identity mapping was 4K mapped (if any) and
2MB mapped - and how did this change due to the patch - how many 2MB mappings
remained and how many 1GB mappings were added?
- Is there anything else we could do to improve the in-RAM layout of kernel data
structures. For example IIRC the CPU breaks up all TLBs under 2MB physical into
4K TLBs. Is this the current limit and could we just reserve all that space and
not use it for anything important? 2MB of RAM wasted is a very small amount of
space, compared to the potential performance advantages.
> void *(*alloc_pgt_page)(void *); /* allocate buf for page table */
> void *context; /* context for alloc_pgt_page */
> - unsigned long pmd_flag; /* page flag for PMD entry */
> + unsigned long page_flag; /* page flag for PMD or PUD entry */
> unsigned long offset; /* ident mapping offset */
> + bool direct_gbpages; /* PUD level 1GB page support */
Doesn't follow the existing alignment.
Thanks,
Ingo
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next prev parent reply other threads:[~2017-04-26 8:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-26 7:42 [PATCH v2 1/2] x86/mm/ident_map: Add PUD level 1GB page support Xunlei Pang
2017-04-26 7:42 ` [PATCH v2 2/2] x86_64/kexec: Use PUD level 1GB page for identity mapping if available Xunlei Pang
2017-04-26 8:09 ` Ingo Molnar [this message]
2017-04-26 8:56 ` [PATCH v2 1/2] x86/mm/ident_map: Add PUD level 1GB page support Xunlei Pang
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=20170426080905.gvfjwpoknsgcrsyd@gmail.com \
--to=mingo@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=bp@alien8.de \
--cc=dyoung@redhat.com \
--cc=ebiederm@xmission.com \
--cc=hpa@zytor.com \
--cc=kexec@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
--cc=xlpang@redhat.com \
--cc=yinghai@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox