Function report |
Source Code:mm\oom_kill.c |
Create Date:2022-07-28 14:06:32 |
| Last Modify:2022-05-23 13:16:41 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:oom_kill_process
Proto:static void oom_kill_process(struct oom_control *oc, const char *message)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct oom_control * | oc | |
| const char * | message |
| 971 | task_unlock(victim) |
| 973 | If __ratelimit( & oom_rs) Then dump_header(oc, victim) |
| 981 | oom_group = mem_cgroup_get_oom_group(victim, Memory cgroup in which oom is invoked, or NULL for global oom ) |
| 983 | __oom_kill_process(victim, message) |
| 988 | If oom_group Then |
| 990 | mem_cgroup_scan_tasks(oom_group, Kill provided task unless it's secured by setting* oom_score_adj to OOM_SCORE_ADJ_MIN., (void * )message) |
| 992 | mem_cgroup_put(oom_group) |
| 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 |