Re: Andrea VM changes

From: Alan Cox (alan_at_lxorguk.ukuu.org.uk)
Date: 08/31/03

  • Next message: Alan Cox: "Re: bandwidth for bkbits.net (good news)"
    To: Andrea Arcangeli <andrea@suse.de>
    Date:	Sun, 31 Aug 2003 16:29:49 +0100
    
    

    On Sul, 2003-08-31 at 15:59, Andrea Arcangeli wrote:
    > And I don't see how you can avoid oom killing to ever happen if the apps
    > recurse on the stack and growsdown some hundred megs. In such case
    > you've to oom kill, since there's no synchronous failure path during the
    > stack growsdown walk.

    The stack grow fails and you get a signal. Its up to you to have a
    language that handles this or in C enjoy the delights of sigaltstack. In
    practice the settings are such that this case basically "doesnt happen"
    for all normal use.

    > I just don't think it solves or hides the other issues, it seems
    > completely orthogonal to me, because you can still run oom during stack
    > growsdown.

    Agreed - and there will always be corner cases, people who don't want
    strict overcommit etc. Thats why I said "as well". Its not a replacement
    for OOM handling of some form.

    -
    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: Alan Cox: "Re: bandwidth for bkbits.net (good news)"

    Relevant Pages

    • Re: Andrea VM changes
      ... >> And I don't see how you can avoid oom killing to ever happen if the apps ... >> recurse on the stack and growsdown some hundred megs. ... eventually fallback to sigkill. ...
      (Linux-Kernel)
    • Re: xmalloc
      ... OOM (out-of-memory) condition. ... The 'static solution' may cause a 'stack' overflow. ...
      (comp.lang.c)
    • Re: 2.0 conversion : w3wp.exe using GOBS of memory
      ... Chris wrote: ... determine why you are seeing this OOM. ... If an infinite loop is pushing something onto the stack, ... As for a memory leak, yes, that can cause ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: malfunctioning applications under limited stack size
      ... stack size is limited to anything fewer then exactly 2 GB ... ... Look in /var/log/messages for signs of the OutOfMemory (oom) killer. ...
      (comp.os.linux.misc)
    • Re: [PATCH] Remove OOM killer ...
      ... > doing things right, that is, entirely without OOM killer. ... > offering a Linux that is guaranteed free of OOM surprises. ... I dont have any useful comments on patch on a quick look at it - ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)