Uh oh!
There was an error while loading. Please reload this page.
gh-141770: Annotate anonymous mmap usage if "-X dev" is used - #142079
Conversation
corona10
commented
Nov 29, 2025
cc @picnixz |
corona10
commented
Nov 29, 2025
FYI, Fedora does not support yet even if the kernel version itself already support it. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.
SpecLad
commented
Nov 29, 2025
FWIW, it would be useful to have an option to enable this in release builds too. |
corona10
commented
Nov 29, 2025
@SpecLad Thanks for the feedback, I will create a separate PR :) |
corona10
commented
Nov 29, 2025
@SpecLad Just out of curiosity, passing the build flag through |
SpecLad
commented
Nov 29, 2025
To be clear, by "option" I really mean a runtime option. 🙂 It would be pretty annoying to have to rebuild Python just for this. If you compare with other implementations, none of them require a compile-time option:
TBH, I don't see why Python shouldn't also permanently enable this, but I would settle for "off by default, enabled with environment variable or |
picnixz
commented
Nov 29, 2025
It's a bit annoying that this would only be supported on Linux. Do we have an option that isn't supported everywhere? |
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Victor Stinner <vstinner@python.org>
| modules that are missing or packaged separately. | ||
| (Contributed by Stan Ulbrych and Petr Viktorin in :gh:`139707`.) | ||
| * Annotating anonymous mmap usage is now supported if Linux kernel supports ``PR_SET_VMA_ANON_NAME`` (Linux 5.17 or newer). |
There was a problem hiding this comment.
* Annotating anonymous mmap usage is now supported if Linux kernel
supports :manpage:`PR_SET_VMA_ANON_NAME <PR_SET_VMA(2const)>`
(Linux 5.17 or newer).I don't know under which manpage entry it is, but if you locally run Sphinx, you should be able to find the correct one. That way, users would have a link to click on. If there isn't a manpage, nevermind.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…e-141770.JURnvg.rst Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.
…e-141770.JURnvg.rst Co-authored-by: Victor Stinner <vstinner@python.org>
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Victor Stinner <vstinner@python.org>
Uh oh!
There was an error while loading. Please reload this page.
bedevere-bot
commented
Dec 8, 2025
|
hugovk
commented
Dec 10, 2025
Please can you check the buildbot failure? |
… used (pythongh-142079)" This reverts commit c4ccaf4.
I think it's a problem with the buildbot machine: it's timing out on other branches now, and the builds are taking nearly five hours, when they used to take around 50 minutes: |
I just sent an email to David Bolen (the buildbot owner) to ask him to have a look. Something seems to be wrong with this buildbot worker. |
vstinner
commented
Dec 12, 2025
This change introduced a regression: #142627. |
vstinner
commented
Dec 12, 2025
Note for myself: The feature is not available on Fedora, since Fedora builds the Linux kernel without the |


mmapin_PyMem_ArenaAllocfor debugging #141770