Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp526761rdb; Thu, 15 Feb 2024 07:25:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWmLCZorG/VEPNkYAjnI6byFQOQpZ85skq9Y9aZH/WJ1cabbIJFavodueniz5EDxRmWRl5h3dARHoO+vqz5ILLUGaqQvqC/ByRg8+6s8Q== X-Google-Smtp-Source: AGHT+IHYUzI4gEQkuk+9RIkVzc1e3ZT8hPNhB+6sTzioEvOKbqF/k+UKTv1PQttBX8sGtbCep8iD X-Received: by 2002:a37:c207:0:b0:785:d94e:a026 with SMTP id i7-20020a37c207000000b00785d94ea026mr2029131qkm.26.1708010700172; Thu, 15 Feb 2024 07:25:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708010700; cv=pass; d=google.com; s=arc-20160816; b=OiM9jS/S59Z/0JAEKm2KG8D0QZ90XTaHiITcEIX198E4mBtCQuSnjyFDXNE124XvIE M062L1QiT+JszKk6pK+LEH3oZsfSg6d8Cfab5uLMyyOIB5C2wyl4+kmFro0CLQEPOV/b hfYiFmec3ovQAS8v0YMlO+u1o8cO5J5Rfx+faLaYslqSjLSBdYomXHpPQmz6pppTtfxC m6Jw2ZF9SvvXKgPLYx7dMGXYOQ+NHpTFX2BhbQ8YiZLDLabpFgWOk0enk1gs+XqWLiD/ WPa1+9tADoS/MMZwC9G4DHdiVUh/NGtuBGRjQtkMG3LARbnUDKhhMlIlkebYJQK0aZ5d 7F0Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature :dkim-signature:dkim-signature:dkim-signature; bh=12kNV5kIRJt316jEGsRdZBsN4TCrOSXuKDUGfy8DHBM=; fh=9AM+AKsITw8Ffv63vBRldTpcD0m6KYMf20ozCQ3u5pA=; b=JiVd7TowIp8Xbadn/tmNIzThFfEOUBP3r3Nc7K2G2VKqKliQbUC9USdc9+fkfxkJAX vhq7eyGcvmisN1Lhpshtu+7nKVZo0D7uzMY5L3pRk5R+SYdiEb6NAK4UMi6DV8iPNU++ dXry4UNWC0jiGeYlztbETQaVIxlL/dyecFQpIqzdeHIOdy+n/vAEhmJFyqp2qfA700tW rDoY3Cak6MEDaMHi/UGOO+y2BAq+IiQuQn5b+HkyMEylVPbL4w+W9TB2nyieneL+F2y6 q2zL+6aehDBBgpRNzLTovzSpTq/pp56c3p2ZXNCFWYXTi3Ybd30aLo9tc4QIEYB6R6FQ aXtQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=YXDVk8m5; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=dZnmgzdU; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=vqtMDufh; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-67168-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67168-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id o8-20020a05620a2a0800b00785d9bbb481si1864652qkp.627.2024.02.15.07.24.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 07:25:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67168-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; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=YXDVk8m5; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=dZnmgzdU; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=vqtMDufh; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.cz dkim=pass dkdomain=suse.cz dkim=pass dkdomain=suse.cz); spf=pass (google.com: domain of linux-kernel+bounces-67168-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67168-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 5D3A21C223BF for ; Thu, 15 Feb 2024 15:24:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B224133417; Thu, 15 Feb 2024 15:22:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="YXDVk8m5"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="dZnmgzdU"; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b="vqtMDufh"; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b="rYcWr/ft" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 38098132C1E for ; Thu, 15 Feb 2024 15:22:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708010528; cv=none; b=kwg3Ph5FqHe9+gVojWV3Fqwj9rpzSx4hzWrg+H1XP5X3ZNG2k5YB6ciexT8IyNkXkwDBZagL2tLMlp79ROgwZ7oKQjrvP5VLbDgzenMOgHa6uw8WkD/8qjYUfsCP8Hqxc/MP2xhpWb7gWSZSko6XVDRD8RFBZN6pAcvrcGhQhRo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708010528; c=relaxed/simple; bh=4YBPTtk7uCC1xbpOjXR6O+jMjYRn4Ee+zQPRL4OEbDY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=K3KyGdzgg5OFvsSwUOHCGEnECpi24bkgtgclBJZ8gkl5kc/FWIfXUz1yzu2MhVeM9e7+2jBRn6Ii6XPEQTeRcvLUE/k0DeqN3r/Qd8srwrwOQiF6WPrDGvaMz3YfqSXuVxGRXZJ1y8sicYSc9g3PBHzO0TlIUNkyXLWVdPDfjIU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz; spf=pass smtp.mailfrom=suse.cz; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=YXDVk8m5; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=dZnmgzdU; dkim=pass (1024-bit key) header.d=suse.cz header.i=@suse.cz header.b=vqtMDufh; dkim=permerror (0-bit key) header.d=suse.cz header.i=@suse.cz header.b=rYcWr/ft; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=suse.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.cz Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 051FF1F8B8; Thu, 15 Feb 2024 15:22:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1708010524; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=12kNV5kIRJt316jEGsRdZBsN4TCrOSXuKDUGfy8DHBM=; b=YXDVk8m5L81Wk/ZMXTUZkPx5YMXU4K3EaG/AKg/tOSRwvCPKm2UCFNYPvUMiGU36c7mYxX snsI5bz+DUKmBux05WNXCr7vcsnleciTGMpNVHEcciYtQ35KPJM6yGZmKA+ITvYJKqIBbx j000kA7umP7yJBQSWArnhu6ebDSz83c= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1708010524; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=12kNV5kIRJt316jEGsRdZBsN4TCrOSXuKDUGfy8DHBM=; b=dZnmgzdUZ9GRAIBLc1QAKzo3iVb/Iwx/L82ctIcR7UnixfLSUZPd7w5OJLMpAgZjRhWZTC X3NT+1Dxz55ZknCw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1708010523; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=12kNV5kIRJt316jEGsRdZBsN4TCrOSXuKDUGfy8DHBM=; b=vqtMDufhvhotMmJiidrfs4WlO8cta9GJScf5PBRtEYi7qDK8KfRRbqJ/gXzk3MLtLH5+OE Rhm1aTQVktug73NgNXoeBwZEpPTC7YnPDmkuOe6sX86572bn4LAnL9j0+87hB9ruzj+grI slB34y5P6UVHRb3AexvDniJKMx86KRk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1708010523; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=12kNV5kIRJt316jEGsRdZBsN4TCrOSXuKDUGfy8DHBM=; b=rYcWr/ftod6blOiTC9RhqpiBCrz6h5w+io9C68D0xJd8VW1gOHxftpAUpzWBa2MZq+ChrS 85iV7av9EEEpWvBQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id D09D313A53; Thu, 15 Feb 2024 15:22:02 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id abiOMhoszmUedAAAD6G6ig (envelope-from ); Thu, 15 Feb 2024 15:22:02 +0000 Message-ID: Date: Thu, 15 Feb 2024 16:22:02 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 1/3] mm/compaction: enable compacting >0 order folios. Content-Language: en-US To: Zi Yan , linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: "Huang, Ying" , Ryan Roberts , Andrew Morton , "Matthew Wilcox (Oracle)" , David Hildenbrand , "Yin, Fengwei" , Yu Zhao , "Kirill A . Shutemov" , Johannes Weiner , Baolin Wang , Kemeng Shi , Mel Gorman , Rohan Puri , Mcgrof Chamberlain , Adam Manzanares , "Vishal Moola (Oracle)" References: <20240214220420.1229173-1-zi.yan@sent.com> <20240214220420.1229173-2-zi.yan@sent.com> From: Vlastimil Babka In-Reply-To: <20240214220420.1229173-2-zi.yan@sent.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Authentication-Results: smtp-out2.suse.de; none X-Spam-Level: X-Spam-Score: -2.23 X-Spamd-Result: default: False [-2.23 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; MID_RHS_MATCH_FROM(0.00)[]; R_RATELIMIT(0.00)[to_ip_from(RLqwhhqik4qyk5i1fk54co8f1o)]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; BAYES_HAM(-2.44)[97.44%]; RCPT_COUNT_TWELVE(0.00)[19]; DBL_BLOCKED_OPENRESOLVER(0.00)[infradead.org:email,samsung.com:email,cmpxchg.org:email,techsingularity.net:email,intel.com:email,nvidia.com:email,arm.com:email,suse.cz:email,alibaba.com:email,huaweicloud.com:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_CC(0.00)[intel.com,arm.com,linux-foundation.org,infradead.org,redhat.com,google.com,linux.intel.com,cmpxchg.org,linux.alibaba.com,huaweicloud.com,techsingularity.net,gmail.com,kernel.org,samsung.com]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[] X-Spam-Flag: NO On 2/14/24 23:04, Zi Yan wrote: > From: Zi Yan > > migrate_pages() supports >0 order folio migration and during compaction, > even if compaction_alloc() cannot provide >0 order free pages, > migrate_pages() can split the source page and try to migrate the base > pages from the split. It can be a baseline and start point for adding > support for compacting >0 order folios. > > Signed-off-by: Zi Yan > Suggested-by: Huang Ying > Reviewed-by: Baolin Wang > Tested-by: Baolin Wang > Tested-by: Yu Zhao Reviewed-by: Vlastimil Babka > Cc: Adam Manzanares > Cc: David Hildenbrand > Cc: Johannes Weiner > Cc: Kemeng Shi > Cc: Kirill A. Shutemov > Cc: Luis Chamberlain > Cc: Matthew Wilcox (Oracle) > Cc: Mel Gorman > Cc: Ryan Roberts > Cc: Vishal Moola (Oracle) > Cc: Vlastimil Babka > Cc: Yin Fengwei