On the whole production chain, CAFMaker is what seem to be the most memory consuming step, while it mostly consists in reading and storing things from relatively small files to small file.
There are a lot of calls to GetEntry on a lot of files in the TruthFilling and we just need the Genie Record out of the Genie trees, so one way to optimize the memory consumption could be to set the status of the non-relevant branches to 0
Those are Valgrind Massif output with the current situation:
And disabling irrelevant branches of the genie trees:
On the whole production chain, CAFMaker is what seem to be the most memory consuming step, while it mostly consists in reading and storing things from relatively small files to small file.
There are a lot of calls to GetEntry on a lot of files in the TruthFilling and we just need the Genie Record out of the Genie trees, so one way to optimize the memory consumption could be to set the status of the non-relevant branches to 0
Those are Valgrind Massif output with the current situation:
And disabling irrelevant branches of the genie trees: