Operating System - Linux
1757768 Members
3375 Online
108863 Solutions
New Discussion юеВ

max number of processes in red hat

 
SOLVED
Go to solution
R.O.
Esteemed Contributor

max number of processes in red hat

Hi,

I think the equivalency of the HPUX parameter nproc in red-hat is .kernel/threads-max. Can anyone tell me if is this correct or not??

Regards,

R.O.
"When you look into an abyss, the abyss also looks into you"
6 REPLIES 6
Huc_1
Honored Contributor

Re: max number of processes in red hat

If I got this right under linux a thread is not a process

A thread in linux executes kernel function, a process execute kernel function using systems
calls.

a thread only run in kernel mode

process run in user or kernel mode

cat /proc/sys/kernel/threads-max

will tell you the current/running number of threads

have look in at

/usr/src/linux-2.4.20-20.9/include/linux/threads.h

so I do not think it is strictly the same

Often databases ask that this be increased

Hope this helps

J-P
Smile I will feel the difference
R.O.
Esteemed Contributor

Re: max number of processes in red hat

Hi,

So what is the kernel parameter that establish the max number of processes in linux?

Regards,

R.O.
"When you look into an abyss, the abyss also looks into you"
Huc_1
Honored Contributor

Re: max number of processes in red hat

There are Process rlimit_*
like RLIMIT_NPROC "limit process that user can owne"

There are many other RLIMIT_*, like memory lock, etc ..

But there is no process max limit at the kernel level that I am awared of !

well the amount of memory is the limit, but kernel param ! not that I know !

I am no expert, just trying to fit all the pieces myself, but dus far I have not found the exact match to nproc in Linux kernel.

J-P


Smile I will feel the difference
Caesar_3
Esteemed Contributor
Solution

Re: max number of processes in red hat

Hello!

Because of that linux kernel is much
generic than HPUX there is no need to
set "nproc", the kernel will create
procs til it will finish all the resources.

Caesar
Vitaly Karasik_1
Honored Contributor

Re: max number of processes in red hat

few parameters may be relevant for you:

- kernel.threads-max (man sysctl for more)

- nproc - max number of processes per user (/etc/security/linits.comf)

regards,
Vitaly
Huc_1
Honored Contributor

Re: max number of processes in red hat

There is a new other question in the linux forum that is about the nearly the same subject and in there is a link to

http://linuxperf.nl.linux.org/general/kerneltuning.html

found this to be very good ! thanks to Shelstraete Bart for this

The pointer nearly same subject new forum message is

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=239333

J-P
Smile I will feel the difference