From patchwork Tue Jan 10 13:36:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baolin Wang X-Patchwork-Id: 13095165 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E324C63797 for ; Tue, 10 Jan 2023 13:36:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F3A938E0001; Tue, 10 Jan 2023 08:36:35 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id EF82D8E0007; Tue, 10 Jan 2023 08:36:35 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C9D818E0001; Tue, 10 Jan 2023 08:36:35 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id AA05C8E0005 for ; Tue, 10 Jan 2023 08:36:35 -0500 (EST) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 7325212046D for ; Tue, 10 Jan 2023 13:36:35 +0000 (UTC) X-FDA: 80338989150.30.1C4FD74 Received: from out30-42.freemail.mail.aliyun.com (out30-42.freemail.mail.aliyun.com [115.124.30.42]) by imf02.hostedemail.com (Postfix) with ESMTP id A62EB80014 for ; Tue, 10 Jan 2023 13:36:32 +0000 (UTC) Authentication-Results: imf02.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=alibaba.com; spf=pass (imf02.hostedemail.com: domain of baolin.wang@linux.alibaba.com designates 115.124.30.42 as permitted sender) smtp.mailfrom=baolin.wang@linux.alibaba.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1673357793; a=rsa-sha256; cv=none; b=rW9ooB0zMkWiIQ21AQRKyNOXj+tCxgV/3Mv4oxkUhThLEQ3zEdROdl31HB1NrzxRo+347Y OI2UnJhGv6FRTR0LwqLaZ6FLNIoW/yFdz6NAE04egJ1TrxaEC2vbSLeKK6Wuqf00yIv2yX 4DiJjxcdRXdIh3KYrCiicmCQdMb4Uck= ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=alibaba.com; spf=pass (imf02.hostedemail.com: domain of baolin.wang@linux.alibaba.com designates 115.124.30.42 as permitted sender) smtp.mailfrom=baolin.wang@linux.alibaba.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1673357793; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=Z0fz73IkFu4B1PwsHGhqwgA9DZuv5cIiRHdecd+quZ8=; b=PMe4cAvH0MxtF0th1PJgJ1JkX/MwEw62YU9FcI7O4A/8OIjVYHxwW4vT4TpV/pH8OggGzC tvxqOQQfw3hdrYyhRovHCbgjR89WHooJ+C2g+khftudACub0PmF6ZQLVpIjr9lxQM4Snuv IONJi89fYoWzFW9XskF6vhq/R06VV70= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0VZJVlQr_1673357786; Received: from localhost(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0VZJVlQr_1673357786) by smtp.aliyun-inc.com; Tue, 10 Jan 2023 21:36:27 +0800 From: Baolin Wang To: akpm@linux-foundation.org Cc: baolin.wang@linux.alibaba.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] Some small improvements for compaction Date: Tue, 10 Jan 2023 21:36:17 +0800 Message-Id: X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: A62EB80014 X-Stat-Signature: pcam98a6omut9e3b7ngti7y951hz7gjt X-HE-Tag: 1673357792-591196 X-HE-Meta: U2FsdGVkX1+AW7tK6VmlZl4UFxqL9dehNzH55hvgrQA7QD95cemar9OHxdH2BzNMMvHT1+bkQ28BTBlk9wCf4qkV22jviqoRETPWVebxYwSbxDlgegAalIaTymCWjScr8ofEhQMHEJr1T5/whRp21RmOX77j+sMVs+a7p3DnWCYXJ754kdS3OQdxexzdT5yXnImARpK9BgZAZ5dB1001WPpVaVJxkfVFfet51KDj6njnHf1rZSbY7cJJpwDuAlIG5gSZbbLVHorA2DPcZWNJeN7SoN+ECnje5LAa+MoKZWWGmqdj0b28LogJWqFYX2DRa8qj1zZ60rC+MvSxQAVaeZueaHpNJ3ai3lZ8HArpz26ZDzaNyl9FNnQEHvpbn4/8JH2nK/rCuZNXDRkmAgCp1mlhevodMZk4ydXHQ+hdbZ7qtaixXJaecHuIBK9asmu8TxVKJ4XKq4KoWKkoBD+S7SDP0PAGZ04CNFTEfIbntg4gLGRmITWQB9qFADlDhd7ny+MugaMltCmjyxzZ4G+k2jUD4Xg3w0ZCw2mR95lEmZjkRWyMQqeJEjmy4/b4fXXFbz9gVHWR3gIEA3slhd9whs9ocWR9RmOVJEb7AVJs8TPgYVphlsE7ityKcufqE/p9AOppjo4DCHOrKuUToe2pwwgBh2oJ715U/TMxNtJp2DDyLv3cPdq1ntEWu3rs7BehBoTmlTM1ODnornu8OZ4urO+Uyd/oVo+ofgoQlSVOS4N+fTzIpOY4/fZvkS9Tc3A1yo+gIBxfpmX/34woa+4+TVU4mIVyFDgQAN50abYBX1Fva+zqBYTjLUHYgZUmxsxb1gIU27nI6Js= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi, When I did some compaction testing, I found some small rooms to improve as well as some code cleanups. Please help to review. Thanks. Baolin Wang (5): mm: compaction: Remove redundant VM_BUG_ON() in compact_zone() mm: compaction: Move list validation into compact_zone() mm: compaction: Count the migration scaned pages events for proactive compaction mm: compaction: Add missing kcompactd wakeup trace event mm: compaction: Avoid fragmentation score calculation for empty zones mm/compaction.c | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-)