lkml.org 
[lkml]   [2001]   [Oct]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectRe: 2.2.x process limits (NR_TASKS)?
Date
In article <Pine.LNX.4.33.0110181139380.30308-100000@tigger.unnerving.org>,
Gregory Ade <gkade@bigbrother.net> wrote:
>We're running into what appears to be a 256-process-per-user limit on one
>of our webservers, due to the number of processes running as a specific
>user for our application. I'd like to increase the process limit, and
>*THINK* that to do so i need to increase NR_TASKS in
>/usr/src/linux/include/linux/tasks.h.

--- linux-2.2.19.orig/include/linux/tasks.h Mon Dec 11 01:49:44 2000
+++ linux-2.2.19/include/linux/tasks.h Thu Mar 29 13:08:16 2001
@@ -11,7 +11,7 @@
#define NR_CPUS 1
#endif

-#define NR_TASKS 512 /* On x86 Max about 4000 */
+#define NR_TASKS 2048 /* On x86 Max about 4000 */

#define MAX_TASKS_PER_USER (NR_TASKS/2)
#define MIN_TASKS_LEFT_FOR_ROOT 4
>Also, where can this limit be changed in 2.4.x?

/proc/sys/kernel/threads-max

Mike.
--
"Only two things are infinite, the universe and human stupidity,
and I'm not sure about the former" -- Albert Einstein.

-
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:08    [W:0.097 / U:1.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site