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

pahole memory allocation problems #55

Open
jeffmerkey opened this issue Oct 7, 2024 · 2 comments
Open

pahole memory allocation problems #55

jeffmerkey opened this issue Oct 7, 2024 · 2 comments

Comments

@jeffmerkey
Copy link

When building RHEL 9.4 running as a qemu-kvm vm under gnome-boxes, it is required to configure a swap file size in excess of 10 GB for the kvm image to prevent pahole from crashing and triggering the OOM Killer and failing linux kernel build. it requires excessive amounts of memory when parsing the BTF data from vmlinux. gcc linking with ld works but when pahole executes it consumes excessive memory during 'make bzImage modules'. It really needs to be rewritten with it's own internal lru or save data as intermediate files rather than just sucking up 6-7 GB of memory and crashing the system. Is there some workaround for this issue? Thanks.

@jeffmerkey
Copy link
Author

I will look over the program and possibly suggest a fix for this.

@alan-maguire
Copy link
Contributor

have you tested the "next" branch? It has multiple fixes around memory usage.

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