Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3886067imu; Tue, 18 Dec 2018 05:54:45 -0800 (PST) X-Google-Smtp-Source: AFSGD/X+7g8VnrMELwBQzv3o9Yxd2FfMJnUVe1do0oHmWESupjyEB8p+LltZFQ6apSKI5y9bsgQn X-Received: by 2002:a62:5301:: with SMTP id h1mr2488521pfb.17.1545141285009; Tue, 18 Dec 2018 05:54:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545141284; cv=none; d=google.com; s=arc-20160816; b=I+AHWL0cHGalk1l6oJ/6ENElKHFXc899sVymcAJyFlwcK+y+PZJYif/Z+VnY2NqeeC 7V+5YTnADNy7fjs5glI096MovWrmaGRddOgUACM4nTq5BYaAG0rlurr9TfAX+xHtVJoQ dhlAx+SgQnwOOXo+8IDYIWUOQB6m0tLHvEPu+byDY1sCZU/WA85VFCesro9hnjLzQ7/e t6PMMXIhCvQDjuGVB/wRzHiOCmf4Wmvfw/J+WES7ViIvPIAupFQF6Fmg8ZYyVUUM6ikC Oa3ohbzuya4n9nYp9TjtewGSk9qKGQlWhlYFlIAP5PMlRnxI7rKpJotH08QsKOCuNKPY mYgw== 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=BH3L7+LH7r9qdDVFNRjNVN6nPGYjyzyOO49x9WbrTsA=; b=llBQR+MUB+xdDB+Ra9LrodIN1k5UxYyB1aR3rjpHpG3k18T57sxSRe6ihJntMoZXEU 9YJHuec19/p6h3TK/tR13oWOdpUaKu1QfXI9fF5HiIPKqbkhs7maBHCl/sr6hHndj5o0 Rwbeh41C5KtqCbl+338bzEV7NoEINfhplDAm6oRGf5Js2FvtyNCUDy+QC7nRN0wn4Urx ITSQvciyZc2tUQoTrHJ3zVQMIW6tlVuC8xWESPgZ/4TnbsR5wtXV1uFpP0AyDBYe+zB5 pKVFZdTka0AoQqTTrAbjdkadlH5+I9fwKtl+vdUYT/ZZrNQAZeXerGoapNdONKQuzLo/ 0iWQ== 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 v5si13146802pgg.1.2018.12.18.05.54.29; Tue, 18 Dec 2018 05:54:44 -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 S1726819AbeLRNwG (ORCPT + 99 others); Tue, 18 Dec 2018 08:52:06 -0500 Received: from outbound-smtp26.blacknight.com ([81.17.249.194]:40628 "EHLO outbound-smtp26.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726626AbeLRNwB (ORCPT ); Tue, 18 Dec 2018 08:52:01 -0500 Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp26.blacknight.com (Postfix) with ESMTPS id 9A494B8829 for ; Tue, 18 Dec 2018 13:51:58 +0000 (GMT) Received: (qmail 7453 invoked from network); 18 Dec 2018 13:51:58 -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 13:51:58 -0000 Date: Tue, 18 Dec 2018 13:51:56 +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 09/14] mm, compaction: Ignore the fragmentation avoidance boost for isolation and compaction Message-ID: <20181218135156.GK29005@techsingularity.net> References: <20181214230310.572-1-mgorman@techsingularity.net> <20181214230310.572-10-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 01:36:42PM +0100, Vlastimil Babka wrote: > On 12/15/18 12:03 AM, Mel Gorman wrote: > > When pageblocks get fragmented, watermarks are artifically boosted to pages > > are reclaimed to avoid further fragmentation events. However, compaction > > is often either fragmentation-neutral or moving movable pages away from > > unmovable/reclaimable pages. As the actual watermarks are preserved, > > allow compaction to ignore the boost factor. > > Right, I should have realized that when reviewing the boost patch. I > think it would be useful to do the same change in > __compaction_suitable() as well. Compaction has its own "gap". > That gap is somewhat static though so I'm a bit more wary of it. However, the check in __isolate_free_page looks too agressive. We isolate in units of COMPACT_CLUSTER_MAX yet the watermark check there is based on the allocation request. That means for THP that we check if 512 pages can be allocated when only somewhere between 1 and 32 is needed for that compaction cycle to complete. Adjusting that might be more appropriate? -- Mel Gorman SUSE Labs