PDA

View Full Version : ulimit -u command


praka123
12-03-2007, 10:50 PM
My Debian shows the o/p of "ulimit -u" as "unlimited".
btw ulimit is the parameter which determines how many processes can a user account can run.U can customize the max no of processes via ulimit.
root@ubuntu:~# whereis ulimit
ulimit: /usr/include/ulimit.h http://wiki.linuxquestions.org/wiki/Ulimit
more:
http://www.faqs.org/docs/securing/x4733.html
~#ulimit -a shows the full details.
ulimit man page is there "man bash-builtins"

unni
13-03-2007, 09:56 AM
Thanks for the info. Mine too shows unlimited. But, actually, I think there is a limit. In my OS class, I was taught that the PID size is determined by the datatype pid_t which is 16 bit. This means that a total of 65536 (2^16) PIDs are possible. After seeing your post, I did some search on this and got this from Wikipedia (http://en.wikipedia.org/wiki/Linux_kernel).
Version 2.6 - current (December 17, 2003 to the present)
Increased the maximum number of process ids from 32,768 (= 2^15) to over 1 billion (2^30).
So, may be, now the PID size is 32 bit. I don't know if there is any other variable determining the total number of simulataneous processes in the system.

Vivek788
17-03-2007, 05:14 AM
hehe..gr8...linux rocks!!!!!!