On Mon, 26 Oct 1998, Eric van Dijken wrote:
> Date: Mon, 26 Oct 1998 16:11:25 +0100
> From: Eric van Dijken <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: How to increase max number of processes of root
>
> Hi,
>
> Maybe not for this list, but anyway.
> When i start more then 512 procs, linux bombs out on me.
>
> fork: Resource temporarily unavailable
>
> How do i increase the max number of procs per user.
You have to change NR_TASKS in
/usr/src/linux/include/linux/tasks.h
and recompile the kernel.
It's also a good idea (i.e. for lots of incoming smtp-, www- or
proxy-connections) to increase TCP_HTABLE_SIZE in
/usr/src/linux-2.0.35/include/net/tcp.h
And you can insert the following commands to your boot-scripts (in an
early boot stage):
echo 16384 >/proc/sys/kernel/file-max
echo 32768 >/proc/sys/kernel/inode-max
echo "512 1024 2048" >/proc/sys/vm/freepages
Note that you can setup your mail system to limit the number of
connections. I use smail and configured it that way that it starts
queuing mails at 100 smtp-connections and returns a "try again" at 400
connections. I have set NR_TASKS to 2048, so I have 1024 per user and
that's enough.