Function report |
Source Code:mm\oom_kill.c |
Create Date:2022-07-28 14:05:55 |
Last Modify:2022-05-23 13:16:41 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Determine the type of allocation constraint.
Proto:static enum oom_constraint constrained_alloc(struct oom_control *oc)
Type:enum oom_constraint
Parameter:
Type | Parameter | Name |
---|---|---|
struct oom_control * | oc |
257 | bool cpuset_limited = false |
260 | If is_memcg_oom(oc) Then |
261 | Used by oom implementation, do not set = If mem_cgroup_get_max(Memory cgroup in which oom is invoked, or NULL for global oom ) Else 1 |
262 | Return CONSTRAINT_MEMCG |
268 | If Not IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_NUMA) Then Return CONSTRAINT_NONE |
271 | If Not Used to determine cpuset Then Return CONSTRAINT_NONE |
278 | If Used to determine cpuset and node locality requirement & __GFP_THISNODE Then Return CONSTRAINT_NONE |
291 | Return CONSTRAINT_MEMORY_POLICY |
297 | If Not cpuset_zone_allowed(zone, Used to determine cpuset and node locality requirement ) Then cpuset_limited = true |
300 | If cpuset_limited Then |
304 | Return CONSTRAINT_CPUSET |
306 | Return CONSTRAINT_NONE |
Name | Describe |
---|---|
out_of_memory | _of_memory - kill the "best" process when we run out of memory*@oc: pointer to struct oom_control* If we run out of memory, we have the choice between either* killing a random task (bad), letting the system crash (worse) |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |