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

The size of the coredump file generated when the process crashes is too large. #1021

Open
TechVortexZ opened this issue Feb 22, 2025 · 1 comment

Comments

@TechVortexZ
Copy link

I use mimalloc on the arm64 platform. When I use kill -11 to make the process generate a coredump file, the size of this coredump file is more than double that of not using mimalloc.

The first line below is the coredump file generated using mimalloc, and the second line is the coredump file generated without mimalloc:
`
-rw-------. 1 root root 2.9G 1月 1 2024 core-perception-4598-1704038613

-rw-------. 1 root root 1023M 1月 1 2024 core-perception-4666-1704039050
`
This affects our normal debugging and use. Is there any solution?

@daanx
Copy link
Collaborator

daanx commented Feb 24, 2025

Difficult to say why this happens. May try running with the MIMALLOC_ARENA_EAGER_COMMIT=0 environment option -- this will only reserve but not yet commit virtual memory which may reduce the core dump?

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