All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Documentation:  Explain 4K stacks in slightly more detail.
@ 2008-04-25 19:50 Robert P. J. Day
  2008-04-25 20:11 ` Matthew Wilcox
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Robert P. J. Day @ 2008-04-25 19:50 UTC (permalink / raw)
  To: kernel-janitors


Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>

---

diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug
index 610aaec..e40d8d4 100644
--- a/arch/x86/Kconfig.debug
+++ b/arch/x86/Kconfig.debug
@@ -109,11 +109,17 @@ config 4KSTACKS
 	depends on X86_32
 	default y
 	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.
+	  If you say Y here, this will redefine the value of THREAD_SIZE
+	  from 8K to 4K and subsequently use a 4K kernel stack for each
+	  process/thread.  This facilitates running more threads on a
+	  system and also reduces the pressure on the VM subsystem for
+	  higher-order allocations (that is, trying to find two consecutive
+	  4K pages rather than just one for each per-process kernel stack).
+
+	  To compensate for the smaller per-process stack, interrupts will
+	  now be given their own 4K per-cpu stacks.  For more discussion,
+	  see http://lwn.net/Articles/150580/.  Also, see the implementation
+	  in the source file arch/x86/kernel/irq_32.c.

 config X86_FIND_SMP_CONFIG
 	def_bool y

====================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
====================================

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

end of thread, other threads:[~2008-04-26 12:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-25 19:50 [PATCH] Documentation: Explain 4K stacks in slightly more detail Robert P. J. Day
2008-04-25 20:11 ` Matthew Wilcox
2008-04-25 20:29 ` [PATCH] Documentation: Explain 4K stacks in slightly more Robert P. J. Day
2008-04-25 20:41 ` [PATCH] Documentation: Explain 4K stacks in slightly more detail Matthew Wilcox
2008-04-25 21:27 ` [PATCH] Documentation: Explain 4K stacks in slightly more Robert P. J. Day
2008-04-26 12:20 ` [PATCH] Documentation: Explain 4K stacks in slightly more detail Nick Andrew
2008-04-26 12:23 ` [PATCH] Documentation: Explain 4K stacks in slightly more Robert P. J. Day

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.