Skip to content
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

eBPF, /proc/PID/mem, CRIU, and gdb/gcore for generic heap dumps? #2

Open
chadbrewbaker opened this issue Mar 14, 2021 · 1 comment
Open

Comments

@chadbrewbaker
Copy link

Any interest in expanding to generic linux process heap dumps?

https://github.com/iovisor/bcc/blob/master/tools/profile.py is the most popular eBPF script for logging stack traces.

I was hoping of creating a tool that similarly did /proc/PID/mem snapshots to visualize the heaps of arbitrary processes.

I know there is https://criu.org/Main_Page - like IBM/Intel MPI checkpoint it can write an entire cgroup stack and memory to file. This would certainly work. Might also have to log all the malloc() and free() calls.

GDB and gcore can also do it https://serverfault.com/questions/173999/dump-a-linux-processs-memory-to-file.

https://github.com/facebookexperimental/rbperf does the eBPF but doesn't seem to support more than logging libc memory calls - no heap visualization.

@FooBarWidget
Copy link
Owner

This project is mostly meant for research, not for serious usage. Building a more production-ready tool is out of scope of this project. Furthermore, I don't really have time right now for an effort to build a more production-ready tool.

Your references are very interesting however, so thank you for that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants