Function report |
Source Code:mm\oom_kill.c |
Create Date:2022-07-28 14:06:29 |
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 task_struct *victim, const char *message)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct task_struct * | victim | |
const char * | message |
860 | bool can_oom_reap = true |
863 | If Not p Then |
864 | put_task_struct(victim) |
865 | Return |
877 | Disable counters |
887 | pr_err("%s: Killed process %d (%s) total-vm:%lukB, anon-rss:%lukB, file-rss:%lukB, shmem-rss:%lukB, UID:%u pgtables:%lukB oom_score_adj:%hd\n", message, task_pid_nr(victim), comm, K( Total pages mapped ), K(per-process(per-mm_struct) statistics.), K(per-process(per-mm_struct) statistics.), K(per-process(per-mm_struct) statistics.), m_kuid - Create a uid from a kuid user-namespace pair.*@targ: The user namespace we want a uid in.*@kuid: The kernel internal uid to start with.* Map @kuid into the user-namespace specified by @targ and* return the resulting uid., mm_pgtables_bytes(mm) >> 10, oom_score_adj) |
894 | task_unlock(victim) |
909 | If same_thread_group(p, victim) Then Continue |
912 | can_oom_reap = false |
914 | pr_info("oom killer %d (%s) has mm pinned by %d (%s)\n", task_pid_nr(victim), comm, task_pid_nr(p), comm) |
917 | Continue |
923 | If Value for the false possibility is greater at compile time(flags & I am a kernel thread ) Then Continue |
929 | If can_oom_reap Then wake_oom_reaper(victim) |
933 | put_task_struct(victim) |
Name | Describe |
---|---|
oom_kill_memcg_member | Kill provided task unless it's secured by setting* oom_score_adj to OOM_SCORE_ADJ_MIN. |
oom_kill_process |
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 |