Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp362859rdb; Sun, 14 Jan 2024 22:27:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IH6fvWN0nieq4Yi3RDF++jWJeQs0nfV2vOJkPJlQU/g2xlieRSwU5N/jYxWudo3k+K/rhXC X-Received: by 2002:aa7:9f12:0:b0:6d9:b1da:6632 with SMTP id g18-20020aa79f12000000b006d9b1da6632mr5619849pfr.3.1705300038439; Sun, 14 Jan 2024 22:27:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705300038; cv=pass; d=google.com; s=arc-20160816; b=n13BkG5/0oqpVez/srz963CcQZvjsuUQCQddCIJCBX6nQgxFED0ebJGI3yHi84EtLY 1SMszqSPfuvGE7PnHvkjDN1DeuumtxKzrxLtUT4ShAcasvLCbgYpaltK8FHasVScS/mG HuNwWCu09k9+cqq7ApxUGF9JR/FNbwXWxvIlK6dM8beBRo68uL0oCmtcdzWU2klQBDwE 8rYunGSFyQnj6UqsPA2UWU3m8Nn5pRTrNwVOvx7ZknbDpSTE/R7pD5ZoxhoHaBuJDf6g c4VZMhvpQ7QLcWqa9+gjfRGBF8o6mDc+eysE92lDFb9HLJtodsb0NVqIRUyYUJWSTXya x2hQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:date:message-id:dkim-signature; bh=UUpaom51hJXjSvVhih0g0QjTelFX9vmGOrUDtVibyCc=; fh=pO4TZHYt8AvftJNs75aQOB9bCdpMje4/Xh86ldDiyPY=; b=zdC5k82k6lls827YbQ9aUcsWumAbPPJgpq5jDZXJep9BqqH55PoiQVbLdagPeTr6hZ NgIrlcgUe9wlr0tgBLeYt6vkkqgBkKvpZ/5STDq7AZfsk3yc6SZ9sFe8Gy/ofuesp4zO S84DXlINnKEz6eBeQWz869UatJAfIK8XTy6RB6XphMYBdaSALNI+n9YvrpvMwyoYCr8g a222F+3q5CUkdjL92UIUye3Jc5f9HHKiiEJ//shohr9XvnrtQ4ffLKTBVsgvzCzI07uM rUjNRrTJKkah3jAf4bf8Z6kBEQo3G9TuWS9BKs/UadvKazePNOuYlwnKdiySwXfUtKw2 Sf7g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=JUxlR4F+; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel+bounces-25658-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25658-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id e3-20020aa79803000000b006da55c943basi8199736pfl.281.2024.01.14.22.27.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jan 2024 22:27:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25658-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=JUxlR4F+; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel+bounces-25658-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25658-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 1C0CC281107 for ; Mon, 15 Jan 2024 06:27:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 20566322E; Mon, 15 Jan 2024 06:27:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=vivo.com header.i=@vivo.com header.b="JUxlR4F+" Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2110.outbound.protection.outlook.com [40.107.255.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2514A23C5; Mon, 15 Jan 2024 06:27:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vivo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=vivo.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gTe1WnNTkJwt9Kr7JRJT+CtEWqPpQ0/EQNooPhyCVN9WadCS0ApsdhxvQpCjhuJYQ7+HWMo3RnMTdj4FuBCHLunV//AG5609lxrmFSGK/2aWXFMLJPBvuwtS8vXATRQ/8G+nI2JRdW6p2zgawbRkrZdwIr1u/SgxgG1Ehmzq8p2TQPQdmivopwG3XqkoXJlwKw70NmuaPEj194TWOE1L6tuQOSZh8BOTXip0DMMmtSlrWMn8nKPRYDBBTW0bV1Klvvo3vxLbgOgy6nts7WP61Ko/tZj9IzWDxfBvjECNQ1vAkFl29EgNP1MgK99HBQg+6RVaWfeLBpDQlc4ZBI1v1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UUpaom51hJXjSvVhih0g0QjTelFX9vmGOrUDtVibyCc=; b=Ro7ieo86sYiYcLbf1RXUgM4h/GirzqGVpf7LJiRuMpeNxsEnffiQ5wzIpbEE7Vyvuxl6E5/5VfEXLgLUnSHoPOxbSfCY9XsHczRnPlHBGygjcQRx+nwnZ04FGfseJLzI5e/H9QOzV5M6b2XT0rojdpL7R0JaEMq5tqDQCak64j93xCLwZZ8/zBBOFcZCTiiJffNTGcTOf7HuaK0F8P9SA+nYlwe706zV/UsxMJhKX0ju4/buxG3O5iWer/oxqxRVJlz7xek41dhwYChgOTJZDjM749H25R5wF9s9ZEgRLJwi3DeZeivTqf6KEfze5Pn7ddP5+tx5h87phJe+BmWcxg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UUpaom51hJXjSvVhih0g0QjTelFX9vmGOrUDtVibyCc=; b=JUxlR4F+Af04eIgrqFDSf63MqAwuHbJ6HpAHWIAnM8BmuddJiXU1be3QTfX3pZgmhv0+8rUhrjW9LDW0Wu03+XngoJU3JFkvdduvRWSNMn0FaOiN6+Sp6T3dqWS5HORIRe+a6We9vD2V3ogz6kycEQW6N3oMXsgO7RvlALOevJBX/w52eK/1MmB6jxRXdDt87byxSxGdRNfK4XJNUBsdDjD5l/che6kBz7ebRzld7ItkTGBW1GJe5k3MrQgpxzOJcuBEBH3rgZM575jcwu/UjGS36mhFaMMz0B5Azxvsf/Z69XckD9WXe1Dr9IHTy5KJUXYKF40FMJffFEo4PtHTlw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from TYZPR06MB4045.apcprd06.prod.outlook.com (2603:1096:400:21::8) by PSAPR06MB3990.apcprd06.prod.outlook.com (2603:1096:301:39::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.23; Mon, 15 Jan 2024 06:27:05 +0000 Received: from TYZPR06MB4045.apcprd06.prod.outlook.com ([fe80::9925:32d7:c818:3c5]) by TYZPR06MB4045.apcprd06.prod.outlook.com ([fe80::9925:32d7:c818:3c5%7]) with mapi id 15.20.7181.022; Mon, 15 Jan 2024 06:27:05 +0000 Message-ID: Date: Mon, 15 Jan 2024 14:27:01 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH -next v6 0/2] Make memory reclamation measurable To: akpm@linux-foundation.org, rostedt@goodmis.org, mhiramat@kernel.org, mathieu.desnoyers@efficios.com Cc: linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-mm@kvack.org, opensource.kernel@vivo.com References: <20240105013607.2868-1-cuibixuan@vivo.com> From: Bixuan Cui In-Reply-To: <20240105013607.2868-1-cuibixuan@vivo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SI1PR02CA0018.apcprd02.prod.outlook.com (2603:1096:4:1f4::7) To TYZPR06MB4045.apcprd06.prod.outlook.com (2603:1096:400:21::8) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR06MB4045:EE_|PSAPR06MB3990:EE_ X-MS-Office365-Filtering-Correlation-Id: c6a87f56-712f-427d-fd24-08dc1592fe57 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XN4963a4Tq1l4viaukY6uysiyKp8jVlHjmIWh6GEBIRtArK+bDwSGU9/Tp/K/6fzM2c4O9RO18Mfmaz/LD/y2PK3SGKbIC+UjOhIA1jlE7Z8oCPNNHHENQNEfcLs7A0ofsK4nyGpGflLmzJpRJ9Ln9HOVX/jOSyCZHNVnFhIZ3utdFMIPBVBuRAy1yrSCk3jNzb33mYP5rdWL7AUVE8WEokrC4HzDBVUc2yOm4MoTnf3bpa6Z1scmHWPBjehriGHVnW6+Ie2fg3FpyQ8mF1p5xlrm4gNEfvEsgvpTgHgWN65x76yDsYASyIaNWmQ1ok09zI9TVRAc15ZavxJ9NDbUMOwfFEqexuOQz4KdmI37W0zPXPqPB/gR+9zpjyb452S58ut6F9Klpi6gZFDc6afUBfp2cNn0iDOPsq9LEEjifCguEEtEV/srF5XzfXZZ9E7g6+H9XbPBzrMry3lbT9gYTZVl+YM7xc1ptv0xbBBQ3mRSnPuCwmZ6/O4IAkYrpFmFwJ2fDGSSLMTDSgO8GceGtmSGxNT0hOEzBlkFu+B8YJUO7PZ1Cgs/aVu2vPfgVVObvSaiAhMRP5l3l5pps16TOUP9k1SAuPlamZ42uHdxhAztDv8C9XC20qzd2YUSPf6/Wha53ps/Ef9M5FaxkSQs8s2Y1f5TX+NUVg554/QKxwDiZXpfxW0p7uWP9qXUbVp X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR06MB4045.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(136003)(346002)(366004)(396003)(39850400004)(230922051799003)(451199024)(186009)(1800799012)(64100799003)(52116002)(6506007)(6512007)(6486002)(6666004)(478600001)(26005)(2616005)(107886003)(83380400001)(2906002)(41300700001)(5660300002)(66556008)(66476007)(316002)(8936002)(8676002)(4326008)(38350700005)(66946007)(31696002)(86362001)(36756003)(38100700002)(31686004)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-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dGOS9Y?= =?utf-8?B?L0JyZnk5dlplQkw0R2plSXFvV0l5QlZWUUFTMkFaV0VnLy9qaEZ5bW1sYjVI?= =?utf-8?B?Rzl5ZmtWK3Nsd2JSd3E1WGNiK2VLVnVqei9GandoVkUyZndrUlJlblM4L0d4?= =?utf-8?B?dENRSlB3K2J6K3g3b3p6aFRuYnJ4ZEtqd3A0TmIxWGtpaXBOUHRaeG8zZTBi?= =?utf-8?B?ZEVNKzBpbjRQbU4zakVwc0ZGZk9wMHNSc0FOSjYyU0dhdDIzNThXQjUvN1FL?= =?utf-8?B?T1gwVG5WdElCV0pqR1FzUERVeHV5OFptRjByclgxZ3NCNml0NTZsRFp0ZmJi?= =?utf-8?B?b2xxZVROZC9oVzlFZVV6WmUzVWZCMVo2azU2cDZEZDkzdGdGOEkwSkRvZ3RK?= =?utf-8?Q?uei7XnnuItCxg3Ar+Q5xJQGoI?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: c6a87f56-712f-427d-fd24-08dc1592fe57 X-MS-Exchange-CrossTenant-AuthSource: TYZPR06MB4045.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jan 2024 06:27:05.8394 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9IkNl3J6ActN+8av6+FFrul+Ucsalhzfp/Ou4lU+R7lUe/lsYRAK6yn47myJ/hkwu32QhvG5PRx56xH3PpIX1w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PSAPR06MB3990 ping~ 在 2024/1/5 9:36, Bixuan Cui 写道: > When the system memory is low, kswapd reclaims the memory. The key steps > of memory reclamation include > 1.shrink_lruvec > * shrink_active_list, moves folios from the active LRU to the inactive LRU > * shrink_inactive_list, shrink lru from inactive LRU list > 2.shrink_slab > * shrinker->count_objects(), calculates the freeable memory > * shrinker->scan_objects(), reclaims the slab memory > > The existing tracers in the vmscan are as follows: > > --do_try_to_free_pages > --shrink_zones > --trace_mm_vmscan_node_reclaim_begin (tracer) > --shrink_node > --shrink_node_memcgs > --trace_mm_vmscan_memcg_shrink_begin (tracer) > --shrink_lruvec > --shrink_list > --shrink_active_list > --trace_mm_vmscan_lru_shrink_active (tracer) > --shrink_inactive_list > --trace_mm_vmscan_lru_shrink_inactive (tracer) > --shrink_active_list > --shrink_slab > --do_shrink_slab > --shrinker->count_objects() > --trace_mm_shrink_slab_start (tracer) > --shrinker->scan_objects() > --trace_mm_shrink_slab_end (tracer) > --trace_mm_vmscan_memcg_shrink_end (tracer) > --trace_mm_vmscan_node_reclaim_end (tracer) > > If we get the duration and quantity of shrink lru and slab, > then we can measure the memory recycling, as follows > > Measuring memory reclamation with bpf: > LRU FILE: > CPU COMM ShrinkActive(us) ShrinkInactive(us) Reclaim(page) > 7 kswapd0 26 51 32 > 7 kswapd0 52 47 13 > SLAB: > CPU COMM OBJ_NAME Count_Dur(us) Freeable(page) Scan_Dur(us) Reclaim(page) > 1 kswapd0 super_cache_scan.cfi_jt 2 341 3225 128 > 7 kswapd0 super_cache_scan.cfi_jt 0 2247 8524 1024 > 7 kswapd0 super_cache_scan.cfi_jt 2367 0 0 0 > > For this, add the new tracer to shrink_active_list/shrink_inactive_list > and shrinker->count_objects(). > > Changes: > v6: * Add Reviewed-by from Steven Rostedt. > v5: * Use 'DECLARE_EVENT_CLASS(mm_vmscan_lru_shrink_start_template' to > replace 'RACE_EVENT(mm_vmscan_lru_shrink_inactive/active_start' > * Add the explanation for adding new shrink lru events into 'mm: vmscan: add new event to trace shrink lru' > v4: Add Reviewed-by and Changlog to every patch. > v3: Swap the positions of 'nid' and 'freeable' to prevent the hole in the trace event. > v2: Modify trace_mm_vmscan_lru_shrink_inactive() in evict_folios() at the same time to fix build error. > > cuibixuan (2): > mm: shrinker: add new event to trace shrink count > mm: vmscan: add new event to trace shrink lru > > include/trace/events/vmscan.h | 80 ++++++++++++++++++++++++++++++++++- > mm/shrinker.c | 4 ++ > mm/vmscan.c | 11 +++-- > 3 files changed, 90 insertions(+), 5 deletions(-) >