Skip to content

Commit

Permalink
[coredump] Add sizelimit for coredump
Browse files Browse the repository at this point in the history
While most coredumps could be relatively small,
in certain environments, like Ceph, these can be
as big as 5GB. This change adds a limit of 100MB
to the latest core collection.

Related: RHEL-62972

Signed-off-by: Jose Castillo <[email protected]>
  • Loading branch information
jcastill committed Oct 18, 2024
1 parent 58d7824 commit ee6e4d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sos/report/plugins/coredump.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def setup(self):
"/usr/lib/systemd/coredump.conf.d/"
])

self.add_cmd_output("coredumpctl dump")
self.add_cmd_output("coredumpctl dump", sizelimit=100)

coredump_list = self.collect_cmd_output("coredumpctl list")
if self.get_option("detailed") and coredump_list['status'] == 0:
Expand Down

0 comments on commit ee6e4d2

Please sign in to comment.