Re: [2.6 patch] i386: always use 4k stacks

From: Wed, 16 Nov 2005 11:18:12 +0100 (grundig_at_teleline.es)
Date: 11/16/05

  • Next message: Stephane Eranian: "Re: + perfmon2-reserve-system-calls.patch added to -mm tree"
    Date:	Wed, 16 Nov 2005 11:18:12 +0100
    To: Arjan van de Ven <arjan@infradead.org>
    
    

    El Wed, 16 Nov 2005 09:03:32 +0100,
    Arjan van de Ven <arjan@infradead.org> escribió:

    > * more stack space is available for interrupts compared to 2.4 kernels
    > - in 2.4 kernels only 2Kb was available for interrupt context (to
    > keep 4K available for user context). With complex softirqs such as
    > PPP and firewall rules and nested interrupts this wasn't always
    > enough. Compared to 2.6-with-8Kstacks is a bit harder; there is
    > 2Kb extra available there compared to 2.4 and arguably some of that
    > extra is for interrupts.

    I would like to contribute that listing with two non-technical reasons
    more:

     * Encourages good code. Due to the 4 Kb stacks patch several parts of
            the kernel have gone on diet, improving the quality of the code
            (see ndiswrapper, ndis drivers can overflow the stack even with
            8KB stacks, the 4KB patch will force them to develop a _real_
            safe solution for that, improving the quality of ndiswrapper).

     * Some distros are enabling 4KB (fedora), other distros aren't, so
            having a single stack size option will make 3rd party modules
            distribution easier (some propietary drivers may not be caring
            about making their drivers work with 4Kb stacks due to the lack
            of uniformity)
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Stephane Eranian: "Re: + perfmon2-reserve-system-calls.patch added to -mm tree"