Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp165106pxv; Wed, 30 Jun 2021 17:46:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJ+qayRP8M0WOGYvzuoK/5fwuy7QGW3FpwFCM4+dOAlED6mDKpuF8MWIlqPFOs4B9jm4MQ X-Received: by 2002:aa7:dd14:: with SMTP id i20mr11244343edv.171.1625100407006; Wed, 30 Jun 2021 17:46:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625100406; cv=none; d=google.com; s=arc-20160816; b=d0LYmzi7gOfgW81W9UkvssQGhKHWlq3rJKaSAVtE7HwJP5VtVvTl16EZZdecz3c5pk aIFk/Ce6/1PgaqN0csGICNcMEXBXNtCs5iFNbUJVIhEKyKu7VEnOWXwSc6WhLEdLkeuO DLvi3rloq23OzHoWMdYV3m6DLNabSrd8qkuM/KTpaZ89xHPvhbnWfHKqe6xI9WE5kM0E cz7csniTCZizGRrlzcrVj4XlioG2qMKLVGoBp2lL1uX7pMehnGumq03r3LfXLR3YurQ+ AjbPPcK9SVMLL9c1GZ/SN49o2MpmbTYg/j7ymko7RsPFqeEHupnLFJPnkg3VNLxfB85n ybRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=UZCI5aZcDUq1h64/nfUfyIjEClXzOnYQIU92Lp2numQ=; b=LqSIkyIKcoECrwC9H6F7eylHMg+ELSrhuFj9VquU8t21NpJkoIW0Gqn+YbO6iYxUye hFUVW83POTqKJipjmqZefDAJyYAebQAXUI4vgnt8pASrB+D6o24NjE2f9d4AhADrOjyW jW3EZo7CM4Zwaa9yXB/RDR1k31zHv9mhzifFGclGuoTxbY4q7eUOfvwQqLyRdBxcxRCa Ucxrro1KUzadPuOIqKhBUiXeTue2jgZr0cvp+4t8EObX6N445uxBOitEnyhXTBaXv7Jx aJjK+fqyt+zcAf/48bdb38rX8vFBc3mcSkXgFLuIwnXZcL4/rFSVcSfmo8iWr/9rPzDX /q+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vP0y52s9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 8si19165114eje.741.2021.06.30.17.46.23; Wed, 30 Jun 2021 17:46:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vP0y52s9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238139AbhGAAra (ORCPT + 99 others); Wed, 30 Jun 2021 20:47:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:56486 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237629AbhGAAr3 (ORCPT ); Wed, 30 Jun 2021 20:47:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 24B3C61425 for ; Thu, 1 Jul 2021 00:45:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625100300; bh=KzOU5etl1m1d6bSza+N7XM/HsZQCAVW9hItb7YjwLWk=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=vP0y52s97JHm7o5r0zUZ7tZ8hbWtss6Xiwg/vW6zq04Yhvrn1TY739q7wRQkpY3Ih 7NS0cRRC5kLSOWvssCCLZs+venx9AQbh1X41vDVElXDHiYqZTIVJ/IRwuBatni9rN1 o8xCWdh/kY3sF1alOTCk/3c63qFgwYNyWinW/lIkF7L/aV/NbYo3xSO4K1UenZMN7K fJwGc8ji5I2hznWblF0kFJiUmclM3GassBfR9Gvm/9V26dS1KPGx1meUH1aMpTpAVQ ijbhnveRQeKt+eGjKup2tBc8mnsCDdYY46FBHxT1Qp4Z7IbROvM9drHG5szJjlLRUp SMMaL2GPs2G8g== Received: by mail-lf1-f42.google.com with SMTP id d16so8539857lfn.3 for ; Wed, 30 Jun 2021 17:45:00 -0700 (PDT) X-Gm-Message-State: AOAM532LhRxYLGsr8qZ11/NGC9o7YXjx8iiMtjtlnSPUD4om61vD6p7r nhwV3eFbd7apn01qc3n6Ni8MkVAjxrZlffV03IZs7w== X-Received: by 2002:a17:907:1c98:: with SMTP id nb24mr17429770ejc.316.1625100287892; Wed, 30 Jun 2021 17:44:47 -0700 (PDT) MIME-Version: 1.0 References: <20210623192822.3072029-1-surenb@google.com> In-Reply-To: From: Andy Lutomirski Date: Wed, 30 Jun 2021 17:44:36 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/1] mm: introduce process_reap system call To: Johannes Weiner Cc: Suren Baghdasaryan , Andy Lutomirski , Andrew Morton , Michal Hocko , Michal Hocko , David Rientjes , Matthew Wilcox , Roman Gushchin , Rik van Riel , Minchan Kim , Christian Brauner , Christoph Hellwig , Oleg Nesterov , David Hildenbrand , Jann Horn , Shakeel Butt , Tim Murray , Linux API , Linux-MM , LKML , Android Kernel Team Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 30, 2021 at 2:45 PM Johannes Weiner wrote: > > On Wed, Jun 30, 2021 at 11:51:36AM -0700, Suren Baghdasaryan wrote: > > On Wed, Jun 30, 2021 at 11:26 AM Andy Lutomirski wrote: > > > Also, please consider removing all mention of the word "reap" from the > > > user API. For better or for worse, "reap" in UNIX refers to what > > > happens when a dead task gets wait()ed. I sincerely wish I could go > > > back in time and gently encourage whomever invented that particular > > > abomination to change their mind, but my time machine doesn't work. > > > > I see. Thanks for the note. How about process_mem_release() and > > replacing reap with release everywhere? > > I don't quite understand the objection. This syscall works on tasks > that are at the end of their life, right? Isn't something like > process_mreap() establishing exactly the mental link we want here? > Release is less descriptive for what this thing is to be used for. For better or for worse, "reap" means to make a zombie pid go away. From the description, this new operation takes a dying process (not necessarily a zombie yet) and aggressively frees its memory. This is a different optioneration. How about "free_dying_process_memory"?