From 470454d201ebb89aa72525f8c3fb562e372f4f56 Mon Sep 17 00:00:00 2001 From: Shell Date: Sat, 22 Apr 2023 23:59:11 +0800 Subject: [components/mm] support for scalable memory management (#7277) * [mm/page] multi-list page manager [mm/page] page debugger [libcpu/aarch64] hugepage support * [quality] remove void-arith * [format] remove kasan codes --- src/Kconfig | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/Kconfig b/src/Kconfig index a6f8a14bb0..ad6528048d 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -261,6 +261,12 @@ if RT_DEBUG int default 1 if RT_DEBUG_MEMHEAP_CONFIG + if ARCH_MM_MMU + config RT_DEBUG_PAGE_LEAK + bool "Enable page leaking tracer" + default n + endif + config RT_DEBUG_MODULE_CONFIG bool "Enable debugging of Application Module" default n @@ -305,15 +311,17 @@ endmenu menu "Memory Management" - config RT_PAGE_MAX_ORDER - int "Max order of pages allocatable by page allocator" - default 11 - help - For example, A value of 11 means the maximum chunk of contiguous memory - allocatable by page system is 2^(11 + ARCH_PAGE_BITS - 1) Bytes. - Large memory requirement can consume all system resource, and should - consider reserved memory instead to enhance system endurance. - Max order should at least satisfied usage by huge page. + if ARCH_MM_MMU + config RT_PAGE_MAX_ORDER + int "Max order of pages allocatable by page allocator" + default 11 + help + For example, A value of 11 means the maximum chunk of contiguous memory + allocatable by page system is 2^(11 + ARCH_PAGE_BITS - 1) Bytes. + Large memory requirement can consume all system resource, and should + consider reserved memory instead to enhance system endurance. + Max order should at least satisfied usage by huge page. + endif config RT_USING_MEMPOOL bool "Using memory pool" -- cgit v1.3.1