Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp78817rdb; Thu, 1 Feb 2024 02:39:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IFnATMeeWs+r/BZ94hGDiGiCqeBsut4ZmdKIxV32wgCpXuJbiv3eqg0J8QEdEehFsfaclRm X-Received: by 2002:a05:620a:215c:b0:785:4088:5529 with SMTP id m28-20020a05620a215c00b0078540885529mr1841230qkm.35.1706783964214; Thu, 01 Feb 2024 02:39:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706783964; cv=pass; d=google.com; s=arc-20160816; b=FMRUuT3MD8KoP+h51hEm6ge8aLqQZ2ZEKRGMw9zrEXzubdvkcS1u1YvKBO9NvfLRBB YJrPCogCp8IGxVzwAGs8rqOLITKK0MyME/cv5d9Ps5NycHAqxNn6AJjuOe20RLqLOXK2 n7gJhoJQfwMPYHJJrmelCm+9TkdhiJuUk3LtQ5lmPYVlx2D++Jfz8ySPVFX2loPEhokJ lFV+LMjwE3S/skWjxlitqYmTzQ971sh3HMSss9mJgn9ysM57w21L3Jsf1BOJwOAid+ZE 0M2JsgZuETU8JJdy86/XwMC3LhY4NdItvRAw9MhYnRl9Ma62GO0umneB1C7IEAeL9suO b9OQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=ASXgWwY2X/TWVWHF1Drj5oI1NAhqL6j+kMZBjOBbCiE=; fh=8VCXsKpqjcK5NBCKMVyZsZ2uwasKAXYQDUXLDn71Yrs=; b=DFuFArY94Fzk9Jy5xnaBld+Y6jbxkRw3DJYj8muWcjzo1IfzYrMqzdbnk4ImKIGhA5 OGqBE8kHygtciDu0V74AFKe737jfpAo3KBm7qpEfqRbit7+ao67OnhXQBtJgwpCyKnR2 YUrhve1YtHqgtIHRGLINMg4TLShvJIL+y1zdm6G3TClFQYNBcela8lKNH9T2PKxodL/H r9P9IBkfMzyD7Z0EgKUyo3nF0ZVQ05DNR+xOyfYISfA/n9HDSzDoevqEjdu5wZWRSbTX 45mYSyWLunm1jU9cDCHUlXhZvWJoSY2so9baeWsgg5tbm5gmQlZ0mNl8bJ2UAx+tQhXk CRiQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=techsingularity.net); spf=pass (google.com: domain of linux-kernel+bounces-47978-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47978-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCUKavfFZdB+qBmjIcwnF9PUFBU5+D/V9hEpsM/93NjTkREre4VYoto8VIGN7h8VERcA06bhQMvhmMoMDpdGbcxCNNtjoRsrKYcrKHpxoA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j20-20020a37ef14000000b00783f8df0222si9160321qkk.718.2024.02.01.02.39.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 02:39:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47978-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=techsingularity.net); spf=pass (google.com: domain of linux-kernel+bounces-47978-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47978-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D7FDB1C2A921 for ; Thu, 1 Feb 2024 10:38:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3723E60B80; Thu, 1 Feb 2024 10:37:54 +0000 (UTC) Received: from outbound-smtp38.blacknight.com (outbound-smtp38.blacknight.com [46.22.139.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 19F4C7FE for ; Thu, 1 Feb 2024 10:37:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.22.139.221 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706783873; cv=none; b=ChI0mdSNxsL7f/1y5GbV5lyRUdoSIJe0cdPNgD8CvwhSqndh5skzurzsG1P6/HzlxqOW0PznqPUyR+d7rF2uI+C3sUw4lbYo+zjDbhmiTsHjnx6OftzPY5yfJLHDrkYQJ5cJY1WHd8BeCFHNdbYX+Tuu8Sbg8D+GoACrEIc3r5I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706783873; c=relaxed/simple; bh=R5jSD8/Z785gfYrTYHGHMJuVPRERQPN9G6HG8mAZauU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HTKH/dvEAc04S17BnSIyPheT+wKP1ozLoBonLnu6CQcxfL9cYdoCZylQVcyc4Hmz8I+q+mGB8T0fLLnCk5PqTqzqwyaNu52Zs+Bf3s42PZ+cbr0hUeSpg71c8GopcMy5k4x5SOJllGPFHisqAiPcL+xNgeB2MEzn/4f0jzoKMgo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=techsingularity.net; spf=pass smtp.mailfrom=techsingularity.net; arc=none smtp.client-ip=46.22.139.221 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=techsingularity.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=techsingularity.net Received: from mail.blacknight.com (pemlinmail05.blacknight.ie [81.17.254.26]) by outbound-smtp38.blacknight.com (Postfix) with ESMTPS id 5C6F02436 for ; Thu, 1 Feb 2024 10:29:56 +0000 (GMT) Received: (qmail 434 invoked from network); 1 Feb 2024 10:29:56 -0000 Received: from unknown (HELO mail.blacknight.com) (mgorman@techsingularity.net@[81.17.254.19]) by 81.17.254.26 with ESMTPA; 1 Feb 2024 10:29:56 -0000 Date: Thu, 1 Feb 2024 10:29:54 +0000 From: Mel Gorman To: Baolin Wang Cc: akpm@linux-foundation.org, vbabka@suse.cz, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] mm: compaction: limit the suitable target page order to be less than cc->order Message-ID: <20240201102954.e65g2q3twdtxhjzc@techsingularity.net> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: On Mon, Jan 22, 2024 at 09:01:53PM +0800, Baolin Wang wrote: > It can not improve the fragmentation if we isolate the target free pages > exceeding cc->order, especially when the cc->order is less than pageblock_order. > For example, suppose the pageblock_order is MAX_ORDER (size is 4M) and cc->order > is 2M THP size, we should not isolate other 2M free pages to be the migration > target, which can not improve the fragmentation. > > Moreover this is also applicable for large folio compaction. > > Signed-off-by: Baolin Wang Acked-by: Mel Gorman -- Mel Gorman SUSE Labs