llvm/llvm-project

orc::InProcessMemoryMapper makes too many memory mappings

Open

#63,236 建立於 2023年6月10日

在 GitHub 查看
 (16 留言) (1 反應) (0 負責人)C++ (10,782 fork)batch import
good first issuejulialangorcjit

倉庫指標

Star
 (26,378 star)
PR 合併指標
 (平均合併 1天 2小時) (30 天內合併 1,000 個 PR)

描述

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.

貢獻者指南