Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3548572imu; Mon, 17 Dec 2018 23:39:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/V0x8ssoQ5lSSOYpGyRJ4F9aVX66is0WCpsdT98HWEilLziwiyYqTJHf46MOt68vt9168aC X-Received: by 2002:a17:902:7687:: with SMTP id m7mr15397961pll.187.1545118754735; Mon, 17 Dec 2018 23:39:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545118754; cv=none; d=google.com; s=arc-20160816; b=mjcfXX24AwNjWEiIbQ72/NmnnWymRfIq2jRdqUsS8Peq/F3j9I+jZMIjyg7Nw/adPP 26xwdClGIr3QOMQtbDsIJadWoEMhXbTUaOWKC0mh7ZlCiGvoGxNBPL1NCTbDDBgMKy5N m0lZgFOZ6FO9mwEPE3fisf6tg96zuK7exIaMAWBluNPZEBS1FGuL3H144pMDPubQ7VSU JnyFSCyDRDqxMgTCKQZfojcT1fGDZu/ymUyCQJoID1ZEjM1i3BXtBad55lNAVYxj2g7B ETNeG9M/aWScBPUkG/JmAsJwmLnKsALrrpSGapwm8XVMlFffsjg/pvqffogp4RKaASeE mXFA== 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; bh=Slr2SUpg1NCTkUX14b1i7D+wFiQWsEDGbcn5AmOu7vM=; b=y9jKeV6PIr1VkEJx2PZTJf/lakOksQx5Q1+92bso+xmF5/3MFbc4hOoqtjcG5zbhnF Qwy59DyM6+3ZIFZY7fa9r5Z73n2NkqGvHOZLSeRlrxiE5kChNYkdiJ1azc/2PyEmY2Ue Z9zQS78r2SSn09rU55Wpunx4+2ytHkcoZGz0DtllljohX0H/TH8piKGQSThxpBVjX9kg s8XrSLF1XI2mhCCI/lagm+g6F3ik7PSb/J08GCyn/XYhyBuTlfFJz86de9xrmXqCnaRy HYaXxRBwgxRy7MkbQ//RpvHrGF0PSIkZDFvx7UwJURd28u4nZwmGEcoTG0QL4edkEJ72 P4JQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z6si9769050pgl.109.2018.12.17.23.38.59; Mon, 17 Dec 2018 23:39:14 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726467AbeLRHg6 (ORCPT + 99 others); Tue, 18 Dec 2018 02:36:58 -0500 Received: from mx2.suse.de ([195.135.220.15]:35492 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726363AbeLRHg5 (ORCPT ); Tue, 18 Dec 2018 02:36:57 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 931DBAE0C; Tue, 18 Dec 2018 07:36:56 +0000 (UTC) Date: Tue, 18 Dec 2018 08:36:55 +0100 From: Michal Hocko To: Andrew Morton Cc: Oscar Salvador , vbabka@suse.cz, pavel.tatashin@microsoft.com, rppt@linux.vnet.ibm.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] mm, page_alloc: Fix has_unmovable_pages for HugePages Message-ID: <20181218073655.GB30879@dhcp22.suse.cz> References: <20181217225113.17864-1-osalvador@suse.de> <20181217150726.6eea4942005516d565dae488@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181217150726.6eea4942005516d565dae488@linux-foundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 17-12-18 15:07:26, Andrew Morton wrote: > On Mon, 17 Dec 2018 23:51:13 +0100 Oscar Salvador wrote: > > > v1 -> v2: > > - Fix the logic for skipping pages by Michal > > > > --- > > Please be careful with the "^---$". It signifies end-of-changelog, so > I ended up without a changelog! > > > >From e346b151037d3c37feb10a981a4d2a25018acf81 Mon Sep 17 00:00:00 2001 > > From: Oscar Salvador > > Date: Mon, 17 Dec 2018 14:53:35 +0100 > > Subject: [PATCH] mm, page_alloc: Fix has_unmovable_pages for HugePages > > > > While playing with gigantic hugepages and memory_hotplug, I triggered > > the following #PF when "cat memoryX/removable": > > > > ... > > > > Also, since gigantic pages span several pageblocks, re-adjust the logic > > for skipping pages. > > > > Signed-off-by: Oscar Salvador Acked-by: Michal Hocko > cc:stable? See http://lkml.kernel.org/r/20181217152936.GR30879@dhcp22.suse.cz. I believe nobody is simply using gigantic pages and hotplug at the same time and those pages do not seem to cross cma regions as well. At least not since hugepage_migration_supported stops reporting giga pages as migrateable. That being said, I do not think we really need it in stable but it should be relatively easy to backport so no objection from me to put it there. -- Michal Hocko SUSE Labs