lkml.org 
[lkml]   [2022]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v2] mm: oom_kill: add trace logs in process_mrelease() system call
From

On 17-08-2022 21:32, Andrew Morton wrote:
> On Tue, 16 Aug 2022 11:30:17 +0530 Pratyush Brahma <pbrahma@qti.qualcomm.com> wrote:
>
>> From: Charan Teja Kalla <quic_charante@quicinc.com>
>>
>> The process_mrelease() system call[1] is used to release the memory of
>> a dying process from the context of the caller, which is similar to and
>> uses the functions of the oom reaper logic. There exists trace logs for
>> a process when reaped by the oom reaper. Just extend the same to when
>> done by the process_mrelease() system call.
>>
>> ...
>>
>> + pr_debug("process_mrelease: reaped process %d (%s), now anon-rss:%lukB, file-rss:%lukB, shmem-rss:%lukB\n",
>> + task_pid_nr(task), task->comm,
>> + K(get_mm_counter(mm, MM_ANONPAGES)),
>> + K(get_mm_counter(mm, MM_FILEPAGES)),
>> + K(get_mm_counter(mm, MM_SHMEMPAGES)));
> This addition wasn't changelogged. It's the only pr_debug in
> oom_kill.c. Please explain?

The equivalent pr_info() message as in oom_reap_task_mm() is made
pr_debug() here as per review comments in patch-set v1.

>

\
 
 \ /
  Last update: 2022-08-18 06:47    [W:0.116 / U:0.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site