]> sourceware.org Git - lvm2.git/commitdiff
Reduce preallocated stack size
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 11 Oct 2011 09:13:39 +0000 (09:13 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 11 Oct 2011 09:13:39 +0000 (09:13 +0000)
Go with just 64KiB for stack.

Closer inspection should be made, whether we actually need to play with
settings at all.

Since default stack size is 8MB and gets mapped via page locking thus,
it seems there is no big help with preallocation of stack to some value.

doc/example.conf.in
lib/config/defaults.h

index d38f90ea2e391d628842c57406588da9926be632..3c08d12428d1cab52f6291f1a069e551b22219d3 100644 (file)
@@ -481,7 +481,8 @@ activation {
     missing_stripe_filler = "error"
 
     # How much stack (in KB) to reserve for use while devices suspended
-    reserved_stack = 256
+    # Prior to version 2.02.89 this used to be set to 256KB
+    reserved_stack = 64
 
     # How much memory (in KB) to reserve for use while devices suspended
     reserved_memory = 8192
index 16b524db977eeb1ded3b388241d897a5158e69b4..0583fd2be97bd7fdf2920f9e44b1a67c2ecc2f26 100644 (file)
 #ifdef DEVMAPPER_SUPPORT
 #  define DEFAULT_ACTIVATION 1
 #  define DEFAULT_RESERVED_MEMORY 8192
-#  define DEFAULT_RESERVED_STACK 256
+#  define DEFAULT_RESERVED_STACK 64 /* KB */
 #  define DEFAULT_PROCESS_PRIORITY -18
 #else
 #  define DEFAULT_ACTIVATION 0
This page took 0.040818 seconds and 5 git commands to generate.