microsoft / microsoft/mimalloc

Set process memory limit

Open
#295 13 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
13.4k
Forks
1.2k
Avg merge
4d 45m
Merged PRs (30d)
13

Description

Is there a way to have mimalloc enforce an allocation limit?

I am looking at using mimalloc in a docker image. I would like to use it rather than `docker -m`. When using `-m` when the process exceeds the limit it is terminated. In some instances my data analytic process might try to allocate large blocks of memory, so instead of terminating i would rather error trap and keep the process alive.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files, tests, or entry points. Begin by locating mimalloc's public allocation API and existing allocation-failure tests, then define and verify the expected behavior when a configured memory limit is exceeded without terminating the process.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
operating-systems, performance
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.