public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Warn about dangers of LVM/RAID stacking with 4KSTACKS
@ 2004-12-10 16:10 Alexander Nyberg
  0 siblings, 0 replies; only message in thread
From: Alexander Nyberg @ 2004-12-10 16:10 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

Hello Linus

On x86 using software RAID on disks and then putting them together in
LVM as a logical volume uses alot of the stack. I've read reports of
doing this on volumes which are shared via NFS causes stack overruns
which it indeed does, I just reproduced it here.

We should play it safe and warn anyone before using CONFIG_4KSTACKS if
the user intends to do software LVM/RAID stacking until this issue is
resolved.


Signed-off-by: Alexander Nyberg <alexn@dsv.su.se>


===== arch/i386/Kconfig.debug 1.4 vs edited =====
--- 1.4/arch/i386/Kconfig.debug	2004-10-20 10:37:19 +02:00
+++ edited/arch/i386/Kconfig.debug	2004-12-10 17:00:01 +01:00
@@ -46,6 +46,8 @@ config DEBUG_PAGEALLOC
 	  This results in a large slowdown, but helps to find certain types
 	  of memory corruptions.
 
+comment "Please read help if you intend to stack software RAID and LVM"
+
 config 4KSTACKS
 	bool "Use 4Kb for kernel stacks instead of 8Kb"
 	help
@@ -54,6 +56,10 @@ config 4KSTACKS
 	  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.
+
+	  Don't enable this if you intend to stack RAID and LVM on top of
+	  each other. The stack may run out using this combination and
+	  then bad things will happen.
 
 config X86_FIND_SMP_CONFIG
 	bool



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-12-10 16:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-10 16:10 [PATCH] Warn about dangers of LVM/RAID stacking with 4KSTACKS Alexander Nyberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox