RLIMITNPROC
RLIMIT_NPROC is a per-user resource limit that governs the maximum number of processes a single user may have running on a system. It is a limit type used with the getrlimit and setrlimit interfaces and is represented in the kernel by both a soft limit (rlim_cur) and a hard limit (rlim_max). The soft limit is what the kernel enforces at run time, while the hard limit sets the ceiling for possible soft-limit values and can only be raised by privileged processes.
Enforcement and behavior: When a process attempts to create a new process via fork, vfork, or clone,
Usage considerations: RLIMIT_NPROC serves to prevent fork bombs and excessive resource use by a single user.
Container and virtualization: In containerized environments, the per-user limit interacts with container cgroups and namespace isolation.