lkml.org 
[lkml]   [2015]   [May]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC PATCH 2/2] arm64: Implement vmalloc based thread_info allocator
Date
On Tuesday 26 May 2015 01:36:29 Catalin Marinas wrote:
>
> > There are a lot of workloads that would benefit from having lower
> > per-thread memory cost.
>
> If we keep the 16KB stack, is there any advantage in a separate IRQ one (assuming
> that we won't overflow 16KB)?

It makes possible errors more reproducible: we already know that we need over
8kb for normal stacks based on Minchan's findings, and the chance that an interrupt
happens at a time when the stack is the highest is very low, but that just makes
the bug much harder to find if you ever run into it.

If we overflow the stack (independent of its size) with a process stack by itself,
it will always happen in the same call chain, not a combination of a call chain
an a particularly bad interrupt.

Arnd


\
 
 \ /
  Last update: 2015-05-26 17:21    [W:0.040 / U:0.656 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site