|
|
Subscribe / Log in / New account

Re: [RFC 2/2] x86_64: expand kernel stack to 16K

From:  One Thousand Gnomes <gnomes-AT-lxorguk.ukuu.org.uk>
To:  Borislav Petkov <bp-AT-alien8.de>
Subject:  Re: [RFC 2/2] x86_64: expand kernel stack to 16K
Date:  Thu, 29 May 2014 14:23:21 +0100
Message-ID:  <20140529142321.6ac951d3@alan.etchedpixels.co.uk>
Cc:  Minchan Kim <minchan-AT-kernel.org>, linux-kernel-AT-vger.kernel.org, Andrew Morton <akpm-AT-linux-foundation.org>, linux-mm-AT-kvack.org, "H. Peter Anvin" <hpa-AT-zytor.com>, Ingo Molnar <mingo-AT-kernel.org>, Peter Zijlstra <a.p.zijlstra-AT-chello.nl>, Mel Gorman <mgorman-AT-suse.de>, Rik van Riel <riel-AT-redhat.com>, Johannes Weiner <hannes-AT-cmpxchg.org>, Hugh Dickins <hughd-AT-google.com>, rusty-AT-rustcorp.com.au, mst-AT-redhat.com, Dave Hansen <dave.hansen-AT-intel.com>, Steven Rostedt <rostedt-AT-goodmis.org>
Archive‑link:  Article

> Hmm, stupid question: what happens when 16K is not enough too, do we
> increase again? When do we stop increasing? 1M, 2M... ?

It's not a stupid question, it's IMHO the most important question

> Sounds like we want to make it a config option with a couple of sizes
> for everyone to be happy. :-)

At the moment it goes bang if you freakily get three layers of recursion
through allocations. But show me the proof we can't already hit four, or
five, or six  ....

We don't *need* to allocate tons of stack memory to each task just because
we might recursively allocate. We don't solve the problem by doing so
either. We at best fudge over it.

Why is *any* recursive memory allocation not ending up waiting for other
kernel worker threads to free up memory (beyond it being rather hard to
go and retrofit) ?


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>




to post comments


Copyright © 2014, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds