[PATCH 0/4] gracefully handling mmap failures
- From
- Eric Wong <e@80x24.org>
- Date
- Jun 29, 2021, 08:11 UTC
- Message-ID
- <20210629081108.28657-1-e@80x24.org>
With an out-of-the-box Linux kernel, I encountered failures at all of these mmap call sites via "git cat-file --batch" on a test repo with 100K total alternates.
While upping sys.vm.max_map_count and/or RLIMIT_DATA solves the problem, not all users have administrative privileges to do so.
Eric Wong (4): use_pack: attempt to handle ENOMEM from mmap map_loose_object_1: attempt to handle ENOMEM from mmap check_packed_git_idx: attempt to handle ENOMEM from mmap xmmap: inform Linux users of tuning knobs on ENOMEM
object-file.c | 16 ++++++++++++++-- packfile.c | 17 ++++++++++++----- packfile.h | 2 ++ 3 files changed, 28 insertions(+), 7 deletions(-)