[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: what is the stack size in Debian kernels?



Kevin Buhr wrote:

> As others have pointed out, for the i386 architecture, there are only
> two stack sizes available in the "normal" kernel.  8K is the default,
> but there is a CONFIG_4KSTACKS configuration variable that changes it
> to 4K (but uses a separate stack for interrupt handling to partially
> compensate).
> 
> Debian kernel-image packages don't normally have the "/proc/config.gz"
> feature enabled, but they should install a copy of the ".config" used
> to build the kernel in a "/boot/config-*" file, and no stock Debian
> kernels have this variable set, as far as I know, so the Debian stack
> should be the default of 8k.
> 
> A patch to add a 16k stacks option that *also* uses a separate
> interrupt-handling stack to give even more free space is available at:
> 
>     http://www.linuxant.com/driverloader/wlan/full/archive/linux-2.6.12-16kstacks.patch
> 

Thank you for the information and explanation. I can verify that my
Debian kernel does not have 4K stack option set:
$> grep 4KST /boot/config-2.6.12-1-686
# CONFIG_4KSTACKS is not set

regards,
->HS



Reply to: