Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp3419958ima; Sun, 3 Feb 2019 21:56:53 -0800 (PST) X-Google-Smtp-Source: AHgI3IZbSgP1wEtdgUjgiu3up+qrfZZI4Cs1MCSb6wPpjz/qRjyjXZmJz6+egZpCGiD35cQdFchr X-Received: by 2002:a65:654e:: with SMTP id a14mr7482848pgw.392.1549259813122; Sun, 03 Feb 2019 21:56:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549259813; cv=none; d=google.com; s=arc-20160816; b=bGVUeF64qwjjQW060TKThk9O2K8Pf7u/GPYSWbPCdS8HwYaSh8GzjnKq1HKjpu0b4o vzNcSD2Bz0RLBo6dUcedTjNFonH91OXOC4Uhy6V/b9J7GlDu3zAl2LJWtcbPmgSOO8u+ Mfy6mJBzvDwfuS62j1ZRsrySCmtoR9TYSY2ePSjHxUr8qCmdgmLXFc486Kxth8f0ZBY9 sEh1a1MyOjVJ9uaRWVrT7avMVvuhrWDfSSN5gdBRJBXYjRurBSAPkdi4IbzqHTPMwOMo Trb/X9ZUFxhWgwI8PA9ECVLA0LIdzpn8xfeY0N18QKJfgbHLKUQBJDaBvxREn0rgWvVe OcFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=Cnv3ii0vTX6c//dFrqytCvGGSFfVQGMLpdqPG0BQ0I8=; b=lRZif+PnPgqJt1Lq8vIEouy8lx2XL65OiOeDDex+OzIuHyykyxfQ+GtfoTOamwZweX aJt0yW64c2BGzeqNyCChpPytJHoe7FjXQP3OLG5Y2j77JaTYaGfCOR7ik7o6a0Dd9xM4 euK66ZvAP6QTT8qps61RKaKw6rCGCoIK0TBgcvCxQD0Xwq/McdptdSWpo17uzmm0aKoH SP0+xq43Iyj4KyxIjPdajLGlmv8W9mqPvBwrWm595Q62Sl5rG5D4P5yLJJi+ajmuechk QnOpqKA7HprYBjswsSoNv4vz3cLNu3BctHF1VtvbIA76FydLKKWhTY/9Xza6BcZ6iUnb O++g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tobin.cc header.s=fm2 header.b=RevxtlRi; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=KCqVuHJV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12si7092107plk.77.2019.02.03.21.56.37; Sun, 03 Feb 2019 21:56:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@tobin.cc header.s=fm2 header.b=RevxtlRi; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=KCqVuHJV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726949AbfBDFzh (ORCPT + 99 others); Mon, 4 Feb 2019 00:55:37 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:46269 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725868AbfBDFzh (ORCPT ); Mon, 4 Feb 2019 00:55:37 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A28B521AB8; Mon, 4 Feb 2019 00:55:36 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 04 Feb 2019 00:55:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobin.cc; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=Cnv3ii0vTX6c//dFrqytCvGGSFf VQGMLpdqPG0BQ0I8=; b=RevxtlRi+0lFihLOIh9TssVLxk6EOb+KRrleA+y4H/m DSlQlOy8U730z2ydsvU6zAxKwN5fx9wPTKPVcQjOj+8XcMeeSCu3vg182C2ZoVbB Dt400bkItxzpZUfoKGnf+A/QNworbQA9xyqkkBqM12s7MkT1wGgHIorQX3aQ/+YV FxOWr/5dwG3xvJzpLt+dO25OO/5PXsfyy+bMgRgQDnmIGLEdVmrqzG4cZTlupPiZ G9TEo2mKoavIx8G0MVuZM2eFt5b28YXkk+bxtKzj0jp5qpeVVARO9kYsDaAB9N5h jA5k7aVU8+/u6LqZVl7jjkmWvbCdemV7gHve84BoAbQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=Cnv3ii 0vTX6c//dFrqytCvGGSFfVQGMLpdqPG0BQ0I8=; b=KCqVuHJVaIhmIuKIpb5RYm +uyMTTrHzKrarBqn0lw61zbBe/knvFOq+k2eBZwge+fSc9SxoEymXKvQqpgtzwXn 6gEu3e8J6lEcjwB9eVa/DUErE5XqxmKQuCQWjz9pSEfm6usEi6TJYjz+b9vX4gZh En8gOEC/+B64IjsWRE8T1NVb8rIC6GEt6gHnXHYHl7VakMhfTNzAm1HgbGbN4iSy 55B8zdBaem+o4UeOPnD8RbNiiIso+Awcu8tvg9Tdd7Jce1fyr1vuiqTYL5QSfEGx sOVbZBE0exAfojCsNhBNlSolCmx3FJKS72J4hBa/aj/EGQ69AoctS/sC3fafqTLA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrkeefgdeklecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecufedt tdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrhhlucfvnfffucdlfedtmd enucfjughrpeffhffvuffkfhggtggujgfofgesthdtredtofervdenucfhrhhomhepfdfv ohgsihhnucevrdcujfgrrhguihhnghdfuceomhgvsehtohgsihhnrdgttgeqnecukfhppe duvddurdeggedrvddvjedrudehjeenucfrrghrrghmpehmrghilhhfrhhomhepmhgvseht ohgsihhnrdgttgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from localhost (ppp121-44-227-157.bras2.syd2.internode.on.net [121.44.227.157]) by mail.messagingengine.com (Postfix) with ESMTPA id E7021E4543; Mon, 4 Feb 2019 00:55:33 -0500 (EST) Date: Mon, 4 Feb 2019 16:55:26 +1100 From: "Tobin C. Harding" To: Andrew Morton Cc: Matthew Wilcox , "Tobin C. Harding" , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/slab: Increase width of first /proc/slabinfo column Message-ID: <20190204055526.GA14242@eros.localdomain> References: <20190201004242.7659-1-tobin@kernel.org> <20190201024310.GC26359@bombadil.infradead.org> <20190201140346.fdcd6c4b663fbe3b5d93820d@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190201140346.fdcd6c4b663fbe3b5d93820d@linux-foundation.org> X-Mailer: Mutt 1.11.3 (2019-02-01) User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 01, 2019 at 02:03:46PM -0800, Andrew Morton wrote: > On Thu, 31 Jan 2019 18:43:10 -0800 Matthew Wilcox wrote: > > > On Fri, Feb 01, 2019 at 11:42:42AM +1100, Tobin C. Harding wrote: > > > Currently when displaying /proc/slabinfo if any cache names are too long > > > then the output columns are not aligned. We could do something fancy to > > > get the maximum length of any cache name in the system or we could just > > > increase the hardcoded width. Currently it is 17 characters. Monitors > > > are wide these days so lets just increase it to 30 characters. > > > > I had a proposal some time ago to turn the slab name from being kmalloced > > to being an inline 16 bytes (with some fun hacks for cgroups). I think > > that's a better approach than permitting such long names. For example, > > ext4_allocation_context could be shortened to ext4_alloc_ctx without > > losing any expressivity. > > > > There are some back-compatibility concerns here. I'm don't understand sorry what back-compatibility concerns (please see sentiment at end of email :) > And truncating long names might result in duplicates. So I thought I had a good idea - add a pr_warn() if cache name > 16 and patch all current intree calls to kmem_cache_create() called as such. This process very kindly lead me to the fact that this does *not* work because of the macro KMEM_CACHE (which uses the struct name as the cache name). So, back to the drawing board. I'm concerned that this may be a waste of peoples time, if so please say so and I'll move on to something else. thanks, Tobin.