Skip to contentSkip to conversation

CONFIG_4KSTACKS in mm2?

DISCUSSION Ralf Hildebrandt 3 participants 6 messages Apr 7, 2004

lore
Share & tools
lore
#0 lore raw

Is there a way of disabling CONFIG_4KSTACKS in 2.6.5-mm2? Or to make it configurable?

Signature · 4 lines
Ralf Hildebrandt (Im Auftrag des Referat V a)   [email protected]
Charite - Universitätsmedizin Berlin            Tel.  +49 (0)30-450 570-155
Gemeinsame Einrichtung von FU- und HU-Berlin    Fax.  +49 (0)30-450 570-916
IT-Zentrum Standort Campus Mitte                          AIM.  ralfpostfix
#1 lore raw
Quoted 2 lines · Ralf Hildebrandt

Is there a way of disabling CONFIG_4KSTACKS in 2.6.5-mm2? Or to make it configurable?

"arch/i386/Kconfig" line 1498 of 1542 --97%-- col 8 config 4KSTACKS
def_bool y

you could just change that to 'n'

#2 lore raw

* Zwane Mwaikambo <[email protected]>:

Quoted 8 lines
Quoted 2 lines

Is there a way of disabling CONFIG_4KSTACKS in 2.6.5-mm2? Or to make it configurable?

"arch/i386/Kconfig" line 1498 of 1542 --97%-- col 8 config 4KSTACKS
def_bool y

you could just change that to 'n'

That's what I did (and it works) -- but it's not really intuitive or even configurable (in the way of menuconfig or something).

Signature · 4 lines
Ralf Hildebrandt (Im Auftrag des Referat V a)   [email protected]
Charite - Universitätsmedizin Berlin            Tel.  +49 (0)30-450 570-155
Gemeinsame Einrichtung von FU- und HU-Berlin    Fax.  +49 (0)30-450 570-916
IT-Zentrum Standort Campus Mitte                          AIM.  ralfpostfix
#3 lore raw

On Wed, 7 Apr 2004 16:03:47 +0200
Ralf Hildebrandt <[email protected]> bubbled:

Quoted 5 lines

* Zwane Mwaikambo <[email protected]>:

Quoted 3 lines
Quoted 2 lines

Is there a way of disabling CONFIG_4KSTACKS in 2.6.5-mm2? Or to make it configurable?

Quoted 9 lines
Quoted 5 lines

"arch/i386/Kconfig" line 1498 of 1542 --97%-- col 8 config 4KSTACKS
def_bool y

you could just change that to 'n'

That's what I did (and it works) -- but it's not really intuitive or even configurable (in the way of menuconfig or something).

here is the patch to reenable the menu config option ...

Signature · 9 lines
MyExcuse:
What office are you in? Oh, that one.  Did you know that your building was built
over the universities first nuclear research site? And wow, aren't you the lucky
one, your office is right over where the core is buried!

Martin Zwickel <[email protected]>
Research & Development

TechnoTrend AG <http://www.technotrend.de>
arch/i386/Kconfig +8 -1
diff -Naurp linux-2.6.5-rc1-mm1/arch/i386/Kconfig linux-2.6.5-rc1-mm1-removed/arch/i386/Kconfig
@@ -1555,7 +1555,14 @@ config MAGIC_SYSRQ
 	default y
 
 config 4KSTACKS
-	def_bool y
+	bool "Use 4Kb for kernel stacks instead of 8Kb"
+	default n
+	help
+	  If you say Y here the kernel will use a 4Kb stacksize for the
+	  kernel stack attached to each process/thread. This facilitates
+	  running more threads on a system and also reduces the pressure
+	  on the VM subsystem for higher order allocations. This option
+	  will also use IRQ stacks to compensate for the reduced stackspace.
 
 config X86_FIND_SMP_CONFIG
 	bool
#4 lore raw
In reply to Ralf Hildebrandt
Quoted 5 lines · Ralf Hildebrandt

* Zwane Mwaikambo <[email protected]>:

Quoted 3 lines
Quoted 2 lines

Is there a way of disabling CONFIG_4KSTACKS in 2.6.5-mm2? Or to make it configurable?

Quoted 8 lines
Quoted 5 lines

"arch/i386/Kconfig" line 1498 of 1542 --97%-- col 8 config 4KSTACKS
def_bool y

you could just change that to 'n'

That's what I did (and it works) -- but it's not really intuitive or even configurable (in the way of menuconfig or something).

Andrew Morton turned it on unconditionally on purpose for wider testing.

#5 lore raw

* Zwane Mwaikambo <[email protected]>:

Quoted 4 lines
Quoted 2 lines

That's what I did (and it works) -- but it's not really intuitive or even configurable (in the way of menuconfig or something).

Andrew Morton turned it on unconditionally on purpose for wider testing.

Yep. It doesn't work with Nvidia's nvidia kernel drivers. But what's new :)

Signature · 4 lines
Ralf Hildebrandt (Im Auftrag des Referat V a)   [email protected]
Charite - Universitätsmedizin Berlin            Tel.  +49 (0)30-450 570-155
Gemeinsame Einrichtung von FU- und HU-Berlin    Fax.  +49 (0)30-450 570-916
IT-Zentrum Standort Campus Mitte                          AIM.  ralfpostfix