Received: by 10.223.185.116 with SMTP id b49csp504265wrg; Wed, 14 Feb 2018 02:29:46 -0800 (PST) X-Google-Smtp-Source: AH8x227kBKGVF/ZyY+uY+sAx7QQEZFSmXu0PP1oAHvqC3COKE4rdzzZdfrMIckYzj1+pzdHGReq8 X-Received: by 10.99.63.9 with SMTP id m9mr3616501pga.247.1518604186097; Wed, 14 Feb 2018 02:29:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518604186; cv=none; d=google.com; s=arc-20160816; b=i230Lvb7JMLu6+2bGcU1T5zRA/sxpY+dbO1eP0G6+9iV10yy3fqxoHGlQ6nDoRPjjE Ko+SDAG0ZLnEEJcNdk7uy/gd4YkR6NXf4NjpwVyXnaAllnsIjLK3cTmlUJbju+oT45CO kAG/+ROrrgPy1J7z5hUI1GZVu5+hrz3YLPP2EzSa6PMzsdPI9WhqHstiwPeFb9f9msrJ bzaDLwMRjuuvgF41gElCHjEeeusYusjlUf6o6wNpYp23HZAdgZQ7tlNSs8Za3GWggrr+ BU/hHtUNyp+STcy3hn4fxJ/tLaFBp1r46blarU5/g844Ws1mpxcsqH8DzYqp0ZsAUnzw Ln2g== 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 :arc-authentication-results; bh=SCRIy7/+GtT1p7beGgt89aYBH1wf1ovn+LSN/oUaYvA=; b=w0JNrhYLVVbh3QdzxLZoUJIIu2h8wx3PKYxZ6JcheFYSHMT04g2kNa+TZOLU5Kh70J 4YRIVnnzMaMg1qXG0UbZqYFqQexm2JCL9J+qh74mxQz0oT0BCC2LHQQt9DmuBbxr4a0q rLfIJdZkt7UDutugSnUhqTsbUL5Bp12JgShLafftmJyKcsk0Z/5j7yBEQCZNkbohJU1b x8+0Kp2P97vzsrrxznTcRznGZhgvbXw7/Twcwy92e4v4O+TzoTd/x/MilAL7lNSY9A/s MjAQvv4FXndwmOJNt5TAxzE9ypCxcmQ9TLJC4W8sQilAE0AdSHCbqXqnd1MHMhLEWY1p 0EFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=ujL7KIxS; 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 j8-v6si8692808plk.87.2018.02.14.02.29.31; Wed, 14 Feb 2018 02:29:46 -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=pass header.i=@google.com header.s=20161025 header.b=ujL7KIxS; 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 S1754676AbeBNK2n (ORCPT + 99 others); Wed, 14 Feb 2018 05:28:43 -0500 Received: from mail-io0-f194.google.com ([209.85.223.194]:33361 "EHLO mail-io0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754550AbeBNK2l (ORCPT ); Wed, 14 Feb 2018 05:28:41 -0500 Received: by mail-io0-f194.google.com with SMTP id n7so24679883iob.0 for ; Wed, 14 Feb 2018 02:28:41 -0800 (PST) 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=SCRIy7/+GtT1p7beGgt89aYBH1wf1ovn+LSN/oUaYvA=; b=ujL7KIxSgef6o8ibbFZcHmF02/lNculrkuqLLB11GwImRpztiaX05rOOSYmDAinXPd hjn0ItTUy1+4RIhN42uPtRTlgcclg4Sr/eL45gQYepOuWXVFd/AWT6+7w7LFSATGsM6h rK09RjSYxSELiNoKX+0vJQ7dy0Mpv0rUeb7KgVgFByVtDbDNVwRpDEsPWoHgYoHB3tOQ u7QLsU71NVU01qd9LN5kNy4wnthZqCwKbb9UjUdHkZzaCdX5hZPdoDIko+BIIzwBLBEm F/mYkWHu3SnvlLI0MGGIANiNVRK0dlL2qgVObqFNRDhylmQWAEgF/yXcUxzLPW/Z7Ft1 ZV1A== 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=SCRIy7/+GtT1p7beGgt89aYBH1wf1ovn+LSN/oUaYvA=; b=F4mw0IZvlSbRbec2rmMoW0+GV3r0h5+Zl/1BlbrapOgHJf8bh8HhZYojKaJ+KdAZmn 8BlxrQHn76MA5n4AsFYDdADvVSFYSBfQXG+yR8D4WVbZZdTTtafq35XUnZKIMxC49zec UiBVPFjxRYHr8T12MpqS8j7JcqPxZS7hULTBugb1eTA2pY2v0pZSNbGsYZzf9vp+r0// OQj4/QUTkglRd+okAGNHjF0B7MW5cNfyl71idzm2UZNrYIvxEZ6cd/acZNcdUirkQLAO g5gVJZMZpEImFUMiatJCerpf/nZcGgAwveRLah084E21o8RsulYYZ+uPlBKAZVuFSVng JwZg== X-Gm-Message-State: APf1xPBNfuTUKjSo8n6Q+zZboC1bHLJ+VSENFscOx///hHyvx02LWXIo i3QMF+/IcTwHZXrz2jiVUaY7aA== X-Received: by 10.107.182.197 with SMTP id g188mr5161083iof.77.1518604120715; Wed, 14 Feb 2018 02:28:40 -0800 (PST) Received: from [2620:15c:17:3:3573:3207:3b2b:5e84] ([2620:15c:17:3:3573:3207:3b2b:5e84]) by smtp.gmail.com with ESMTPSA id v185sm10205506itd.2.2018.02.14.02.28.39 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Feb 2018 02:28:40 -0800 (PST) Date: Wed, 14 Feb 2018 02:28:38 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Michal Hocko 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 In-Reply-To: <20180214095911.GB28460@dhcp22.suse.cz> Message-ID: References: <20180214095911.GB28460@dhcp22.suse.cz> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) 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 Wed, 14 Feb 2018, Michal Hocko wrote: > 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? Fragmentation of non-__GFP_MOVABLE pages due to low on memory situations can pollute most pageblocks on the system, as much as 1GB of slab being fragmented over 128GB of memory, for example. When the amount of kernel memory is well bounded for certain systems, it is better to aggressively reclaim from existing MIGRATE_UNMOVABLE pageblocks rather than eagerly fallback to others. We have additional patches that help with this fragmentation if you're interested, specifically kcompactd compaction of MIGRATE_UNMOVABLE pageblocks triggered by fallback of non-__GFP_MOVABLE allocations and draining of pcp lists back to the zone free area to prevent stranding.