llvm/llvm-project

orc::InProcessMemoryMapper makes too many memory mappings

Open

#63 236 ouverte le 10 juin 2023

Voir sur GitHub
 (16 commentaires) (1 réaction) (0 assignés)C++ (10 782 forks)batch import
good first issuejulialangorcjit

Métriques du dépôt

Stars
 (26 378 stars)
Métriques de merge PR
 (Merge moyen 1j 2h) (1 000 PRs mergées en 30 j)

Description

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.

Guide contributeur