max processes run in linux
I am very new to this.
I want to know what is the maximum no of processes that can be run in Linux ,as it is a multitasking so what is the limit of this. some one told me that 8192 but why this not 10000 or 500 why 8192. please help me I don't able to find the answer.. i have searched in google but do not find any ans .. |
8192 is not the limit for linux, its the limit for a particular user. You can find the limit by typing
Code:
ulimit -u Quote:
|
Thank u
can u say why this is 8192 for a perticular user.. |
Quote:
It would also have been selected as a convenient number for the computer. Have you thought about what this might mean? |
Computers use binary, not decimal.
Numbers like 2, 64, 256, or 8192 are even for a computer because hey are powers of 2. Numbers like 500 or 1000 look as uneven to a computer as 8192 looks to you! |
Why 8192 processes not more or less
Sir ,
I want to know is there any reason behind that, As MTK358 given that computers use power of 2, I accept that but there are other nos also as 512,1024,2048.. and so on my question is why 8192 not more than or less than this. |
I cannot precisely answer post #6, but wanted to provide a little more on the subject in general:
It should be noted that `ulimit` is actually a Bash built-in command (see the Bash manpage for details on ulimit) and, for the record, on my 64bit Slackware system, max user processes is not 8192, but 31700. Here's all ulimit output: Code:
sasha@reactor: ulimit -a |
All processes run under a parent (the first one is usually "init", run by root at boot-up). The parent can set limits on what the child can do or use. There is a difference in what an ordinary user or root can do, however, and some certain limits can only be altered by the root user. I think of it like human parent might set a bedtime limit for a child (human children don't HAVE to follow parent set limits, but process children MUST). The limits are initially set to values deemed appropriate for the system (bedtime at 9:00 PM) and a child can set additional limits below that but not higher (say 8:00 PM), and can set them "soft" or "hard". Soft limits can be reset by the child's children but limited to the hard limits.
This allows a process to control what access to system resources a child process has. For a list of what can be set see man limit. My Fedora 11 system shows max user processes at 36,864 (which cannot be increased by a non-root user), but could easily be changed by a root user: Code:
[root@maplepark ~]# ulimit -a |
All times are GMT -5. The time now is 09:29 AM. |