Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3595440imu; Tue, 18 Dec 2018 00:39:33 -0800 (PST) X-Google-Smtp-Source: AFSGD/VpcOLHM64kg9R5akW1lX3CwiT4RZjeHtsMTBkgHrBruaf48Z69PgLrbOf8oD/f04zbG7M/ X-Received: by 2002:a63:d047:: with SMTP id s7mr14860604pgi.311.1545122373535; Tue, 18 Dec 2018 00:39:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545122373; cv=none; d=google.com; s=arc-20160816; b=oo1oWKeTCM0i1rfDKf/HmZTt/0i+6SHhDR2eIvguEbe4UKpyxBhxnzMM8gK7LrLPpy XTU3HTZq67vXY0PinKgN3GTcyO5F0t4Q0RWmB+qKSEsJuL29P1u7X+kltHBnY4SHT3PG SGJ0CdhMDTYyNFYG6oUB0wN2FC7MIRKdocP4q2hbjpTdiHTgy2p9udMZwRcq50z+XZ9e IwMAaGb3mIzLDITUZsNkwzGC+YUj3pBj0g69sTOHX+LPWg6ZzktP8204vBG+8b6+dhND UmffCHT4ofKX0ag68O7t069NJEtflHu7tsohRZ6tQbLvPH2aMr2kxzKyFdoe6hdMDVeI C0dg== 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=eyrnRjLNqm5/goQhsu6oeMjOkwzW9vroo5fqE7F05r0=; b=k8UexWx74vOqRnuAjjcyE2d6gWo/pGYE97LCa+/Yf+io4LZrlsguWjXiLxelXUg81p xuWJCW3nSUjg0d3u7JJRRO2gTdyANcKtQehHTSulmpF2jOVQ4kc8g6b0OHYGAlFug3ZS eFWRnPDsWm9lYksRaEZ06pZSRmSa2PmIQVAqXfh/vhsdL8QexDSYuuFfL8snsU/PXSLp js4Yac3eTcR5NmJYAnLDi1lv6ljB1PzepdwxPqC/0isUa0gIby8lKx2/oR7K26qjZnFL JF4iJbzWE09veA0JVCIwVH0StNh/poz6BKBnFWTg+vSNzMH9SRWphaIQpvVusWJojB+g ZHsw== 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 33si12819241plg.62.2018.12.18.00.39.18; Tue, 18 Dec 2018 00:39:33 -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 S1726675AbeLRIi1 (ORCPT + 99 others); Tue, 18 Dec 2018 03:38:27 -0500 Received: from outbound-smtp12.blacknight.com ([46.22.139.17]:49413 "EHLO outbound-smtp12.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726354AbeLRIi1 (ORCPT ); Tue, 18 Dec 2018 03:38:27 -0500 Received: from mail.blacknight.com (pemlinmail06.blacknight.ie [81.17.255.152]) by outbound-smtp12.blacknight.com (Postfix) with ESMTPS id D0DA11C18F2 for ; Tue, 18 Dec 2018 08:38:25 +0000 (GMT) Received: (qmail 11244 invoked from network); 18 Dec 2018 08:38:25 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[37.228.229.96]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 18 Dec 2018 08:38:25 -0000 Date: Tue, 18 Dec 2018 08:38:24 +0000 From: Mel Gorman To: Vlastimil Babka Cc: Linux-MM , David Rientjes , Andrea Arcangeli , Linus Torvalds , Michal Hocko , ying.huang@intel.com, kirill@shutemov.name, Andrew Morton , Linux List Kernel Mailing Subject: Re: [PATCH 05/14] mm, compaction: Skip pageblocks with reserved pages Message-ID: <20181218083823.GI29005@techsingularity.net> References: <20181214230310.572-1-mgorman@techsingularity.net> <20181214230310.572-6-mgorman@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: 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 Tue, Dec 18, 2018 at 09:08:02AM +0100, Vlastimil Babka wrote: > On 12/15/18 12:03 AM, Mel Gorman wrote: > > Reserved pages are set at boot time, tend to be clustered and almost > > never become unreserved. When isolating pages for migrating, skip > > the entire pageblock is one PageReserved page is encountered on the > > grounds that it is highly probable the entire pageblock is reserved. > > Agreed, but maybe since it's highly probable and not certain, this > skipping should not be done on the highest compaction priority? > I don't think that's necessary at this time. For the most part, you are talking about one partial pageblock at best given how the early memory allocator works so it would only ever be useful for a high-order kernel allocation. Second, one of compactions primary problems is inefficient scanning where viable pageblocks are easily skipped over or only partially scanned which is something I'm still looking at. Lastly, maximum priority compaction is rarely hit in practice as far as I can tell. -- Mel Gorman SUSE Labs