llvm/llvm-project

orc::InProcessMemoryMapper makes too many memory mappings

Open

#63.236 geöffnet am 10. Juni 2023

Auf GitHub ansehen
 (16 Kommentare) (1 Reaktion) (0 zugewiesene Personen)C++ (10.782 Forks)batch import
good first issuejulialangorcjit

Repository-Metriken

Stars
 (26.378 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1T 2h) (1.000 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide