Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1679990pxb; Thu, 7 Oct 2021 12:43:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgUWwBdSmQsOm+nyRzV/Mt+xnZIJbC9em7mBv/2ELeVmkOWuShN8Wxx7RpzufR8YbrIWPq X-Received: by 2002:a17:902:bcc6:b0:138:d3ca:c356 with SMTP id o6-20020a170902bcc600b00138d3cac356mr5770845pls.6.1633635833855; Thu, 07 Oct 2021 12:43:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633635833; cv=none; d=google.com; s=arc-20160816; b=ftXU14hTmVJUw5M3QMU5/yflc6vbPiGLAPfI94izMaUwJhoZw2xaRHNvDnPARY9vyO a6+4C+R+qwKEMoCYzYkn9NDZLkQyt5SnSV1xOK4FsN3tccve9vAVV0WpXX6fPp9DcLOI 9TxrArk+ZqLVIJGzXQzxN41tmX2ADJ/ead6CGm6w3K/KNZzeAGiOkSdXGc6pe4cbH6s1 QuCi0NSW0pCgnvD7GWHVBWzzchvs+X+irCeu77WAV4BjkzQT7o9Zcr0WJwOz/EFQKm9w 2/SnenpGMPjLDcfxA/m3m9V8ERsxYORPYCHy9FIsK4iGr0zX14vtUdLPxhK0KYdNH5QI kUZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qigBJImm0bI7q0YWtDDX1bgWmdo8dnSEw5xRqkvyw54=; b=JZivnubkUBCro6J/BkQj4X+qbD7zUS5us8xMRD6glCt23SC8FLwF0FOlttxypT2g9C 5rux8tDab8RSqQnzrGVBxzCpX5dPwxqmRH592MGqylLmvrXLcbQa2mK8TXS3r7lvjawi 5YxkZouGKSXoYH3hNAps4ktYVDmgZp/m979Fbm82aXN5hNcfe9ISZaFFAgn7FBYD8rLT o73QJoVEysI7sVG4o9c84nsBEpx8RrwxL7MOu74m5O4derYo0A0Fb9KZIPV7gmlchBDG aXgMzmSAW4bs7p1JPq/QvDByw0z7qe6+qKWF5jjCFw/9h7uSAXaiVixoC+SEjfwZS7OA cXCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=lzQyM1TX; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z21si280599pgv.564.2021.10.07.12.43.41; Thu, 07 Oct 2021 12:43:53 -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=@suse.com header.s=susede1 header.b=lzQyM1TX; 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=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241640AbhJGR1l (ORCPT + 99 others); Thu, 7 Oct 2021 13:27:41 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:34556 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232166AbhJGR1k (ORCPT ); Thu, 7 Oct 2021 13:27:40 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id BACF8200FA; Thu, 7 Oct 2021 17:25:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1633627545; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qigBJImm0bI7q0YWtDDX1bgWmdo8dnSEw5xRqkvyw54=; b=lzQyM1TXf3BA7JOXjCgNiGFuBqNGMNaDLvya0jixOcY7gujlJVXiTTRi7amdPPfovQHF1C PHW34NOASRYNKlh5/bWSS4JLtWBPItIVyx921N5qoAz4swGIXRRMnCHzwAoUB7aJ8lIIUe e0n/qAiO6Cdr8gjHhqaWcefwuCSPpZk= Received: from suse.cz (unknown [10.100.201.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id CD616A3B81; Thu, 7 Oct 2021 17:25:44 +0000 (UTC) Date: Thu, 7 Oct 2021 19:25:41 +0200 From: Michal Hocko To: Suren Baghdasaryan Cc: David Hildenbrand , John Hubbard , Pavel Machek , Andrew Morton , Colin Cross , Sumit Semwal , Dave Hansen , Kees Cook , Matthew Wilcox , "Kirill A . Shutemov" , Vlastimil Babka , Johannes Weiner , Jonathan Corbet , Al Viro , Randy Dunlap , Kalesh Singh , Peter Xu , rppt@kernel.org, Peter Zijlstra , Catalin Marinas , vincenzo.frascino@arm.com, Chinwen Chang =?utf-8?B?KOW8temMpuaWhyk=?= , Axel Rasmussen , Andrea Arcangeli , Jann Horn , apopple@nvidia.com, Yu Zhao , Will Deacon , fenghua.yu@intel.com, thunder.leizhen@huawei.com, Hugh Dickins , feng.tang@intel.com, Jason Gunthorpe , Roman Gushchin , Thomas Gleixner , krisman@collabora.com, chris.hyser@oracle.com, Peter Collingbourne , "Eric W. Biederman" , Jens Axboe , legion@kernel.org, Rolf Eike Beer , Cyrill Gorcunov , Muchun Song , Viresh Kumar , Thomas Cedeno , sashal@kernel.org, cxfcosmos@gmail.com, Rasmus Villemoes , LKML , linux-fsdevel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm , kernel-team Subject: Re: [PATCH v10 3/3] mm: add anonymous vma name refcounting Message-ID: References: <20211005200411.GB19804@duo.ucw.cz> <6b15c682-72eb-724d-bc43-36ae6b79b91a@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 07-10-21 09:43:14, Suren Baghdasaryan wrote: > On Thu, Oct 7, 2021 at 9:37 AM Michal Hocko wrote: [...] > > OK, so there is no real authority or any real naming convention. You > > just hope that applications will behave so that the consumer of those > > names can make proper calls. Correct? > > > > In that case the same applies to numbers and I do not see any strong > > argument for strings other than it is more pleasing to a human eye when > > reading the file. And that doesn't sound like a strong argument to make > > the kernel more complicated. Functionally both approaches are equal from > > a practical POV. > > I don't think that's correct. Names like [anon:.bss], > [anon:dalvik-zygote space] and > [anon:dalvik-/system/framework/boot-core-icu4j.art] provide user with > actionable information about the use of that memory or the allocator > using it. No, none of the above is really actionable without a common understanding. Both dalvik* are a complete gibberish to me. -- Michal Hocko SUSE Labs