Function report |
Source Code:mm\oom_kill.c |
Create Date:2022-07-28 14:05:59 |
Last Modify:2022-05-23 13:16:41 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Simple selection loop. We choose the process with the highest number of* 'points'. In case scan was aborted, oc->chosen is set to -1.
Proto:static void select_bad_process(struct oom_control *oc)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct oom_control * | oc |
367 | If is_memcg_oom(oc) Then mem_cgroup_scan_tasks(Memory cgroup in which oom is invoked, or NULL for global oom , oom_evaluate_task, oc) |
369 | Else |
373 | for_each_process(p) |
374 | If oom_evaluate_task(p, oc) Then Break |
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 |