Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp973581ima; Fri, 1 Feb 2019 14:06:29 -0800 (PST) X-Google-Smtp-Source: ALg8bN7U/FGlUs3Amb89BEc49e1YhHLvaZq9cuJ1LGBA3aUWT4MKGYLMBrCpd9Giqgi2ju1+8wuN X-Received: by 2002:a17:902:24d:: with SMTP id 71mr32639026plc.225.1549058789072; Fri, 01 Feb 2019 14:06:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549058789; cv=none; d=google.com; s=arc-20160816; b=pCNew40KE7PPGM4lezLlxTKvFXNmfYVJPhS8RUNLNfXNHitCI8TSV1XN7zCBvPBKWm RsDKc8nMAoDds7md6PVGd1LTwhXmvmGblkoZ0BOBe6Sh3B6Gji4wbBA8ukBtkETkxTsY KetrrTA3NQSOypaQM/YuJ38ZUu09ybUItaIgpmrgsQiddCSeayYiRPySgN4Ato8XJ3XD 4/RQrLbFERK/1PbL4eRB/nzs2ew3DEy0zmQnJNAy7K1EcM4F7La+WhCnP1ouBFXpi4lx H8ptdeEMherZANL1D7UY8zvQa4yWaXNWLbQS0V9IISQP9Dxha7S+1fRmHSaf+8OPQKAR CKGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=2BDC8irRybwaPqrOh4vhRqpsOVNsgly5TVq7dlUUD4Q=; b=xUEA+02PFq/THHYKNoqznekmtvrSpUTgv1xxBGYPGH0z+2qXJSp5xAOdkmdfxFmn6F X5B/y635m93WIu8/gAqxq6GHkFtcYoZyrUPACxVH5fZqB3Qc3NxIYQ0muvSaU+x4Sw1f PRivFPFNENXSC3IVRG3dcfms2f8P5Pr+jslGOCF/tollQ9KAoS8lUKfUN4P9jzsuThqV 28xXJHE22xWHg2S51PRMopH7MDOvcc8ToArPAbmrZmua99uS6kwqvF3A5HAZpaILwuG2 oHKFviLqr2dhMxcu9/ChL8tprJIUbj70XP6wqxVRcACUrrs223Rk1CLrURqs8qpItVJC vaQQ== ARC-Authentication-Results: i=1; mx.google.com; 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 o14si7729465pgj.59.2019.02.01.14.06.11; Fri, 01 Feb 2019 14:06:29 -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; 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 S1726437AbfBAWDs (ORCPT + 99 others); Fri, 1 Feb 2019 17:03:48 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:52794 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726116AbfBAWDs (ORCPT ); Fri, 1 Feb 2019 17:03:48 -0500 Received: from akpm3.svl.corp.google.com (unknown [104.133.8.65]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 8E7CE7D25; Fri, 1 Feb 2019 22:03:47 +0000 (UTC) Date: Fri, 1 Feb 2019 14:03:46 -0800 From: Andrew Morton To: Matthew Wilcox Cc: "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: <20190201140346.fdcd6c4b663fbe3b5d93820d@linux-foundation.org> In-Reply-To: <20190201024310.GC26359@bombadil.infradead.org> References: <20190201004242.7659-1-tobin@kernel.org> <20190201024310.GC26359@bombadil.infradead.org> X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. And truncating long names might result in duplicates.