-
Notifications
You must be signed in to change notification settings - Fork 255
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
perf parsing opens the same files over and over again -> EMFILE
#690
Comments
EMFILE
this is an inherent limitation of elfutils, we must have a per-pid and no, doing per-pid processing or nuking the the good news is that elfutils might get some new API for that in the future which would allow us to better reuse data across PIDs and thus drastically reduce the work required: https://sourceware.org/pipermail/elfutils-devel/2024q4/007674.html |
That RFC does sound promising - in general; especially as we bundle elfutils and therefore users would have access to this fast.
I see the point but there can be another conclusion:
|
Describe the bug
A perf record of a bunch of processes cannot be exported (directly from the command line to not open anything unnecessary).
As non-root hotspot seems to hang after a bunch of
As root those messages are seen over and over again.
To Reproduce
Do a system wide trace, doing something that involves a lot of processes.
run
hotspot --exportTo out.perfparser perf.data
Expected behavior
Each file is only opened once; if this is not possible then each PID is handled separately (closing everything after the PID was handled; optional with a --save-but-slow option)
Screenshots
If applicable, add screenshots to help explain your problem.
Version Info (please complete the following information):
Additional context
It seems that the same files are opened multiple times to resolve the symbols. I conclude that because the first PIDs that have libgmp loaded had no problem at all, but after a while l get this error message for each PID in the trace.
The text was updated successfully, but these errors were encountered: