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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E6FA5C25B0E for ; Wed, 17 Aug 2022 00:36:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238006AbiHQAgD (ORCPT ); Tue, 16 Aug 2022 20:36:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237995AbiHQAgB (ORCPT ); Tue, 16 Aug 2022 20:36:01 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2965895D2 for ; Tue, 16 Aug 2022 17:36:00 -0700 (PDT) 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 ams.source.kernel.org (Postfix) with ESMTPS id 50020B81B6E for ; Wed, 17 Aug 2022 00:35:59 +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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.