linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Optimize the code of mem_map allocation in
@ 2018-02-01  7:19 Baoquan He
  2018-02-01  7:19 ` [PATCH 1/2] mm/sparsemem: Defer the ms->section_mem_map clearing a little later Baoquan He
  2018-02-01  7:19 ` [PATCH 2/2] mm/sparse.c: Add nr_present_sections to change the mem_map allocation Baoquan He
  0 siblings, 2 replies; 10+ messages in thread
From: Baoquan He @ 2018-02-01  7:19 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-mm, akpm, kirill.shutemov, mhocko, tglx, douly.fnst, Baoquan He

In 5-level paging mode, allocating memory with the size of NR_MEM_SECTIONS
is a bad idea. So in this patchset, trying to optimize to save memory.
Othersise kdump kernel can't boot up with normal crashkernel reservation
setting. And for normal kernel, the 512M consumption is not also not
wise, though it's a temporary allocation. 

Baoquan He (2):
  mm/sparsemem: Defer the ms->section_mem_map clearing a little later
  mm/sparse.c: Add nr_present_sections to change the mem_map allocation

 mm/sparse-vmemmap.c |  9 +++++----
 mm/sparse.c         | 54 ++++++++++++++++++++++++++++++++++++-----------------
 2 files changed, 42 insertions(+), 21 deletions(-)

-- 
2.13.6

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-02-01 14:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-01  7:19 [PATCH 0/2] Optimize the code of mem_map allocation in Baoquan He
2018-02-01  7:19 ` [PATCH 1/2] mm/sparsemem: Defer the ms->section_mem_map clearing a little later Baoquan He
2018-02-01 14:15   ` Dave Hansen
2018-02-01 14:38     ` Baoquan He
2018-02-01  7:19 ` [PATCH 2/2] mm/sparse.c: Add nr_present_sections to change the mem_map allocation Baoquan He
2018-02-01 10:16   ` Kirill A. Shutemov
2018-02-01 13:49     ` Dave Hansen
2018-02-01 14:19       ` Baoquan He
2018-02-01 14:23         ` Dave Hansen
2018-02-01 14:33           ` Baoquan He

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).