Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp330259rwb; Sun, 6 Nov 2022 06:39:14 -0800 (PST) X-Google-Smtp-Source: AMsMyM7/0GkD0c+bgO5/zSpGHFjtg53x7+ExiHBwxOCmb9OvBK/VYd0YHgHz+s6K1XsFQy1+nkEK X-Received: by 2002:a17:907:97ca:b0:791:644c:491e with SMTP id js10-20020a17090797ca00b00791644c491emr43435491ejc.555.1667745554757; Sun, 06 Nov 2022 06:39:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667745554; cv=none; d=google.com; s=arc-20160816; b=S4yj2Ga3bEZDoROe72GAjIpuQVkaTUaedOc+1BL+YapbuefvUSXG9IvwpSzLw3rSQR CHpBA+Zw9y0wdKqyGtrdDy4VQwZU4co3bdRjY8ZGbp89ZwcnxsYwP6RLMnLnlH/2KTKg ZObsaPyHJBb1k3SQZ89ThyjLlHRPb9/Y0zL5XDiauABPMRT/tDi88+eLRrWdRZ1JQo0i qW3HBhbU02nyPjHuotizG+y0SZRLEP6L6qTl6AZis+Ba+KAwdFqCg6B4BwZnC5RUMQBh LvqpcmaLzkfPUkxRGIkxtMXeD7OhKDRjPvDNVMVWJ8mQutxe4mK2wY516a0BXrnI6/ZV 6TSQ== 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=4Cc3Cob2HMpA+4FuJJhkFj8IUBM4Qig1zRJRYFxaKeQ=; b=WaAfoyxV2mpHZGoK0R3wejZYbFBh2sk8BXnhGMRxMUBynV2Ew5hixJBTaTeONxCa/P mZe0E3o8RMSrTVx4Q/THN39ikrk9N/CDja+ITFpIidZ7MYTKz9VHL1xg91nx0Y9GHtfI R4BLDOTC3dfVM0F+M/khhKaroW3lMEAuqaHyrt3maVQSBP/CPa4I6Zw4fMOHYVAHSXYV JlEkEW71J3jY6cffPQj0LDc2y/lsc4X8OpzYCU49bW5j79ajtSdP+pnJtr6HFvh5/Ndx Fj0G/U5wLVC0n83yjoeoAR0J/gmCQJZMPtVaQIU/fdsAMM6mX/PCZfL16VUSW1PfH2tt 1tqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=i+XtjvGS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hw19-20020a170907a0d300b007aa493b067asi4739131ejc.396.2022.11.06.06.38.41; Sun, 06 Nov 2022 06:39:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=i+XtjvGS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229999AbiKFNrH (ORCPT + 96 others); Sun, 6 Nov 2022 08:47:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229939AbiKFNrG (ORCPT ); Sun, 6 Nov 2022 08:47:06 -0500 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DBDE113F for ; Sun, 6 Nov 2022 05:47:05 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id a67so13816964edf.12 for ; Sun, 06 Nov 2022 05:47:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=4Cc3Cob2HMpA+4FuJJhkFj8IUBM4Qig1zRJRYFxaKeQ=; b=i+XtjvGSXRuumvaCFDiGQ3DTX1a6VYta2aAmDaYwPeZV47m/TFpCpgYNvrvc+oviIc 2v6YOarLLUwNPaNXG8Sd8zzObAmDR3OuSwflTqP3Pi8wYUPLcRb3qpcUcNX3H5lME1AO 2YX5341IlxRbenFdpH4Es5tSBqMgLe5DoNd2yUivWgB74w6B/haOqesq+5VOdo/V8l0Z J5446eY1lR+EavB5zej6PEfU9yVi3zznqcqVDLX2a5oVf8Uxq2EwI4Gueh7id3f/7H+d CNeqE3CEhAj7plFdnJ2OGxgnsWRc1lh0bEV7f3aBeHpEOhnPUIus1TymFzzJW/HePhtD olPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4Cc3Cob2HMpA+4FuJJhkFj8IUBM4Qig1zRJRYFxaKeQ=; b=MqhFiDNzSUPFVJSzmOm7bNgEEiDxGluYGdP0tA1lt9f+1ZiNhHdn9GJMjpnbgwI8ok dNy4J2Q/kEEkbqLxYNGjaGLRQKhMQE4pKp70FCfpNxc5FRjHj+CzKfjHN7xemCH/Yg0h NJqIUrCJqDZd5tY16bU+ygnc4Fpkm7WIYkv/0Fpl5DzmwtBAZFfyJQ82AdXuH4pFthz/ EZ+bHrHaQAMpLTipRsiITyI0MsZYAyM6OjN1q+rh0tEoBYFrw+gM39FGQyS+5nRwcCKT KkBYVZPWxXXN3Rxo0hlLlvDNrTGFqhaWNTnYIebleNKz3MuGZaticIh5+1AVH1svp3JB tDhg== X-Gm-Message-State: ACrzQf02sLDmoK06BzSuOZXN/FUvscLUpePmW7GejgLxO6Ap9gPO0YsH Ha5Jo72XWJmR9p8bhZ1eq6o8J3pE5e/GsLtiYkd7UA== X-Received: by 2002:a50:eb83:0:b0:462:a2ac:8623 with SMTP id y3-20020a50eb83000000b00462a2ac8623mr45311356edr.360.1667742423783; Sun, 06 Nov 2022 05:47:03 -0800 (PST) MIME-Version: 1.0 References: <20221105025342.3130038-1-pasha.tatashin@soleen.com> In-Reply-To: From: Pasha Tatashin Date: Sun, 6 Nov 2022 08:46:26 -0500 Message-ID: Subject: Re: [PATCH] mm: anonymous shared memory naming To: Bagas Sanjaya Cc: corbet@lwn.net, akpm@linux-foundation.org, hughd@google.com, hannes@cmpxchg.org, david@redhat.com, vincent.whitchurch@axis.com, seanjc@google.com, rppt@kernel.org, shy828301@gmail.com, paul.gortmaker@windriver.com, peterx@redhat.com, vbabka@suse.cz, Liam.Howlett@oracle.com, ccross@google.com, willy@infradead.org, arnd@arndb.de, cgel.zte@gmail.com, yuzhao@google.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 5, 2022 at 5:34 AM Bagas Sanjaya wrote: > > On Sat, Nov 05, 2022 at 02:53:42AM +0000, Pasha Tatashin wrote: > > Since: > > commit 9a10064f5625 ("mm: add a field to store names for private anonymous > > memory") > > > > We can set names for private anonymous memory but not for shared > > anonymous memory. However, naming shared anonymous memory just as > > useful for tracking purposes. > > > > Who are "we"? > > Instead, say "Since commit , name for private anonymous memory, > but not shared anonymous, can be set". Thanks will update. > > > @@ -431,8 +431,10 @@ is not associated with a file: > > [stack] the stack of the main process > > [vdso] the "virtual dynamic shared object", > > the kernel system call handler > > - [anon:] an anonymous mapping that has been > > + [anon:] a private anonymous mapping that has been > > named by userspace > > + path [anon_shmem:] an anonymous shared memory mapping that has > > + been named by userspace > > ============= ==================================== > > > > The table above triggers Sphinx warning: > > Documentation/filesystems/proc.rst:436: WARNING: Malformed table. > Text in column margin in table line 8. > > ============= ==================================== > [heap] the heap of the program > [stack] the stack of the main process > [vdso] the "virtual dynamic shared object", > the kernel system call handler > [anon:] a private anonymous mapping that has been > named by userspace > path [anon_shmem:] an anonymous shared memory mapping that has > been named by userspace > ============= ==================================== > > I have applied the fixup: > > ---- >8 ---- > > diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst > index 8f1e68460da5cd..3f17b4ef307fe4 100644 > --- a/Documentation/filesystems/proc.rst > +++ b/Documentation/filesystems/proc.rst > @@ -426,7 +426,7 @@ with the memory region, as the case would be with BSS (uninitialized data). > The "pathname" shows the name associated file for this mapping. If the mapping > is not associated with a file: > > - ============= ==================================== > + ======================== =========================================== > [heap] the heap of the program > [stack] the stack of the main process > [vdso] the "virtual dynamic shared object", > @@ -435,7 +435,7 @@ is not associated with a file: > named by userspace > path [anon_shmem:] an anonymous shared memory mapping that has > been named by userspace > - ============= ==================================== > + ======================== =========================================== > > or if empty, the mapping is anonymous. > > > Thanks. Great, thank you. Pasha > > -- > An old man doll... just what I always wanted! - Clara