Granulate / gprofiler

gProfiler is a system-wide profiler, combining multiple sampling profilers to produce unified visualization of what your CPU is spending time on.
https://profiler.granulate.io
Apache License 2.0
746 stars 54 forks source link

Disable coredump creation for binaries gProfiler runs #732

Closed Jongy closed 1 year ago

Jongy commented 1 year ago

Binaries we run may crash and create unwanted corefiles, which waste disk space. I saw this on one of our test deployments:

...
-rw-------   1 root root 11145216 Mar  5 09:52 core.rbspy.3654398.1678009124
-rw-------   1 root root 11145216 Mar  6 02:26 core.rbspy.3965157.1678069334
-rw-------   1 root root 11145216 Mar 12 22:35 core.rbspy.572769.1678660576
....

We should set RLIMIT such that binaries we execute do not emit a core file (and possibly make it an option enabled by default, so if you actually want to debug and understand why things crash, you can disable it and get the core files back).