Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp411131ima; Thu, 31 Jan 2019 19:31:44 -0800 (PST) X-Google-Smtp-Source: ALg8bN7b7mrAz0j2Pi2J/D+DA8H03bITYkQNGOPxtVDqgCnP73f9thCisdaQu5YlTkjKeUvpfHDU X-Received: by 2002:a17:902:bf03:: with SMTP id bi3mr37677856plb.83.1548991904149; Thu, 31 Jan 2019 19:31:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548991904; cv=none; d=google.com; s=arc-20160816; b=XTsTRiOayPxNmU/1FQabXDEPebdYiFOEr9HezP7DtiDwHVSLp9jY5nUSLzWIAwmR01 s4TjPzW0YJHFv+Ao+zbE0o+1hcn+uvfmBQKThUslyEyTySOrTtEvTiFS2cZFa+eLZn+i qTVkoVNFpCJTkeSdaf1/f0nM6N+NpjWkxzQABKnSLgr5pwl3j4J8WyHkaCRUa91Ykz0E OdhfJcZeUCgD+haQBbsHI7+d6U92a8TSQEOuzoNRv6cIATllRm0b+uVQPjeFRcobZfKI s/dcQIvDp/JQQoC9vi9ittOO9wKRKMxEWnJbfoPXcaAK0MpUJFMwiiimP+P4fNMJKGqv W4bw== 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; bh=Q3gZsciv+RQVX9T/SHGocIS11HiPzVpAVPCjgkGweCI=; b=LeZkOeQlJ1hgaxUUXLY1zK07y4PhnZDNtTk74wYqC7EQYjtG8ecJic+d3ACbt+42XY 4BoAHMWk45cuBjs9A9aCCp7qLUawGSR4/Spm81QiVuXaSsyiCVCdq/TRRHpIJhfNMOk6 yWX747uz0XIfBN5Pv4+58JDI8I8PzqcOype1SSfyRm4wqSl6luRRDViow477DrnqwJSB 7mLxEEBRVOLCt8DkaF3M4Wioa44hE6crStGkydTP1GJIPZZABpOLmC8uJkE2nuQE5kg3 QsJ7GOO1IDrMtmaM773yuTvzrSri+pin+Z4cuHIK6OpYW8NO9R/XWPwnZxgAiFvQu1Za w9RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Z5RhYiau; 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 185si708352pgc.335.2019.01.31.19.31.28; Thu, 31 Jan 2019 19:31:44 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=Z5RhYiau; 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 S1728173AbfBACnQ (ORCPT + 99 others); Thu, 31 Jan 2019 21:43:16 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:49338 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727313AbfBACnP (ORCPT ); Thu, 31 Jan 2019 21:43:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Q3gZsciv+RQVX9T/SHGocIS11HiPzVpAVPCjgkGweCI=; b=Z5RhYiaucaPZ6DFGE5zc0+p9a 21KStfuDNUbEi/1XybZoaFCWXHEGsKNGFX/tBNtOwoTaGoEFT4gZjOUfTN9KPpOiV0cmaQIu0g4lj kq9PMnVhc+ukuv9XIlnVpZM4tEnjvaCWWwrxMFAA+STVCdDLrHQJsrOt+W6OrpYwCAM1/QO/amwAb 2iP0gqMtMBYoRlRwr2kUBi6jAqQoHZ08AMulZszn5o1BxldtTQ6HtEGWWRLV6U+3/490n/C0GZMIu XbbFEibaQ+koimyuq/ABRazvuscyBtITQrK7XUJSJzfLDVkTp9bTVxn9AIZTh78rf4moT+Q1X70bo Lf3CZqpEg==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1gpOnO-0000L9-FL; Fri, 01 Feb 2019 02:43:10 +0000 Date: Thu, 31 Jan 2019 18:43:10 -0800 From: Matthew Wilcox To: "Tobin C. Harding" Cc: Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm/slab: Increase width of first /proc/slabinfo column Message-ID: <20190201024310.GC26359@bombadil.infradead.org> References: <20190201004242.7659-1-tobin@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190201004242.7659-1-tobin@kernel.org> User-Agent: Mutt/1.9.2 (2017-12-15) 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 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. Let me know if you can't find that and I'll try to dig it up.