Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6667670pxb; Wed, 17 Feb 2021 10:08:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyKg6FbG+Bg6JomCUx6FfEziZsowIoPAa9FEdWgZ/G1aGv1i8P+hh/R3FFyD5m6+LNTzcVy X-Received: by 2002:a17:906:4e0f:: with SMTP id z15mr177281eju.199.1613585289994; Wed, 17 Feb 2021 10:08:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613585289; cv=none; d=google.com; s=arc-20160816; b=bqRyUHWB923Qp1Q280DgMj375HTJbEAAkYTrf9pKkozPXdLdHg8oN0lJUvQHsUHSes 9rzDL2KtjjYgvLBX/O9OLVqzmBZH+KAPSPq7/kgoke8AISUmXgRxbMJwhJvkjp7avCjR +1OuX8aU49zmQHUj4OiBSkwu1KAobOZVkehG4LnHJrqxw6l7UWA6O9A7fUZPpTq18OZY +kKaeD0bqIGlvqfJWnVufHxa/N5dmd3QZmcQ+W2QiXascoQp1ycSdS0nFG3SNyZSjbEQ b3QCyk2ZFunIG+FTVR/7x+5lb2x7mqsoGkyzmERJROCb1xEvWQzX9yT+KnkQ5GH5H229 u0Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=pEuhmEdp7QpRoUJmphsDnV4p1aJhJqOjRysp1QSZBoo=; b=Q5Xpgxm/nBFInfRnnjz49EIm+F7KR2wG5tjo5GnqYD7dQNbQKO2gUswoqdMD+BwdHL +OaDRVIqlaeT5oLdqbZkAz/XC850ZqJT4RXAZtT1+3q5PerEKU3qVo0B9v6PToK0Lnc2 XD2EhR3C26Rd1qmSyxFHByAhUPDJpOpTM54wHqqZfUBL7WJZ50klFEKz+KabZXNSTYbg UnCJUMdtnHNjGCIaehE6FS3wiXHwmkiCGD62is6/yi+eOYlI6szkD8u2ghKn2c+ITDmB Q0kpDYJy5B3crVx8/D1Z2V6hUwnNr+jmegKXVgJAKCyPfgG/UTAXNthAZwspph3S8no1 G+hg== 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 ox26si2369043ejb.144.2021.02.17.10.07.44; Wed, 17 Feb 2021 10:08:09 -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 S232533AbhBQNrh (ORCPT + 99 others); Wed, 17 Feb 2021 08:47:37 -0500 Received: from mx2.suse.de ([195.135.220.15]:48182 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232778AbhBQNre (ORCPT ); Wed, 17 Feb 2021 08:47:34 -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 AFCB2B761; Wed, 17 Feb 2021 13:46:51 +0000 (UTC) Date: Wed, 17 Feb 2021 14:46:49 +0100 From: Oscar Salvador To: Michal Hocko Cc: Andrew Morton , Mike Kravetz , David Hildenbrand , Muchun Song , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] mm: Make alloc_contig_range handle in-use hugetlb pages Message-ID: <20210217134649.GB32488@linux> References: <20210217100816.28860-1-osalvador@suse.de> <20210217100816.28860-3-osalvador@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 17, 2021 at 02:36:31PM +0100, Michal Hocko wrote: > On Wed 17-02-21 11:08:16, Oscar Salvador wrote: > > In-use hugetlb pages can be migrated as any other page (LRU > > and Movable), so let alloc_contig_range handle them. > > > > All we need is to succesfully isolate such page. > > Again, this is missing a problem statement and a justification why we > want/need this. Heh, I was poor in words. "alloc_contig_range() will fail miserably if it finds a HugeTLB page within the range without a chance to handle them. Since HugeTLB pages can be migrated as any other page (LRU and Movable), it does not make sense to bail out. Enable the interface to recognize in-use HugeTLB pages and have a chance to migrate them" What about something along those lines? -- Oscar Salvador SUSE L3