Disabling Linux memory overload inside the application

You can configure the memory override system through the sysctls system, but is it possible to configure this policy based on each process from the process itself? I want one particular real-time process to never use overcommit, although the rest of the system can outperform.

+4
source share
1 answer

No, It is Immpossible.

Most likely, for a real-time process, you probably want to use the mlock or mlockall functions to bind your address space to RAM.

+2
source

Source: https://habr.com/ru/post/1387367/


All Articles