From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12C55C25B08 for ; Wed, 17 Aug 2022 16:02:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 467AE6B0073; Wed, 17 Aug 2022 12:02:52 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 416E38D0001; Wed, 17 Aug 2022 12:02:52 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3062B6B0075; Wed, 17 Aug 2022 12:02:52 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 2211F6B0073 for ; Wed, 17 Aug 2022 12:02:52 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id DD17E415FC for ; Wed, 17 Aug 2022 16:02:51 +0000 (UTC) X-FDA: 79809552942.17.FD5C46D Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf03.hostedemail.com (Postfix) with ESMTP id B1482201ED for ; Wed, 17 Aug 2022 16:02:49 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 93C3861595; Wed, 17 Aug 2022 16:02:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB506C433D6; Wed, 17 Aug 2022 16:02:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1660752168; bh=3UdwnNUZwdXFDg8LnAxqtXZ5ba2/AOzmihq8V8tBfmk=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=fB13grRcIyPXjYpP17x07Wyec960L6xilhbIxcL2F3z8CG1Ppq2OinKV/8NhE4F3a 304UcPEJY+2qu953d6eL60r/rn4TWOkoAP+zqVq/qZgHLx/bxBsIekM4P3HJBymtPt PI4jyNojFovzUad+TkmeBD/tr1dORzphJYGjtfuA= Date: Wed, 17 Aug 2022 09:02:47 -0700 From: Andrew Morton To: Pratyush Brahma Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, quic_charante@quicinc.com, Pratyush Brahma Subject: Re: [PATCH v2] mm: oom_kill: add trace logs in process_mrelease() system call Message-Id: <20220817090247.ef99115ca7a6c847f90dc4c6@linux-foundation.org> In-Reply-To: <20220816060017.17996-1-pbrahma@qti.qualcomm.com> References: <20220816060017.17996-1-pbrahma@qti.qualcomm.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1660752171; a=rsa-sha256; cv=none; b=oDfy4ajZr9s42KxrDyt62gHI/zzig6uhf6u3NbAzYsZgOhMnIePbDrU6WhQyGw5ig4DRqD 84af50jOAFTei+kr6nOkkC7t2p4Upkldv7Qd6ky84VquOqqi1uKMlLkvhCps4sLhWmfvK7 SEipK83UWsdtE4yZU85WA0ZAKM0RgK4= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=fB13grRc; spf=pass (imf03.hostedemail.com: domain of akpm@linux-foundation.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1660752171; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=EYHLWwb3guIuCm2aXfu8gT59zR3j6bvGZExt21Bln6s=; b=ocPa8LITrj/UzoIPB2q0xDEsK+RP6CJTkzDbtqH/tisZ1wK+OaDWYbMpbGzE3ctHbuvMoB HNn51MAbPPT6oUSBjp5dm8SVS+MoE8b7mn6rnVUQsR4L7OYYLlVj59GxJ1w5eEmANUtQsd MeUS5268tRnPouDTLZaU0+tzzfvKYu0= Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=fB13grRc; spf=pass (imf03.hostedemail.com: domain of akpm@linux-foundation.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none X-Rspam-User: X-Stat-Signature: sgqh75xh9oiqydqq5myc5nhgdnpnn6db X-Rspamd-Queue-Id: B1482201ED X-Rspamd-Server: rspam06 X-HE-Tag: 1660752169-34693 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000037, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, 16 Aug 2022 11:30:17 +0530 Pratyush Brahma wrote: > From: Charan Teja Kalla > > 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?