Message ID | cbf8097a2d8a1b6800991f2a21575550d3613ce6.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 CD681C63797 for <linux-mm@archiver.kernel.org>; Tue, 10 Jan 2023 13:36:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5E86E8E0009; Tue, 10 Jan 2023 08:36:38 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 599A58E0007; Tue, 10 Jan 2023 08:36:38 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 460AB8E0009; Tue, 10 Jan 2023 08:36:38 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 2B3A58E0007 for <linux-mm@kvack.org>; Tue, 10 Jan 2023 08:36:38 -0500 (EST) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 02EF680DA4 for <linux-mm@kvack.org>; Tue, 10 Jan 2023 13:36:37 +0000 (UTC) X-FDA: 80338989276.04.69B0574 Received: from out199-6.us.a.mail.aliyun.com (out199-6.us.a.mail.aliyun.com [47.90.199.6]) by imf29.hostedemail.com (Postfix) with ESMTP id 21C72120003 for <linux-mm@kvack.org>; Tue, 10 Jan 2023 13:36:35 +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 47.90.199.6 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=1673357796; 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=aUqvJwZ3zTaTE2hwZW4/UAX21kQ42gjk8DtqU35VbJ4=; b=jwQ3ijqI836YDSRscNlpOR3Oh3qrpEdpGGASc/i4f/1L2wW8rswqi0UK236KCETvtOJqR1 pesSY7X8hOF+8TAVImYb0leW1+Q/MQK8+gOUkB96np7gwY6WhL5pFWexgOCC4ByeXTRRsX QF5D/lztdwSr2PVxemVD51Mjaa4jXX0= 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 47.90.199.6 as permitted sender) smtp.mailfrom=baolin.wang@linux.alibaba.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1673357796; a=rsa-sha256; cv=none; b=Q+/BIPDPP5CP+wbePIZVvoadVCC8Rnh2DBn6w6MEtLueOq+XBkRPikksipLy/pE4HOHnVf 3sZgqacxpvYh2Z9DX9XSEWTfeBOySqgswCV/F4yMpsU/6Zce/Fzcv1lqujCHNz35vDhH2a j7xHOMeARG7f/4Kzsy8qGzCuZRaFxic= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0VZJNexU_1673357789; Received: from localhost(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0VZJNexU_1673357789) by smtp.aliyun-inc.com; Tue, 10 Jan 2023 21:36:30 +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 4/5] mm: compaction: Add missing kcompactd wakeup trace event Date: Tue, 10 Jan 2023 21:36:21 +0800 Message-Id: <cbf8097a2d8a1b6800991f2a21575550d3613ce6.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: rspam02 X-Rspamd-Queue-Id: 21C72120003 X-Stat-Signature: 8nidy56iqhh1i3yddicow981im3d8ris X-HE-Tag: 1673357795-859257 X-HE-Meta: U2FsdGVkX18wQ3p7xu8ImFRibU3HNc+FD7N9pnZGAZ8j0cEwndBbqRFI9XMijszNpNDmhtYsNVv6utZDF/Vmzl3h8jK8ZPAqs++DxXUtHfp69NhfQcL0nvPgq4IAItbAz9oRDb3qseT0pQRQRGzvICUqgtAKPC6yD8cNm8cyPlpdzeEmuhzvpY7ZOxnlkHPQKT94UPn9EcIYZhZJkG4SbSnt9m/ARlH49EvS4BRQJRZ7+BHc5ZnoGQzJnRqWeNam0WCrv4/d+T6w/wuwBA+Sh+DlrsFJxtLg1eVhCr+dqsdaM0OCmQ45KaiYvoGlV4/BICT2XwSQLoe1Qbeua/ooGBfBtzmbRi86Uw0xTaEXi9udVEJtdp8rSvU2XbyOGhhGWdLmvmUEP9/c5aIq6HDqH8NNy9xP+nNRetelC212z1leIMsfVai8wv3UELQjXP9XNV8cuWnhDdHAWlf1dmocCVnDH+XzoPnLw7QDU0+f2k1HB4bUiK9fN8wZFVmjeuC5DOWiXyX9goOb3Bk3bqOGYUnkVCOkUFm/G1dA5zsL1TQ1etaVQW26dKmYd5FltzHRcX6vWxLFMkenExJUElxE3Sxl5R82tAIxV1ivY3eQHUrwAyx3hs9WK2+z0HmnkQkcKsrQGyNj5+fsA8zEgxt2vKp+HwTM321TtNRO9LFMQQdEnD45qUAQhI5Hl/v+XApIWV6+HPb7QjKmMJmYk+5lWQAauKNVWlkLxwW7+UX9rdZ26dxlgqqmg99H6623OThKL8TOyFG451b1EsaIFH2qeUblSliDSdg0fzUb3FF2g8WJxjI7NhDzkcMx4cTFed3s 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 62f6bb68c9cb..0fd6c81a7809 100644 --- a/mm/compaction.c +++ b/mm/compaction.c @@ -2730,6 +2730,8 @@ int compaction_proactiveness_sysctl_handler(struct ctl_table *table, int write, continue; pgdat->proactive_compact_trigger = true; + trace_mm_compaction_wakeup_kcompactd(pgdat->node_id, -1, + pgdat->nr_zones - 1); wake_up_interruptible(&pgdat->kcompactd_wait); } }
Add missing kcompactd wakeup trace event for proactive compaction, meanwhile use order = -1 and the highest zone index of the pgdat for the kcompactd wakeup trace event by proactive compaction. Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com> --- mm/compaction.c | 2 ++ 1 file changed, 2 insertions(+)