Skip to content

Commit 2a0d557

Browse files
committed
Add section on ulimit
1 parent 064ea0a commit 2a0d557

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

_posts/2025-02-13-linux-coredumps-part-1.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,19 @@ CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y
7575
These settings will enable the kernel to generate coredumps, as well as set the
7676
default mappings that are present in the coredump. `man core`[^man_core]
7777
provides a good overview of the options available to you when configuring
78-
coredumps.
78+
coredumps. It's worth noting that these options are enabled for most distros by
79+
default.
80+
81+
In addition the kernel configuration, you'll need to set the `ulimit` for the
82+
process that you want to capture a coredump for. The `ulimit` command is used to
83+
set the resource limits for a process. The `core` resource limit is the one
84+
we're interested in. This sets the maximum size of a coredump that can be
85+
generated by a process. To make things easy, you can set it to unlimited with
86+
the following command:
87+
88+
```bash
89+
ulimit -c unlimited
90+
```
7991

8092
### `core_pattern`
8193

0 commit comments

Comments
 (0)