Bash's ulimit concerns about limits on different kinds of resources.

Is it correct a limit shown or set by ulimit is per-resource?

Is each such limit the sum of the resources available to all the processes, instead of the limit of the resource available to each process?

Or are some limits per-resource, and some limits per-resource and per-process? How can we tell which is which case?

Related http://forums.devshed.com/programming-42/whats-difference-sysconf-rlimit-955656.html Thanks.


As you can read in the man page:




these limits are per process

  • In more comprehensive user manuals from other operating systems one can read that only some of them are per process. (-: – JdeBP May 29 '18 at 7:53
  • The official limits are per process. I mentioned Solaris and POSIX ad this is from the inventor (BSD) and from the standard. If there is a specific operating system that added nonstandard resources, this may be different, but it seems that you don't know such a limit either. – schily May 29 '18 at 10:11
  • @schily “The maximum number of processes available to a single user” is obviously not per-process. – Stephen Kitt May 29 '18 at 14:41
  • This is a Linux extension and was neither in the BSD original implementation, nor is it in the POSIX standard. – schily May 29 '18 at 14:58
  • RLIMIT_NPROC (which isn't even the only one that is not per-process) has been in the BSDs for approaching a quarter of a century at this point, starting with 4.4BSD. It's definitely time to catch up with those manual pages that I mentioned. (-: – JdeBP May 30 '18 at 14:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.