Received: by 10.223.185.116 with SMTP id b49csp2481325wrg; Thu, 15 Feb 2018 12:14:53 -0800 (PST) X-Google-Smtp-Source: AH8x225n2KCy2+mj1FYMKJYzMxObOVFiHDOIwa5mdI9s2085degviAJW8B2SScdb5sai0VDdwc5d X-Received: by 10.99.126.71 with SMTP id o7mr3131214pgn.446.1518725692976; Thu, 15 Feb 2018 12:14:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518725692; cv=none; d=google.com; s=arc-20160816; b=svAe0T0G7nnHbF8opajqcTOSdSdiCwuKyc/itBqCp3fHHk7hu57+iS8hP88EF/83Pu t+d5wxGTIy7t553WjsCAsg7cUsnPnbtCu6Pi0q2RTO7K+XV2KGFyr8lFvZJQ8lbLItS/ a0S2Ou90HZIl+sfFdMEYM7LcBE8P78Iijk3eISY2fouZQ/FyvTEOaY92b01nKYAfQGO9 27GTzBBi8nQeqj8oaPM8nZtbLroenUu2RR0j6ZpkVX7mEOhlaKDUZcBl2kNRN9m+xxM4 sc21kPYZgvXacKVcvV9xmRTA3TCi/VvJLtzC6OoTzvTfGZRGBZIjTiH6OzjRPyFqXQ8G iOJg== 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=t28urfHqrE0Se69Ijj8f/AwzBNhb13+bxCO9hJfHeGA=; b=z0Z1eRQG3t74WwjTD+FuhGQXcDbh1l9tlR1X9LgKsdd5pC1P3UOfhF3uiW+RJney52 RXETw3M92A4j9zEgWuBfxUcpkSIZ/cZPya09AyQ1V+YcGokFiAkxfMWGkkgXcNoklDEl Xfrb207CNuSJEekOmXlzm5AZt+Kqe3iIOeUsg/96aF1dkg9fzqA4syvC9YmeqpJicniZ KNvGn6qAGCe2pEk2+0Z9mKOaHRwQ1tEsDYdxTnW1dxK9g2xYc8Jz0vY9hbmpMtGoFvCU iKP2Tp9Zsh/bhZRfq/DKKntN0b5C9Yz55RLcsb+1RcjWujIhKNWQ9YwShJ0L6Du7mvpP PAig== 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 k6si220839pgo.818.2018.02.15.12.14.23; Thu, 15 Feb 2018 12:14:52 -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 S1033492AbeBOOp3 (ORCPT + 99 others); Thu, 15 Feb 2018 09:45:29 -0500 Received: from mx2.suse.de ([195.135.220.15]:48042 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1033423AbeBOOp1 (ORCPT ); Thu, 15 Feb 2018 09:45:27 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 69303AAC8; Thu, 15 Feb 2018 14:45:26 +0000 (UTC) Date: Thu, 15 Feb 2018 15:45:25 +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: <20180215144525.GG7275@dhcp22.suse.cz> References: <20180214095911.GB28460@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 14-02-18 02:28:38, David Rientjes wrote: > 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. OK, I was assuming something like that. > 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. Yes, I think we need a proper fix. (Ab)using zone_movable for this usecase is just sad. -- Michal Hocko SUSE Labs