[lkml]   [2007]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [-mm patch] i386: enable 4k stacks by default
    Christoph Hellwig <> writes:

    > On Mon, Apr 30, 2007 at 12:26:42PM +0200, Andi Kleen wrote:
    > > Alan Cox <> writes:
    > >
    > > > If this still occurs for some
    > > > combinations then the fix would be 8K + 4K IRQ stack, not just to use 8K
    > > > stack
    > >
    > > Yes i've been thinking for some time doing that would be a good idea.
    > Yes, the non-irqstack case should definitively go away. And 8k
    > kernel stacks isn't that little given how much most 64bit architectures
    > have.

    Actually looking at the code it would need some fixes first:

    * These should really be __section__(".bss.page_aligned") as well, but
    * gcc's 3.0 and earlier don't handle that correctly.
    static char softirq_stack[NR_CPUS * THREAD_SIZE]

    static char hardirq_stack[NR_CPUS * THREAD_SIZE]

    With 8K stacks and NR_CPUS==128 that would be 2MB statically reserved. Yuck.
    Really needs to be dynamically allocated. I'll take a look once the .22
    big merge is done.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-04-30 13:19    [W:0.029 / U:40.692 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site