llvm/llvm-project

orc::InProcessMemoryMapper makes too many memory mappings

Open

#63.236 aperta il 10 giu 2023

Vedi su GitHub
 (16 commenti) (1 reazione) (0 assegnatari)C++ (10.782 fork)batch import
good first issuejulialangorcjit

Metriche repository

Star
 (26.378 star)
Metriche merge PR
 (Merge medio 1g 2h) (1000 PR mergiate in 30 g)

Descrizione

First seen in https://github.com/JuliaLang/julia/pull/49745, but to summarize, InProcessMemoryMapper calls mprotect many many times on mmaped memory, so many times that for a non trivial workload we go past /proc/sys/vm/max_map_count leading to a ENOMEM error.

I haven't created a non julia reproducer but it should be possible.

Guida contributor