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: 3803 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2751747wrt; Tue, 10 Jan 2023 05:40:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXtjPjvCzZI+WLzyw0N+H02bPTsKveZ4+4SSpZ0qJcIJW99biTNuQOI0MS4EbCH8RyDY5It8 X-Received: by 2002:a05:6402:2d9:b0:499:d0e3:7745 with SMTP id b25-20020a05640202d900b00499d0e37745mr876526edx.14.1673358026946; Tue, 10 Jan 2023 05:40:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673358026; cv=none; d=google.com; s=arc-20160816; b=UezgCJNjTR6yNbzyZaVZl3xlF6x9/V9X+3HR0XUhJ29ZIp5P91h07A7eA31xVLt1eM AA5bjZapAlqm/sHKLZYujfirsqbvV00keXxSR/E0TgbqZMfR7SnNyJ9GoxW+EmvKoXbO FfShM+lq0IYEfHKMYV+sm1elseBAlazrnFfgAVNNITc9g4WoXtlNga57BUqFm3N6h7Oi Ey7kXFtHJUiQ42V6nHACBcFQI3+Ye7k1rY2uDKr2ZyAUWhoutI365in4/6DR/oY6Zprj zvU+PmevIiQqXVytL9fjmQRRsRCMvVP6Zld/Q0nCiz0Ba9B0DoFosFqytI/49QieelvE 3fiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Z0fz73IkFu4B1PwsHGhqwgA9DZuv5cIiRHdecd+quZ8=; b=AbfBUhB6PSmgoqbHHZ1L4JSng8k3Hd+pkGHdEQujSLI4PaZ6Z22it9WYOk1pf//7K2 SxoCBdTdJvwZbMvU6a2NIIiVuuNT8OhvR6MH7h7rNRbeEwub/PuijAm1zEUOe4lx9Swk P1uS4CdjW5mFkehfLA6L03FVom/NDlH1v1L8Vng4IBsrJ1WBY/oGiSYp0nFqvZTjScqT Nqv8n3jmUdpqrKzq97nCdDLcgEfqSe78kQUNGlOasVWxFWta6561Mo0UoaVIL4E3OHPO EkR20ouIPbetaCJcHkqLoP5gu/NigmMPryUR8RugNM+VRplZSzCjaTTM8PPEMeaWJOXv eAag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u13-20020a50950d000000b0047da6021798si11598215eda.93.2023.01.10.05.40.01; Tue, 10 Jan 2023 05:40:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232431AbjAJNge (ORCPT + 99 others); Tue, 10 Jan 2023 08:36:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231409AbjAJNgd (ORCPT ); Tue, 10 Jan 2023 08:36:33 -0500 Received: from out30-42.freemail.mail.aliyun.com (out30-42.freemail.mail.aliyun.com [115.124.30.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CDCFBAD for ; Tue, 10 Jan 2023 05:36:30 -0800 (PST) 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-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754643066779643665?= X-GMAIL-MSGID: =?utf-8?q?1754643066779643665?= 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(-)