Hello community,
@dralley recently merged Make TASK_DIAGNOSTICS more configurable, and add a memray diagnostic by dralley · Pull Request #6526 · pulp/pulpcore · GitHub, which adds optional instrumentation to Pulp to see which lines of code are causing problematic memory usage. This would enable users to send better information about memory issues they are having with Pulp, and it will make it easier for developers to identify issues in Pulp.
There is one requirement besides enabling a setting in the Pulp settings file - memray.
It’s not a strict dependency on Pulp, but it is required to use this new diagnostics feature.
Memray appears to be packaged into Fedora RPM resource memray
Would it be worth considering packaging it inside pulpcore-packaging? If we start packaging it, it’s possible that many other Pulp stakeholders might start using it, so that should be weighed as well. @Odilhao you might have some opinions there
We do have memory consumption problems from time to time in Foreman, which makes me wonder if there is a profiler out there for Ruby / Rails that we could use as well. Perhaps it’s worth waiting until the next nasty memory issue comes up.
-Ian