From 57f4dfc653906c8f57a7f9950dfc290e7df157a7 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 11 Oct 2011 09:13:39 +0000 Subject: [PATCH] Reduce preallocated stack size 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 | 3 ++- lib/config/defaults.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/example.conf.in b/doc/example.conf.in index d38f90ea2..3c08d1242 100644 --- a/doc/example.conf.in +++ b/doc/example.conf.in @@ -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 diff --git a/lib/config/defaults.h b/lib/config/defaults.h index 16b524db9..0583fd2be 100644 --- a/lib/config/defaults.h +++ b/lib/config/defaults.h @@ -116,7 +116,7 @@ #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