Received: by 10.223.185.116 with SMTP id b49csp478123wrg; Wed, 14 Feb 2018 02:00:37 -0800 (PST) X-Google-Smtp-Source: AH8x227z8TvrZfd89rSkfOgawmY3SajnktNH6LgIOYuQVLdjDEXU5v/SsSUz5rGTpd7YNgVWIf0S X-Received: by 2002:a17:902:8e8a:: with SMTP id bg10-v6mr4005320plb.162.1518602437026; Wed, 14 Feb 2018 02:00:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518602436; cv=none; d=google.com; s=arc-20160816; b=IZONpZh3s08FJ0/JhbbNIR2KQ7emBMLdNP4WI0pY5M5m+2uoH+bP5P66JOVhOkeyS4 RvutPRN1sDNt9zA3AzkXuxt2I1dRRYzdoUGMMw/yQyyklBoD4xAVwxFO3wNHW5nUgQoC qfdx2RzK/9K55blTLv/1wVcIGBgts1AAmhG3SUEzsmZvQfC5OnrCCA/0l4Jdl2Mcs5Ry 0XbP8v5qoLq101UmD/Bll/S8SFXFM6iJOyVZTaouiOHhKfZvDat3jwJVPEobAOQlPiHV Gzj+PWIIKKBhSCMbFSloUrr0vQTS2VBgt/0Q0i/9e1oEQONfxeOZV19OCfe8/nIyZVjz YZvA== 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:arc-authentication-results; bh=svVCnjTTECg7YZNGirlm8ia/ElNfR13oYsij1r/VMMg=; b=hrC1nWJnuz7fIrfRDsdPPCfdT8lm+QrOpIdcvaSvnN0BOqDuKw4DpWR0tWwVwK6SeF 4Pp76T+UXnCFfvJ3hbn2iHu/dTIW4qHcHewNnW0q1dhQA8oHV89jx0GSoSIhFlAR7/6h zpqe5Q0jSzXialDjEDn20Qb0SGF6j12lQfZ++yBOXMG3kA201q2RIzdAtDCUwIjrkoJF 0g9mwyfVF2slHJPF8lrbQDOojIsus+RElWhed/0YRSYMY1w8tw2rM+FqLnj4fmzpF4Cw wmEGWTuHj//As9FljR0NpXdmgpVDl4VjpgumNb6D/mna82SR4gJ+IiWnJ5+nztc2jcjX SZyw== 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 m15si2526502pgc.632.2018.02.14.02.00.21; Wed, 14 Feb 2018 02:00:36 -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 S966980AbeBNJ7P (ORCPT + 99 others); Wed, 14 Feb 2018 04:59:15 -0500 Received: from mx2.suse.de ([195.135.220.15]:57012 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966706AbeBNJ7N (ORCPT ); Wed, 14 Feb 2018 04:59:13 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 2257EAE55; Wed, 14 Feb 2018 09:59:12 +0000 (UTC) Date: Wed, 14 Feb 2018 10:59:11 +0100 From: Michal Hocko To: David Rientjes Cc: Andrew Morton , Jonathan Corbet , Vlastimil Babka , Mel Gorman , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-doc@vger.kernel.org Subject: Re: [patch 1/2] mm, page_alloc: extend kernelcore and movablecore for percent Message-ID: <20180214095911.GB28460@dhcp22.suse.cz> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Mon 12-02-18 16:24:25, David Rientjes wrote: > Both kernelcore= and movablecore= can be used to define the amount of > ZONE_NORMAL and ZONE_MOVABLE on a system, respectively. This requires > the system memory capacity to be known when specifying the command line, > however. > > This introduces the ability to define both kernelcore= and movablecore= > as a percentage of total system memory. This is convenient for systems > software that wants to define the amount of ZONE_MOVABLE, for example, as > a proportion of a system's memory rather than a hardcoded byte value. > > To define the percentage, the final character of the parameter should be > a '%'. I do not have any objections regarding the extension. What I am more interested in is _why_ people are still using this command line parameter at all these days. Why would anybody want to introduce lowmem issues from 32b days. I can see the CMA/Hotplug usecases for ZONE_MOVABLE but those have their own ways to define zone movable. I was tempted to simply remove the kernelcore already. Could you be more specific what is your usecase which triggered a need of an easier scaling of the size? -- Michal Hocko SUSE Labs