lkml.org 
[lkml]   [2002]   [Oct]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: PATCH: 2.5.40 sane minimum proc count
From
Date
On Mon, 2002-10-07 at 14:27, Matthew Wilcox wrote:
> why not simply:
>
> max_threads = mempages / (THREAD_SIZE/PAGE_SIZE) / 8;
>
> + /* we need to allow at least 20 threads to boot a system */
> + if (max_threads < 20)
> + max_threads = 20;
> +
> init_task.rlim[RLIMIT_NPROC].rlim_cur = max_threads/2;
> init_task.rlim[RLIMIT_NPROC].rlim_max = max_threads/2;
>
> i think we're going to see more kernel threads with 2.5 than we did with 2.4;
> let's be safer.

Much better, will switch

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:29    [W:0.100 / U:0.332 seconds]
©2003-2014 Jasper Spaans. Advertise on this site