tags : Operating Systems, Linux

Traditionally we had ulimit but problems with all that is that it’s hard to verify if things are working as expected.

ps uses /proc, how is /proc populated? kernel populates it from the address space of the process!

The ulimits shell command is built around setrlimit

  • a program can change its own soft limit at any time by calling setrlimit
  • need to read more on soft and hard limit

https://pubs.opengroup.org/onlinepubs/009695399/functions/setrlimit.html

Thing to understand about these tools that these are per process and not systemwide

video

Tools

  • nproc