Skip to content

Conversation

@lsm5
Copy link
Contributor

@lsm5 lsm5 commented Feb 5, 2015

Signed-off-by: Lokesh Mandvekar [email protected]

@lsm5
Copy link
Contributor Author

lsm5 commented Feb 5, 2015

ping @jeremyeder @jfrazelle @philips @tianon

@jessfraz
Copy link
Contributor

jessfraz commented Feb 5, 2015

what is the default, just curious, and i will try this out

@philips
Copy link
Contributor

philips commented Feb 5, 2015

@lsm5 I would love to see something explaining why Infinity in your commit, just so we remember. I have no objections though.

@tianon
Copy link
Member

tianon commented Feb 5, 2015

Indeed, I think this PR is missing pretty much 100% of the rationale. 👍

@tiborvass
Copy link
Contributor

Ping @lsm5 can you please clarify your rationale?

@lsm5
Copy link
Contributor Author

lsm5 commented Feb 6, 2015

so the default core size on fedora/rhel systems is 0 and current rpm packages weren't generating any core dumps. Got this request via our support folks, and they'd like as much detail as possible in a core dump.

Sorry about the rushed up PR, but that's all I have for now :| , I'll try and grab more info though. Perhaps @jeremyeder has more insight into this.

@jeremyeder
Copy link

Yes, this came from our support folks, but it benefits everyone. We're aware of the shortcomings of go+gdb, but still, there is some information that can be gleaned from a core file, which is a lot better than logs, debug logs or posthumously adding printk's and trying to reproduce.

So we'd like to suggest the docker unitfile be configured to write a core so we can perform root cause analysis in case any crashes occur in the field. "infinity" is about ensuring we get a complete core.

@tianon
Copy link
Member

tianon commented Feb 9, 2015

Ok, thanks; seems reasonable to me! 👍

@LK4D4
Copy link
Contributor

LK4D4 commented Feb 9, 2015

LGTM

1 similar comment
@jessfraz
Copy link
Contributor

jessfraz commented Feb 9, 2015

LGTM

@jessfraz
Copy link
Contributor

jessfraz commented Feb 9, 2015

ping @philips

@lsm5
Copy link
Contributor Author

lsm5 commented Feb 9, 2015

guess we also need a GOTRACEBACK=crash to enable core dumps, but that's probably set somewhere else, set via /etc/sysconfig/docker for fedora and its downstreams

also, I'll send a follow-up commit here with info from @jeremyeder in the commit message

set LimitCORE=infinity to ensure complete core creation,
allows extraction of as much information as possible.

Thanks to Ulrich Obergfell <[email protected]>
and Jeremy Eder <[email protected]>

Signed-off-by: Lokesh Mandvekar <[email protected]>
@philips
Copy link
Contributor

philips commented Feb 9, 2015

lgtm.

The side-effect is that all docker containers get this limit internally too, right?

@jeremyeder
Copy link

Thanks to everyone for looking at this.

Yes, @philips that's correct...softlimit=0 is overridden because RHEL has a core-catcher pipe-command called abrt. We're taking care of disk space hogs there, plus a bunch of other tweaks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants