Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2316372ybx; Sat, 2 Nov 2019 16:56:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5HYovUWtc8HJqrGdgQhsXdsnZGimNbmEtXFmGiQpyEdHaFVjkcdmUSKESFhv6EVZg3851 X-Received: by 2002:a17:906:a986:: with SMTP id jr6mr17030968ejb.158.1572738966079; Sat, 02 Nov 2019 16:56:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572738966; cv=none; d=google.com; s=arc-20160816; b=hUJKytAoah6FkAh82xTmvCRF3g8m2axST39dFhyXb3+hVb0CdrkxRPvH8EjmEHgfm8 nLuLHvRSnGHyl7lQKvN3TywfFtfgSBwkCVcCdyKjAQlcKfNzZBNLfLK7sq8PT+8384Cx V8GhM+y75b71eSdl9LGBR7Qm/9+V7OuThVEYWF3qMlkSsRlpxN1KDL1T1UmqrDrYknFz kGzcwcLanpYDCqNhfDvT3h0ovofhK0E2XuAHlrzkbz7/JmyV4Z+hUKUpzn8di/maEpif 8vwvxxzpxo7kRoLSxENhuJbnWR6CoSg5LKVP7We0ITNFe2GiCB8mfjC/L1z3jhYmCjRP fUFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=/Y/HsfG3BX2fZgofwl16a0Nv3tLsdVHznmMwpL2tAbQ=; b=KA92BNAtQYFQLnR04JEpzgUikGjyiQrkwB3/9QTu2GjgsxljApE7EJZedqYvmhWmRg Tb/Dd7RfsXUJE/lCrsNpK1B1f8E3rE5RoEQMJi/uUPdAYmx1N2xq+nFqJrIIjMb1ex6o qd3N2oX0EQOECog7PDiKZY/ArbLA2h3A/bxJWggJQz97LXrisWO02AOsuITF/+DCJbis wjtFyaZHSnP3AWAjAXKsSEdnumSmptSI2B6RWTBkBF/0j76sE+T+BNg1Bv+YsuqFK/Su YtJ5IO3myd3//lXdbKJMlFFPqbKEi74N/8YTT69IBY/7VRQmlSyCQCulCqHMyJNt6X4X fJ2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="oyQ4/6ZG"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9si8638331ejo.46.2019.11.02.16.55.17; Sat, 02 Nov 2019 16:56:06 -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=pass header.i=@google.com header.s=20161025 header.b="oyQ4/6ZG"; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727348AbfKBXxM (ORCPT + 99 others); Sat, 2 Nov 2019 19:53:12 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:33780 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727320AbfKBXxM (ORCPT ); Sat, 2 Nov 2019 19:53:12 -0400 Received: by mail-pg1-f196.google.com with SMTP id u23so8834301pgo.0 for ; Sat, 02 Nov 2019 16:53:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=/Y/HsfG3BX2fZgofwl16a0Nv3tLsdVHznmMwpL2tAbQ=; b=oyQ4/6ZGtCXkWWsCVtzR159cLW781RxnGfJsxQT0yAE2AzURerN+9QEP8q57c7wQGK n0QPnE09l1qr7sAOafSgQC77zbAVWpiGjPP6bfmarhBVF1rjiY+hcF3gwFaYouTn6t5S xTWVNf5FC/jBtQqnOZG4Md6Z8vZgCRgWDDsh9KBGSptGyZjRMFkB7aKaJnLXFqcUH6SH ZQyDGV7+WhSqvhSiKUae1JgDhwpxN1rAKY1b4yNDyW908pORomuWwf/BEIDanBZGSVR0 efl/seYA0vCLlO7wEHE/cQ4FpUFsfylzhUkb8cCQZ0F6XOlbuHbaJHHn66672mi4GIHA vaUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=/Y/HsfG3BX2fZgofwl16a0Nv3tLsdVHznmMwpL2tAbQ=; b=bs1v1NxWS/XYi2g6p5jfP83W/JKuj+l+9SSw3TvrjhAuNWq2NcO723qvhWdfSNbAGf K20Tp7HNOZ/wh6nLU64NXihFXWQMpcwL4v2PUjXxqL1eSFzk8O5FS3qPmtf6P/ewTA66 W+2e8mzSuv2uXRoJfaBwR+lLnZ+n35K967JFuUgcc8Ln3oONyhrNf2FbAS1zTfVWRkyM y36xo05Z+196ouU2mfX3q+hprRdC6aJW7RTAp+aWJSJH+ia5gAs3OWcUwXnAZ1FTV/Qr /1oH7jVrVIPKgnfCYSgIGbA1DPnd4abBCDAyZP/zs7jQ1NXHrQ90wtFAg/5kzgI62m4K lWsA== X-Gm-Message-State: APjAAAWAsjdF6RcKvzfoDEjVmM8rccAR8ZYrBEtHR2i5p/aCcv7zryu0 jU+XlbNEGBkZLwmwTnd4HwSqJZOSssw= X-Received: by 2002:a63:6786:: with SMTP id b128mr7272604pgc.126.1572738791143; Sat, 02 Nov 2019 16:53:11 -0700 (PDT) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id bb15sm12364965pjb.22.2019.11.02.16.53.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Nov 2019 16:53:10 -0700 (PDT) Date: Sat, 2 Nov 2019 16:53:09 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Matthew Wilcox , Johannes Weiner cc: hui yang , Andrew Morton , mhocko@suse.com, dan.j.williams@intel.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: There should have an unit (kB) In-Reply-To: <20191102205411.GB15832@bombadil.infradead.org> Message-ID: References: <1572704287-4444-1-git-send-email-yanghui.def@gmail.com> <20191102205411.GB15832@bombadil.infradead.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2 Nov 2019, Matthew Wilcox wrote: > On Sat, Nov 02, 2019 at 10:18:07PM +0800, hui yang wrote: > > From: YangHui > > > > - printk(KERN_CONT " %ld", zone->lowmem_reserve[i]); > > + printk(KERN_CONT " %ldkB", zone->lowmem_reserve[i]); > > Make it look more perfect > > I don't think this is accounted in kilobytes though. Isn't it the > number of pages? > Yes, it's not in KB. Speaking of lowmem_reserve, however, the current default of 1/256 for both ZONE_DMA and ZONE_DMA32 seem too large as memory capacities of nodes increase. We tune this to be much smaller so that we don't have as much memory set aside only for GFP_DMA or GFP_DMA32 allocations for that reason and because there is less reliance on lowmem for our configurations. I'm wondering if the default should either be 1/256 up to a bounded memory capacity and then the excess is disregarded or whether the default itself should be changed to, say, 1024. Looping in Johannes who may also have an opinion on this.