-
-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
mimalloc: warning: unable to directly request hinted aligned OS memory #112027
Comments
cc @DinoV |
Can not reproduce the issue on macOS. |
The same issue occurs with the RISC-V architecture. |
Is that Raspberry Pi hardware with 64-bit ARM CPU? |
Yes, Cortex-A53 (ARMv8) 64-bit SoC @ 1.4GHz |
We should disable this warning. There's a few warnings from mimalloc that are emitted in debug mode that happen during normal operation and don't signify anything wrong. This is one of them. |
This changes the warning to a "verbose"-level message in prim.c. The address passed to mmap is only a hint -- it's normal for mmap() to sometimes not respect the hint and return a different address.
I ran into this on Linux x86-64 today as well. It's not limited Raspberry Pi (arm64) or RSIC-V. Most of the time mmap() will place the mapping at the suggested address, but not always. That's fine -- it doesn't lead to the allocation failing, mimalloc just falls back to a slightly slower path. |
gh-112027: Don't print mimalloc warning after mmap This changes the warning to a "verbose"-level message in prim.c. The address passed to mmap is only a hint -- it's normal for mmap() to sometimes not respect the hint and return a different address.
@furkanonder Please check that the issue is solved :) |
@corona10 I checked, the problem seems to be solved. So I am closing the issue. Thanks @corona10 @colesbury |
…ongh-113372) pythongh-112027: Don't print mimalloc warning after mmap This changes the warning to a "verbose"-level message in prim.c. The address passed to mmap is only a hint -- it's normal for mmap() to sometimes not respect the hint and return a different address.
…ongh-113372) pythongh-112027: Don't print mimalloc warning after mmap This changes the warning to a "verbose"-level message in prim.c. The address passed to mmap is only a hint -- it's normal for mmap() to sometimes not respect the hint and return a different address.
…ongh-113372) pythongh-112027: Don't print mimalloc warning after mmap This changes the warning to a "verbose"-level message in prim.c. The address passed to mmap is only a hint -- it's normal for mmap() to sometimes not respect the hint and return a different address.
Bug report
Bug description:
Configuration:
Test Output:
Environment:
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: