[RFC 00/10] Reclaimable kernel stacks
Peter Zijlstra
peterz at infradead.org
Fri Aug 28 07:45:00 PDT 2026
On Fri, Aug 28, 2026 at 04:35:40PM +0200, Peter Zijlstra wrote:
> On Fri, Aug 28, 2026 at 10:33:28AM -0400, Steven Rostedt wrote:
> > On Fri, 28 Aug 2026 14:47:58 +0200
> > Peter Zijlstra <peterz at infradead.org> wrote:
> >
> > > > On Android, system processes typically have 2000-3000 threads. App
> > > > processes add 1000s more threads on top of this.
> > >
> > > WTF ?!? Why does that all spawn *that* many threads? Perhaps work on
> > > reducing that some?
> >
> > I guess you never ran Java ;-)
>
> Of course not; why would you want to do something that silly ;-)
I realized I actually have a Java thing, the kids have Minecraft, so I
booted that up and I found all of 108 threads. Which is still kinda
insane, but nowhere near the 1000s per app as claimed.
Reducing the thread count from O(1e3) to O(1e2) would win far more
memory than any thread stack shenanigans would.
More information about the linux-arm-kernel
mailing list