Skip to main content
added 8 characters in body
Source Link
slm
  • 379.7k
  • 127
  • 793
  • 897

The memory resource controller for cgroups v1 allows for setting limits on memory usage on a particular cgroup using the memory.limit_in_bytes file. What is the Linux kernel's behaviourbehavior when this limit is reached?

In particular, does the kernel OOM kill the process and if so is the oom_score of the process taken into account, or is it the process that asked for the memory that caused the limit to be hit that gets killed? Or would the request for memory just be rejected in which case the process would only die if it didn't deal with such an event?:

  • Does the kernel OOM kill the process and if so is the oom_score of the process taken into account, or is it the process that asked for the memory that caused the limit to be hit that gets killed?
  • Or would the request for memory just be rejected in which case the process would only die if it didn't deal with such an event?

The memory resource controller for cgroups v1 allows for setting limits on memory usage on a particular cgroup using the memory.limit_in_bytes file. What is the Linux kernel's behaviour when this limit is reached?

In particular, does the kernel OOM kill the process and if so is the oom_score of the process taken into account, or is it the process that asked for the memory that caused the limit to be hit that gets killed? Or would the request for memory just be rejected in which case the process would only die if it didn't deal with such an event?

The memory resource controller for cgroups v1 allows for setting limits on memory usage on a particular cgroup using the memory.limit_in_bytes file. What is the Linux kernel's behavior when this limit is reached?

In particular:

  • Does the kernel OOM kill the process and if so is the oom_score of the process taken into account, or is it the process that asked for the memory that caused the limit to be hit that gets killed?
  • Or would the request for memory just be rejected in which case the process would only die if it didn't deal with such an event?
Source Link
dippynark
  • 337
  • 4
  • 12

What's the Linux kernel's behaviour when processes in a cgroup hit their memory limit?

The memory resource controller for cgroups v1 allows for setting limits on memory usage on a particular cgroup using the memory.limit_in_bytes file. What is the Linux kernel's behaviour when this limit is reached?

In particular, does the kernel OOM kill the process and if so is the oom_score of the process taken into account, or is it the process that asked for the memory that caused the limit to be hit that gets killed? Or would the request for memory just be rejected in which case the process would only die if it didn't deal with such an event?