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 B6D21C25B0E for ; Wed, 17 Aug 2022 00:36:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 496998D0002; Tue, 16 Aug 2022 20:36:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 445228D0001; Tue, 16 Aug 2022 20:36:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2E5E78D0002; Tue, 16 Aug 2022 20:36:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 1C98B8D0001 for ; Tue, 16 Aug 2022 20:36:00 -0400 (EDT) Received: from smtpin06.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id E03A9C056E for ; Wed, 17 Aug 2022 00:35:59 +0000 (UTC) X-FDA: 79807217238.06.BFA782F Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf21.hostedemail.com (Postfix) with ESMTP id 7AFC31C0024 for ; Wed, 17 Aug 2022 00:35:59 +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 A0F6A612B8; Wed, 17 Aug 2022 00:35:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8678C433C1; Wed, 17 Aug 2022 00:35:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1660696558; bh=rG79DD24dX4e5VgWuhJRn5wtm7pwvrUI+L9UWPXbKb0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=w75K+z7TcW8wmVDLD+G1ANxuWTNi5EWvFgaQEABBH3+d3yQbtcM4VrMwPeEik0le4 3bdD68Ghyesxl6oCmerZBRUG2JpxuLnNiyNnp3SjqjD/LNz8NOy2DH5i0zVW3/cmK0 lX/YJASDANkuh4kK5ke3kJG/xn53bMhbc+++JdGo= Date: Tue, 16 Aug 2022 17:35:56 -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: <20220816173556.cb493d6a85edd65e1fa52911@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-pc-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=1660696559; a=rsa-sha256; cv=none; b=4lJSr1VQyYLHskt8/dxV8K/O0sfiIuXBPQrYwM71aW8PqA1P4DR851WCJnj2Twx44UPyYu 73tTO+F/yPU2Gx7a1ZIhVaEERBj80V9Pem3RJZZIYwpeN5Nc873eS4vx8wepk2YZ2kIs37 If3lvf1tvgoDyqmpmmzSN6vZPMmDSBQ= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=w75K+z7T; spf=pass (imf21.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=1660696559; 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=15LLOONKuSKdIddo8m8jwkEMBZ+UbaNLrwsszxcljSQ=; b=cb0UX4NNUFq15txDWlBNJojp2HeZR9tM+gav/Q1p5SSkUqn0qtI/OxMXPILZLtIQjFAye3 FxWnLvDylSkMYflsy3BLH+Z/ccDiiaPN05jSNMys91gysxqsD+hYQPDhXLTKO1Jhu9jK1z 32yGUfdueaFD8uQAO16AXqSRdBnwyP4= Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=w75K+z7T; spf=pass (imf21.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-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 7AFC31C0024 X-Stat-Signature: zkxkbrcj1n39o33cok8fy3m53b6nhhrt X-Rspam-User: X-HE-Tag: 1660696559-186822 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000003, 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: > 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. Why? Please describe in full detail the end-user value of this change.