Message ID | b7f1ece1adc17defa47e3667b5f9fd61f496517a.1673342761.git.baolin.wang@linux.alibaba.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 60AB2C54EBE for <linux-mm@archiver.kernel.org>; Tue, 10 Jan 2023 13:36:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 686098E0006; Tue, 10 Jan 2023 08:36:37 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 57A598E0009; Tue, 10 Jan 2023 08:36:37 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1C82C8E0006; Tue, 10 Jan 2023 08:36:37 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 066AC8E0007 for <linux-mm@kvack.org>; Tue, 10 Jan 2023 08:36:37 -0500 (EST) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id CE5FF80F73 for <linux-mm@kvack.org>; Tue, 10 Jan 2023 13:36:36 +0000 (UTC) X-FDA: 80338989192.19.08B307D Received: from out30-8.freemail.mail.aliyun.com (out30-8.freemail.mail.aliyun.com [115.124.30.8]) by imf29.hostedemail.com (Postfix) with ESMTP id DF5AF120010 for <linux-mm@kvack.org>; Tue, 10 Jan 2023 13:36:34 +0000 (UTC) Authentication-Results: imf29.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=alibaba.com; spf=pass (imf29.hostedemail.com: domain of baolin.wang@linux.alibaba.com designates 115.124.30.8 as permitted sender) smtp.mailfrom=baolin.wang@linux.alibaba.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1673357795; a=rsa-sha256; cv=none; b=c9ZFoeURLcUoXbABZDTKrbAtyyV9/vgJpw4+GRPm8PxosNWl19iMmXx5JuD0L7XjeMZcjl 2AyNe+9PyGFf42XwKmiy+by/9jj5bK721acur2Bx/ER0QD3V6rP+bcoKF8hZtQQQPyE28O pdgEkklx+8qpGSRURB/KgGhyzQKI55o= ARC-Authentication-Results: i=1; imf29.hostedemail.com; dkim=none; dmarc=pass (policy=none) header.from=alibaba.com; spf=pass (imf29.hostedemail.com: domain of baolin.wang@linux.alibaba.com designates 115.124.30.8 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=1673357795; 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:in-reply-to:references:references; bh=hNGjI/01A2MPHFDvkldjhdG0u5k0DY1eIN4Z0OtkkoA=; b=aV9csFAMWfimhqvkeJVh016EEmwmwUhvq91faykkBHOnwD1Tmb7y7RD09ZyET6UOg9nxKt WMwYhC+Pwm1GV0PStlCftRicFdeS0aFylTT+QpJEzFmj/kEKxnRyOlI/JKnNQCNqoJgQ3z Er0oCzVNFL3jegSWF2LTM9ss8+SSOkM= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R291e4;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_---0VZJNexH_1673357788; Received: from localhost(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0VZJNexH_1673357788) by smtp.aliyun-inc.com; Tue, 10 Jan 2023 21:36:29 +0800 From: Baolin Wang <baolin.wang@linux.alibaba.com> To: akpm@linux-foundation.org Cc: baolin.wang@linux.alibaba.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] mm: compaction: Count the migration scanned pages events for proactive compaction Date: Tue, 10 Jan 2023 21:36:20 +0800 Message-Id: <b7f1ece1adc17defa47e3667b5f9fd61f496517a.1673342761.git.baolin.wang@linux.alibaba.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <cover.1673342761.git.baolin.wang@linux.alibaba.com> References: <cover.1673342761.git.baolin.wang@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: DF5AF120010 X-Stat-Signature: waai5be96uynw96or59gy3nxpbjk37dj X-HE-Tag: 1673357794-752659 X-HE-Meta: U2FsdGVkX188lUf3qIn9iklnQlhA+yzo7M17Pisi9lGUm6JeWXbdKIF3RM0veUxvw1DhtaWGJoTb2odu3K+Md+q7Z8oaD0b+mWHYFDZPTk02mDxz+oASWTOS7xqefD5jg2Z1/nAG/Im1PMBPpGRAz4lXx5PvC06ZQXJkqogd0dycBjYvJDu96izpw++qVLGm/DZWwS5MwDnn/1cTuuETQ1WvH56QnsY06Mxzb4OaegG7Ix6M1gfC5+OdhvDP1fcfNNMJTumcUiV1SHALxAR3McubgM/VQZ9JaVY1bBYtcE2oKN+gPRi+HbPYyeciqaqtkCAfa9/2zoqwmF/U36lOVXv0OmQtJkIJm6AgnKa91l3B4E38r+z/1h2On9CflraL+Xx3JRqbXXv+yz01khWbAvAXmfAi0g8HAom1ackTtaiPXvGmHoT5aTg/ltFEEhyeU9J5G4M8UvSsf+tiUwTtj8KpkiJdsfOdhHGaTGJMnFl3YN49s423MhN1IKBp7uuHQHctv2dA5PJ0c/dZv116TqsvFWTQZM78MNuy4JBOkqvaF0MB6XrFNb56J/xOBSRXfWqQeyvhhMuQBmXcTwNk/31x8AJty9q0ZxJRC6QHTWTrKoCdHUtGJUYKKNU4lnQPPZZSlLhCLVs7voXc6SxMQN2IhvsF7Zodsqk6d/NVSJsQqjSJO8rf9bePMr88wite41HXFC3SuwPatw17qsScarsbALPBuU6782a9qMz+Ts6nWXywuWnVLr+Ka2vTRkb5YnhdYa7vt8/lWmZtrmyAKOXb2oLF0eDctObWBZG56+vrGPjNjs1wM3gWSDQQJiJgWHEC8pdA8Ro= 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: <linux-mm.kvack.org> |
Series |
Some small improvements for compaction
|
expand
|
diff --git a/mm/compaction.c b/mm/compaction.c index f8e8addc8664..62f6bb68c9cb 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -2659,6 +2659,11 @@ static void proactive_compact_node(pg_data_t *pgdat) cc.zone = zone; compact_zone(&cc, NULL); + + count_compact_events(KCOMPACTD_MIGRATE_SCANNED, + cc.total_migrate_scanned); + count_compact_events(KCOMPACTD_FREE_SCANNED, + cc.total_free_scanned); } }
The proactive compaction will reuse per-node kcompactd threads, so we should also count the KCOMPACTD_MIGRATE_SCANNED and KCOMPACTD_FREE_SCANNED events for proactive compaction. Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com> --- mm/compaction.c | 5 +++++ 1 file changed, 5 insertions(+)