Skip to contentSkip to conversation

mips: Select SPARSEMEM_EXTREME

PATCH In review Alexander A Sverdlin 2 participants 2 messages Sep 9, 2022 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mips: Select SPARSEMEM_EXTREME

From: Alexander Sverdlin <[email protected]>

Commit c46173183657 ("MIPS: Add NUMA support for Loongson-3") has increased .bss size of the Octeon kernel from 16k to 16M. Providing the conditions for SPARSEMEM_EXTREME avoids the waste of memory.

Thomas has tested the loogsoon64 kernel, where .bss is being reduced by this patch from 16.5M to 515k.

Cc Thomas Bogendoerfer <[email protected]>
---
 arch/mips/Kconfig | 1 -
 1 file changed, 1 deletion(-)
arch/mips/Kconfig +0 -1
index ec21f89..25dd4c5 100644
@@ -2669,7 +2669,6 @@ config ARCH_FLATMEM_ENABLE
 
 config ARCH_SPARSEMEM_ENABLE
 	bool
-	select SPARSEMEM_STATIC if !SGI_IP27
 
 config NUMA
 	bool "NUMA Support"
Signature · 1 line
2.10.2
#1 lore raw
Quoted 29 lines · Alexander A Sverdlin

From: Alexander Sverdlin <[email protected]>

Commit c46173183657 ("MIPS: Add NUMA support for Loongson-3") has increased .bss size of the Octeon kernel from 16k to 16M. Providing the conditions for SPARSEMEM_EXTREME avoids the waste of memory.

Thomas has tested the loogsoon64 kernel, where .bss is being reduced by this patch from 16.5M to 515k.

Cc Thomas Bogendoerfer <[email protected]>
---
 arch/mips/Kconfig | 1 -
 1 file changed, 1 deletion(-)
arch/mips/Kconfig +0 -1
index ec21f89..25dd4c5 100644
@@ -2669,7 +2669,6 @@ config ARCH_FLATMEM_ENABLE
 
 config ARCH_SPARSEMEM_ENABLE
 	bool
-	select SPARSEMEM_STATIC if !SGI_IP27
 
 config NUMA
 	bool "NUMA Support"
Signature · 1 line
2.10.2

thank for the change, applied to mips-fixes.

Thomas.

Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]