Skip to contentSkip to conversation

UML - Shrink kernel stacks

PATCH In review Jeff Dike 1 participant 1 message May 9, 2007 User-mode Linux (UML)

lore
Share & tools
lore

Jeff Dike

author
#0 lore raw

PATCH 6/6 UML - Shrink kernel stacks

Make kernel stacks be 1 page on i386 and 2 pages on x86_64. These matche the host values.

--

 arch/um/Kconfig   |    2 +-
 arch/um/defconfig |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/um/Kconfig +2 -1
Index: linux-2.6.21-mm/arch/um/Kconfig
===================================================================
@@ -277,7 +277,8 @@ config HIGHMEM
 
 config KERNEL_STACK_ORDER
 	int "Kernel stack size order"
-	default 2
+	default 1 if 64BIT
+	default 0 if !64BIT
 	help
 	This option determines the size of UML kernel stacks.  They will
 	be 1 << order pages.  The default is OK unless you're running Valgrind
arch/um/defconfig +1 -1
Index: linux-2.6.21-mm/arch/um/defconfig
===================================================================
@@ -86,7 +86,7 @@ CONFIG_MCONSOLE=y
 # CONFIG_MAGIC_SYSRQ is not set
 CONFIG_NEST_LEVEL=0
 # CONFIG_HIGHMEM is not set
-CONFIG_KERNEL_STACK_ORDER=2
+CONFIG_KERNEL_STACK_ORDER=0
 CONFIG_UML_REAL_TIME_CLOCK=y
 
 #

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel