Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp785362imm; Sat, 8 Sep 2018 08:55:49 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZQArAzU3jgwMeVOobqJXRCpGhQxxaKwRe0eW65uLYW2QYfcBzJFBhK149Go13X4ZeiGbFe X-Received: by 2002:a63:555c:: with SMTP id f28-v6mr14087312pgm.37.1536422149404; Sat, 08 Sep 2018 08:55:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536422149; cv=none; d=google.com; s=arc-20160816; b=hB3J1L1lGIC+AGTUmY/00qp6HPll0BwoxicMsw108rRAY/vSyZSpH49sdDvNF7lfFx xVEsI23lGWVKimZ7FINgkXlpztX1lri2tJtSYIsq94H9yrH5UxT12Zt5sX6PgtxIhQsc h+s+egwaf2A7rhvCpA5HtQ8jBDekIK6jw4R63pHB/FH7m/qXCleVVkXQKhSfGQsO7XtT BXKrdB1QHR16vm/npLkC8M609yU+w5iOI0clHJqRB3HU/1kDdeqrU+AiUvdwXzwNwAlC eF8aSuttvOrYegc9SQoyjHqt5mXaPysjHlvkZtKftIDJMyn+RfsyuZ8VpQnG+x+f4mG2 7SRQ== 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=C7PqeCu5hpsaBQ7e/D3QcL9bW0Cbeipnu4nsNVxDHIw=; b=SR/m7zw7Xnt9n507IiLZdN+CmiO2MRh9qs0lqZVzgrrEpWKBXHznZOJmMzVtjMDwwX m8Y3lL3yuEWgG56Utl0cgSnQRfx+bbFxTHKCQ2puI0dOJa82uu3joGC3Arzpk5rTPe03 6EA+mFrYrJylFtIADI9a1g27mXTEJJurWtp68W8dKqR7GOx1lfPoOfYycKu8DK/fTKg8 FtKQGqohJ4K+TTDeznbtvwAOEvUuGRfUrcEtWs988adqEtMqMI18r30bTlZcO96M6L4C 6FpibPc7TW++y+qAgbyAVcQt9QaxKAm2vfRtuQe2Yb1pIRfa8JWZxMDpyVxnLTKSAfzl lZkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=VlJp71oY; 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 a8-v6si10008096plp.61.2018.09.08.08.55.32; Sat, 08 Sep 2018 08:55:49 -0700 (PDT) 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=VlJp71oY; 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 S1727641AbeIHUkm (ORCPT + 99 others); Sat, 8 Sep 2018 16:40:42 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:50820 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726880AbeIHUkm (ORCPT ); Sat, 8 Sep 2018 16:40:42 -0400 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=C7PqeCu5hpsaBQ7e/D3QcL9bW0Cbeipnu4nsNVxDHIw=; b=VlJp71oY1kWTli1zflcoVO/Po OIts/FvLu4YXxhtvoQv1iiMWynHEJ/6s34MLyfLp2VzhRNCvqoSo4sPBURiQvhEPfgYGiRBjelMAK ZNXo/pHoX31pNXaHIG5ZEoQcuJxVoGzIf4jReb88VeDCx95AnkI03OSAd9SI4YwANLtY5St5IYOUC KTwl26BQC6tFa6merMK+O7rsjh56NjHePDLhFWZVYjSL3GRSZP/8JQ9ALlc+O3T4KXsgNCCUKHotf uGMEl00wRNwDmFiqnlLGfcC7M/IzLChTk0TKopS9U80EEhd379JpuM6+1W0r39/mSH1/o8AcLh62j 373WoUVEA==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fyfZ0-0000Th-VG; Sat, 08 Sep 2018 15:54:22 +0000 Date: Sat, 8 Sep 2018 08:54:22 -0700 From: Matthew Wilcox To: Johannes Weiner Cc: Alexey Dobriyan , linux-kernel@vger.kernel.org, vjitta@codeaurora.org, sumit.semwal@linaro.org, rientjes@google.com, mhocko@kernel.org, mgorman@techsingularity.net, labbott@redhat.com, iamjoonsoo.kim@lge.com, guro@fb.com, cl@linux.com, vbabka@suse.cz Subject: Re: + mm-slab-shorten-kmalloc-cache-names-for-large-sizes.patch added to -mm tree Message-ID: <20180908155422.GA26807@bombadil.infradead.org> References: <20180906224849.1JOWr%akpm@linux-foundation.org> <20180907195816.GA28375@avx2> <20180908140306.GB17637@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180908140306.GB17637@cmpxchg.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 Sat, Sep 08, 2018 at 10:03:06AM -0400, Johannes Weiner wrote: > On Fri, Sep 07, 2018 at 10:58:16PM +0300, Alexey Dobriyan wrote: > > On Thu, Sep 06, 2018 at 03:48:49PM -0700, akpm@linux-foundation.org wrote: > > > - {"kmalloc-1024", 1024}, {"kmalloc-2048", 2048}, > > > - {"kmalloc-4096", 4096}, {"kmalloc-8192", 8192}, > > > - {"kmalloc-16384", 16384}, {"kmalloc-32768", 32768}, > > > - {"kmalloc-65536", 65536}, {"kmalloc-131072", 131072}, > > > - {"kmalloc-262144", 262144}, {"kmalloc-524288", 524288}, > > > - {"kmalloc-1048576", 1048576}, {"kmalloc-2097152", 2097152}, > > > - {"kmalloc-4194304", 4194304}, {"kmalloc-8388608", 8388608}, > > > - {"kmalloc-16777216", 16777216}, {"kmalloc-33554432", 33554432}, > > > - {"kmalloc-67108864", 67108864} > > > + {"kmalloc-1k", 1024}, {"kmalloc-2k", 2048}, > > > + {"kmalloc-4k", 4096}, {"kmalloc-8k", 8192}, > > > + {"kmalloc-16k", 16384}, {"kmalloc-32k", 32768}, > > > + {"kmalloc-64k", 65536}, {"kmalloc-128k", 131072}, > > > + {"kmalloc-256k", 262144}, {"kmalloc-512k", 524288}, > > > + {"kmalloc-1M", 1048576}, {"kmalloc-2M", 2097152}, > > > + {"kmalloc-4M", 4194304}, {"kmalloc-8M", 8388608}, > > > + {"kmalloc-16M", 16777216}, {"kmalloc-32M", 33554432}, > > > + {"kmalloc-64M", 67108864} > > > > I'd rather use KB and MB suffixes or at least capital 'K'. > > I like k and M better. k and M work for me too. It we were going to be anal then we should go with the IEC standard of KiB and MiB, but we're trying to make /proc/slabinfo a little less ugly, and so we have 16 characters to work with. "dma-kmalloc-256KiB" is 18 characters. The obvious place to lose two characters is the "iB" which are implicit; we know we're measuring bytes and the binary nature is assumed in this context of memory bytes (not storage bytes). "dma-kmalloc-256k" is better.