public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Question about the sparse memory section size
@ 2015-09-22  8:14 chenfeng
  2015-09-22 11:17 ` Dave Martin
  0 siblings, 1 reply; 3+ messages in thread
From: chenfeng @ 2015-09-22  8:14 UTC (permalink / raw)
  To: catalin.marinas, will.deacon, mark.rutland, ard.biesheuvel,
	lauraa, linux-arm-kernel, linux-kernel
  Cc: Yiping Xu, oliver.fu, suzhuangluan, Dan zhao, Peter Panshilin,
	qijiwen

Hi all,
The sparse memory section size, SECTION_SIZE_BITS, currently is 1GB for arm64 by default. However, it might generate wasted memmap memory space for those memory sections less than 1GB. e.g.
for 512MB memory section, still 14MB(sizeof(struct page) * PAGES_PER_SECTION) memmap needs to be reserved. The wasted memmap space could be eliminated by changing memory section size from 1GB to 512M, but still some questions to be answered,

1) why arm64 uses 1GB as default setting?
2) any risk to change section size from 1GB to 512MB? like, any impact to performance since memory section number is increased.


Any help will be appreciated.

Puck


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

end of thread, other threads:[~2015-09-23 12:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-22  8:14 Question about the sparse memory section size chenfeng
2015-09-22 11:17 ` Dave Martin
     [not found]   ` <13BC74040D0EF941B37FE727464B56DA8A5E2696@szxema508-mbx.china.huawei.com>
2015-09-23 12:08     ` 答复: " Dave P Martin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox