If I want to check if I got to the max of the nproc value should I do:ps -ef | wc -lOrps -efL | wc -lDoes nproc in limits.conf refers to number of processes or number of threads?
Does nproc in limits.conf refers to number of processes or number of threads?
linux;ulimit;thread
On Linux it refers to the number of threads. From setrlimit(2) (which is the system call used to set the limits):RLIMIT_NPROCThe maximum number of processes (or, more precisely on Linux, threads) that can be created for the real user  ID                of  the  calling process.  Upon encountering this limit, fork(2) fails with the error EAGAIN.  This limit is not                enforced for processes that have either the CAP_SYS_ADMIN or the CAP_SYS_RESOURCE capability.So ps -efL | wc -l would be more appropriate, however the limits in limits.conf apply per login session (see limits.conf(5) for details).