Re: [PATCH 1/1] sparc64: unify thread stack sizing and add explicit 32KB stack
David Laight <[email protected]> Thu, 18 Jun 2026 11:32:29 +0100
| Newsgroups | org.kernel.vger.sparclinux,dev.linux.lists.regressions,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <20260618113229.7f1e51b3@pumpkin> |
On Thu, 18 Jun 2026 07:53:02 +0200 Andreas Larsson <[email protected]> wrote: > On 2026-06-16 21:58, David Laight wrote: ... > > That whole logic is impenetrable. > > Why not set the 'desired thread size' in kB, then work out how many > > pages that ends up being based on the page size, and finally get the actual > > stack size. > > I'm not sure, but with vmalloc()ed stacks and 8k pages can't you have 24kB? > > No, the next step up is 32 KiB as the stack allocation is sized by > THREAD_SIZE_ORDER. Maybe, but there is probably no reason why that has to be the case. I'm sure I've seem other architectures increasing the stack size by 4k. David > > Cheers, > Andreas >