$RodHat_/search
resource limits reference

RLIMIT_CORE

Maximum size of a core dump.

Resource number
4
Row in /proc/PID/limits
Max core file size
bash ulimit flag
ulimit -c
Unit in /proc/PID/limits
bytes
Group
Files and descriptors

What happens at the limit

A dump larger than the limit is truncated to it. At 0, no core file is written. If core_pattern pipes the dump to a handler, core(5) describes how the limit applies.

A core that "was not produced" is more often this limit being 0 than a permissions problem. Check /proc/PID/limits of the service itself, not your login shell: services do not inherit your shell limits.

Check a running process with grep -i "Max core file size" /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.