Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6461257pxb; Wed, 17 Feb 2021 05:20:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/u0PpLYEAECsxkNSVl8TravF46aH6ZXaoVVyI1l1bafUPwIqQx0ETMZ62kJFwwrDXeHBc X-Received: by 2002:a17:906:40f:: with SMTP id d15mr25740270eja.522.1613568038852; Wed, 17 Feb 2021 05:20:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613568038; cv=none; d=google.com; s=arc-20160816; b=SBQ+doBbDlL8d1tf3bg8xyt2ekBJXUjvgtZRXmcrsqaWfDeBu+hUrQOTLbioHJ1m4q o5iSA/sT7FsE2Hz95Xuk+M7RWPohQuAQOqyfbraQZ6bJ8x++K/n5IWXnhVnrG/S6XK4/ lqtrjBoH7cLTLcwZWAvUO1vGs04Y76zLwVx2pMKlB0ZEFh2QEX9Q0SG+EOhays5XQkma zFeE8HD8NczjpTSVXw7o4k2mEePyDNGeNhREvc4ITpPqSz5R4yw7X8hwJs0Gbp2Zu+Id 11et3IDkBWK52Yf/lH0tXtlEu9pLOdS802Vr9hadKLqjWXX9aiOUN1HY02yMMhTUPoss q9yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=GzSXwrBLMIOhenFA4YW/IofJ03UdgUkObLg71YGp+jA=; b=b0FwjBF8zIcJ1IP0BvDQ7vtftYaOVILr6lTej1Ge2Oc/lzijqZawTfkAnR+CTto2wV tjX8qeUgK7HDkZimrlB83JCo1S0X+6bO7S/3+X53r9ZsGPVmHLl5ZmNtQlDsTXwkB02G 851WMim5xS1IpYbTVKFzdAFgGWqJbE8rbOSfxtufqisyMpVSss6amAzlkJwy7w0OhqHr cMUoi0ow27o5yy8cvF+vOgINmpfwN8hDVhETArD5Y3DRjkW/wHljDHs2q/VlMtHQHZX5 lR++wJ2Hg2mzIOxZLajxIpHQghrgjGzB7QR9PaxhRx2Jcihp2S9nmfsI17CJbDcqPfa7 hwVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t1si1448645ejb.703.2021.02.17.05.20.15; Wed, 17 Feb 2021 05:20:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232155AbhBQKJI (ORCPT + 99 others); Wed, 17 Feb 2021 05:09:08 -0500 Received: from mx2.suse.de ([195.135.220.15]:50700 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231933AbhBQKJH (ORCPT ); Wed, 17 Feb 2021 05:09:07 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 1BC93AFE1; Wed, 17 Feb 2021 10:08:26 +0000 (UTC) From: Oscar Salvador To: Andrew Morton Cc: Mike Kravetz , David Hildenbrand , Muchun Song , Michal Hocko , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Oscar Salvador Subject: [PATCH 0/2] Make alloc_contig_range handle Hugetlb pages Date: Wed, 17 Feb 2021 11:08:14 +0100 Message-Id: <20210217100816.28860-1-osalvador@suse.de> X-Mailer: git-send-email 2.13.7 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, this is the new version of [1]. RFC -> v1: - Drop RFC - Addressed feedback from David and Mike - Fence off gigantic pages as there is a cyclic dependency between them and alloc_contig_range - Re-organize the code to make race-window smaller and to put all details in hugetlb code - Drop nodemask initialization. First a node will be tried and then we will back to other nodes containing memory (N_MEMORY). Details in patch#1's changelog - Count new page as surplus in case we failed to dissolve the old page and the new one. Details in patch#1. I already have a patch that uses the new alloc_and_dissolve() from hotplug code, but I decided to leave that patch out until this patchset is settled. [1] https://patchwork.kernel.org/project/linux-mm/list/?series=429833 Oscar Salvador (2): mm: Make alloc_contig_range handle free hugetlb pages mm: Make alloc_contig_range handle in-use hugetlb pages include/linux/hugetlb.h | 7 ++++ mm/compaction.c | 21 +++++++++++ mm/hugetlb.c | 93 +++++++++++++++++++++++++++++++++++++++++++++++++ mm/vmscan.c | 5 +-- 4 files changed, 124 insertions(+), 2 deletions(-) -- 2.16.3