mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pratyush Brahma <quic_pbrahma@quicinc.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org>,
	<quic_charante@quicinc.com>, <quic_pkondeti@quicinc.com>
Subject: Re: [PATCH v2] mm: oom_kill: add trace logs in process_mrelease() system call
Date: Thu, 18 Aug 2022 10:15:59 +0530	[thread overview]
Message-ID: <e5901866-4bda-e95e-c0a1-ec29ec487e19@quicinc.com> (raw)
In-Reply-To: <20220817090247.ef99115ca7a6c847f90dc4c6@linux-foundation.org>


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.

>

      reply	other threads:[~2022-08-18  4:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-16  6:00 Pratyush Brahma
2022-08-17  0:35 ` Andrew Morton
2022-08-17  6:47   ` Pratyush Brahma
2022-09-19 14:43     ` Michal Hocko
2022-08-17 16:02 ` Andrew Morton
2022-08-18  4:45   ` Pratyush Brahma [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e5901866-4bda-e95e-c0a1-ec29ec487e19@quicinc.com \
    --to=quic_pbrahma@quicinc.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=quic_charante@quicinc.com \
    --cc=quic_pkondeti@quicinc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®