Re: [PATCH] overcommit symbolic constants
From: Alan Cox (alan_at_lxorguk.ukuu.org.uk)
Date: 09/30/04
- Previous message: John Cherry: "IA32 (2.6.9-rc3 - 2004-09-29.21.30) - 10 New warnings (gcc 3.2.2)"
- In reply to: Andries Brouwer: "Re: [PATCH] overcommit symbolic constants"
- Next in thread: Andries Brouwer: "Re: [PATCH] overcommit symbolic constants"
- Reply: Andries Brouwer: "Re: [PATCH] overcommit symbolic constants"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: Andries Brouwer <Andries.Brouwer@cwi.nl> Date: Thu, 30 Sep 2004 14:27:44 +0100
> A few days ago I remarked that 2 is no good when there is no swap.
> OK. So, more modest aim - tighten things only in case there is
> plenty of swap. I like to return NULL for malloc(), that is
> something a good program tests for. I hate to fail a stack grow.
> So, must play a bit more, see whether I can find a mode much
> stricter than 0 that is still suitable as a general working
> environment for everybody.
What might work (if you've not already tried it) is to make the initial
stack something like 1 or 4Mbytes. Don't map the pages but install a vma
of that size. That would pre-reserve address space and perhaps avoid
this. I guess if that works then make it a /proc/sys tunable for
guaranteed stack.
-
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/
- Previous message: John Cherry: "IA32 (2.6.9-rc3 - 2004-09-29.21.30) - 10 New warnings (gcc 3.2.2)"
- In reply to: Andries Brouwer: "Re: [PATCH] overcommit symbolic constants"
- Next in thread: Andries Brouwer: "Re: [PATCH] overcommit symbolic constants"
- Reply: Andries Brouwer: "Re: [PATCH] overcommit symbolic constants"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|