$RodHat_/search
resource limits reference

RLIMIT_LOCKS

Limit on flock(2) locks and fcntl(2) leases. Early Linux 2.4 only.

Resource number
10
Row in /proc/PID/limits
Max file locks
bash ulimit flag
ulimit -x
Unit in /proc/PID/limits
locks
Group
Obsolete on Linux

What happens at the limit

Nothing. Only early Linux 2.4 kernels enforced it.

The name is still in the headers and in /proc/PID/limits, so it shows up in every dump, but the kernel never looks at it any more.

Check a running process with grep -i "Max file locks" /proc/PID/limits, or paste the whole file into the limits reader. Inspect or change one on a live process with prlimit --pid PID(util-linux).

Sources

  1. getrlimit(2), Linux man-pages
  2. proc_pid_limits(5), Linux man-pages

Resource numbers are from asm-generic/resource.h; a few architectures (Alpha, MIPS, SPARC) number some limits differently. The list of syscall cards is matched by name from the card text on this site, not from the kernel source. Spot one that's wrong? Tell Rod.