-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reading and writing events leaks memory #139
Comments
So there are two different "large" memory leaks, depending on whether we are writing or reading. Large in this case means that memory is leaked for every event. Additionally, there are a few "small" leaks, where we leak only once for the whole execution. (There are also a few other leaks from within the depths of ROOT, but those or not really our concern, I suppose). The small ones:
The large ones:
ExampleWithVectorMemberCollection coll;
auto vec = ExampleWithVectorMember();
coll.push_back(vec) The problem is that as soon as we push the |
It is not really visible with the 2000 events that are currently used for the tests, but simply increasing that number and monitoring the memory consumption of the corresponding process shows that it continuously increases with the running time of the process. I am not yet sure where / what memory is leaked, but it is not negligible. For me the memory footprint for
tests/write
increases from about 120M at startup to 1150M when writing 1e6 events. Similarly,tests/read
starts off at around 220M and increases to 1000M at the end.Repeating the tests with different readers / writers, e.g. the
SIOReader
andSIOWriter
from #130, shows similar behavior, so it seems that the interplay between the readers / writers and the EventStore could be the culprit here.The text was updated successfully, but these errors were encountered: