lkml.org 
[lkml]   [2020]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] sched: make nr_running() return "unsigned int"
On Thu, Mar 12, 2020 at 11:44:27AM +0100, Peter Zijlstra wrote:
> On Thu, Mar 12, 2020 at 12:06:08AM +0300, Alexey Dobriyan wrote:
> > I don't anyone have been crazy enough to spawn 2^32 threads.
> > It'd require absurd amounts of physical memory.
>
> And we're going to 5 level page-tables because 48 bits physical isn't
> enough. 57 bits of physical is plenty space to spawn that many tasks and
> still have some left over.
>
> Now 32 bit tasks is indeed insane, but memory isn't the problem. The
> actual limit is the pid-space, which is 30 bits.

Indeed, pid space limit is even better!

\
 
 \ /
  Last update: 2020-03-12 18:10    [W:0.065 / U:1.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site