LINUX.ORG.RU

История изменений

Исправление AndreyKl, (текущая версия) :

Мимокрокодил.

Судя по ману (man malloc, раздел notes), можно попробовать выставить overcommit в двойку

https://www.kernel.org/doc/Documentation/vm/overcommit-accounting.rst

2 Don’t overcommit. The total address space commit for the system is not permitted to exceed swap + a configurable amount (default is 50%) of physical RAM. Depending on the amount you use, in most situations this means a process will not be killed while accessing pages but will receive errors on memory allocation as appropriate.

Useful for applications that want to guarantee their memory allocations will be available in the future without having to initialize every page.

Но не уверен что это работает так как хочет ТС, и что для ТС есть вариант менять оверкоммит. (Хотя, почему, сбстно нет? Описываешь девопсам конфиг системы, они делают.. а там не знаю)

Исходная версия AndreyKl, :

Мимокрокодил.

Судя по ману (man malloc, раздел notes), можно попробовать выставить overcommit в двойку

https://www.kernel.org/doc/Documentation/vm/overcommit-accounting.rst

2 Don’t overcommit. The total address space commit for the system is not permitted to exceed swap + a configurable amount (default is 50%) of physical RAM. Depending on the amount you use, in most situations this means a process will not be killed while accessing pages but will receive errors on memory allocation as appropriate.

Useful for applications that want to guarantee their memory allocations will be available in the future without having to initialize every page.

Но не уверен что это подходит и работает так как хочет ТС.