Re: 4k stacks in 2.6

From: Linus Torvalds (torvalds_at_osdl.org)
Date: 05/27/04

  • Next message: Jörn Engel: "Re: 4k stacks in 2.6"
    Date:	Thu, 27 May 2004 07:55:36 -0700 (PDT)
    To: Andrea Arcangeli <andrea@suse.de>
    
    

    On Thu, 27 May 2004, Andrea Arcangeli wrote:
    >
    > On Thu, May 27, 2004 at 10:18:40AM -0400, Brian Gerst wrote:
    > > The problem on i386 (unlike x86-64) is that the thread_info struct sits
    > > at the bottom of the stack and is referenced by masking bits off %esp.
    > > So the stack size must be constant whether in process context or IRQ
    > > context.
    >
    > so what, that's a minor implementation detail, pda is a software thing.

    "minor implementation detail"?

    You need to get to the thread info _some_ way, and you need to get to it
    _fast_. There are really no sane alternatives. I certainly do not want to
    play games with segments.

                    Linus
    -
    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: Jörn Engel: "Re: 4k stacks in 2.6"

    Relevant Pages

    • Re: [patch 7/7] uml: resolve symbols in back-traces
      ... The idea is right - I already had it in my tree, ... locking is broken (a semaphore is used in process context, ... And removing the final Emacs comment is not welcome (I don't care, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: netconsole hangs w/ alt-sysrq-t
      ... > how this would fix the problem. ... Well process context defeats the purpose. ... There's some magic NAPI bits in netpoll_poll that ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: route cache DoS testing and softirqs
      ... >> sort of dst cache not from process context, ... >> which rcu created. ... That should increase the number of quiescent state ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [patch] Real-Time Preemption, -RT-2.6.12-rc1-V0.7.41-07
      ... >> how about keeping the rcu callback list in process context and only ... Paul? ... Here is the scenario: ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] laptop-mode-2.6.0 version 5
      ... > IO submission must happen in process context, ... Here is the patch fix it ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)