Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1203639pxb; Fri, 18 Feb 2022 02:54:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjvDbmmk8xrSeYkmwS8HEgqJUqtqgc78ZUA7M6HHz90csLuYEddLaBSM1CUDkQnYfaz01R X-Received: by 2002:a17:90a:a087:b0:1b9:157f:4cc1 with SMTP id r7-20020a17090aa08700b001b9157f4cc1mr7797421pjp.117.1645181691576; Fri, 18 Feb 2022 02:54:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645181691; cv=none; d=google.com; s=arc-20160816; b=c9xMGNSPLfzfzVciySh7MHeetLkjPcjyeA1Zsuas4niDbMreJYoi3XtfwMozvT45NV eN6+Gu7cHakYizjsYseJ7WwOCPIBxcPgw0ObI3LIc5pG61+iu5mH6jCSCpgV8P9JGT0Z scqvlthtWvFrnoiYzueIHYXo4fDi5M2xvUsrCvELTsTxmFoTeO9+NsCiAzHEOqvd2cWV aYmLrG+tuY7MU2Ww0KLfF4Q8Rnff3mpKvn2mezyoxAKg3n+6XO9WTf+azM7UJct4ZpkY VXFqDUiCsbodXtxsbf6vlv4xpVQZgwXqP4OX8HmGlTqfEBrhMbKW5jZe9LgK/JErGLy2 sV9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=6n56412XkU3cVeHo6hCtYyL1En8oEnrT0LI9PHtRQKk=; b=KFYQVEWf+DrANoAZlY156wRMSwMQkwMp0PTe7KWr+aHJ6ZDJAqIVmZSoKUt9aqGF29 E/u0w3hnzZckaYPVygOHwKGLaW9qAuGYKR0L7E30wEr6F0p5DFo5a8ZlY03C9nVz/ZX7 cLSjHekdcZHRkPmWVdWjF+aZ77wEoU6SOckYRzwGQtqHCKC+pUD6vOiff4bJvTt8Gw2H 7EHK8Urpzqk1eJf3TDqL4UqtnYneFrKJSF6Z3v07giO5OUGBO3yEDEMxEGEKQBeUTLK/ /LB7pccFuCj0dB/Zp7FXrNm/l8BWeAheUOQ/1ZEzZ6QDnaa9ZtCOFNFZpv4ma4+DWNq5 UWGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ajou.ac.kr header.s=google header.b=qZeAPcCy; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=ajou.ac.kr Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t124si11020797pgc.667.2022.02.18.02.54.36; Fri, 18 Feb 2022 02:54:51 -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; dkim=pass header.i=@ajou.ac.kr header.s=google header.b=qZeAPcCy; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=ajou.ac.kr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231982AbiBRK1B (ORCPT + 99 others); Fri, 18 Feb 2022 05:27:01 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230343AbiBRK1A (ORCPT ); Fri, 18 Feb 2022 05:27:00 -0500 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C8F8389E for ; Fri, 18 Feb 2022 02:26:42 -0800 (PST) Received: by mail-pj1-x1029.google.com with SMTP id m7so8216619pjk.0 for ; Fri, 18 Feb 2022 02:26:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ajou.ac.kr; s=google; h=from:to:cc:subject:date:message-id; bh=6n56412XkU3cVeHo6hCtYyL1En8oEnrT0LI9PHtRQKk=; b=qZeAPcCyvBIo+T+9s+LRJtCfoZjxGRuKEhvu5IUL/6YC+70/BETeTNFTYNzlW4BZ0y 16vTX9BbC7msF3IAUMzbeZ0CUtR4VpPsWtOZPMjE7Gd7GQ83y8ASnu2F3PkmR8zodPDf n0e+qfSi/NZ3/C5XVXY+0nhXu/J4zaqLGb3JQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=6n56412XkU3cVeHo6hCtYyL1En8oEnrT0LI9PHtRQKk=; b=6BsSbWHeqm2g6AXzMSjeHjsVGSjCagKoQynjI+n28wq5shSdrEsbNVrZu3oXtwM+fy ThTl4ynBtLysXIQuvTRxwRX/wXa4TxKKQV7Qw63RaP7FmEhBzffmCk587gD+PAe5wdL8 oZg768b7jLWMoB5jsXbODmvhzYhMYytXk7+V7sOrqCmDUoSuyl/eGfwVbZL10XfpS3sm 3xwL/5Fe/U0dmLWkplbGRRP8NJgvEWRWwQQREeugSqXPCDb6jnuzLAWaTTM/f3TXqeyi WqtVD1Is0d7AsLhgBxjL5HmdDlVWjC1WHRLfFX1BNa/nq8EOtbXJKHzjhxcUj/QcwLf/ zkSQ== X-Gm-Message-State: AOAM532U0MedikobckioNOylVnCU8SpxJVAF5zIdPxG9vRTjSc1ZbNOr IW95Fwjo1S+cN5XkOCwbbrMrEQ== X-Received: by 2002:a17:902:d708:b0:14d:cf6a:a9a3 with SMTP id w8-20020a170902d70800b0014dcf6aa9a3mr7013845ply.118.1645180001784; Fri, 18 Feb 2022 02:26:41 -0800 (PST) Received: from localhost.localdomain ([210.107.197.32]) by smtp.googlemail.com with ESMTPSA id k13sm2767696pfc.176.2022.02.18.02.26.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Feb 2022 02:26:41 -0800 (PST) From: Jonghyeon Kim To: akpm@linux-foundation.org Cc: Jonghyeon Kim , Jonathan.Cameron@Huawei.com, amit@kernel.org, benh@kernel.crashing.org, corbet@lwn.net, david@redhat.com, dwmw@amazon.com, elver@google.com, foersleo@amazon.de, gthelen@google.com, markubo@amazon.de, rientjes@google.com, shakeelb@google.com, shuah@kernel.org, linux-damon@amazon.com, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH v1 0/3] Rebase DAMON_RECALIM for NUMA system Date: Fri, 18 Feb 2022 19:26:08 +0900 Message-Id: <20220218102611.31895-1-tome01@ajou.ac.kr> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Current DAMON_RECALIM is not compatible with the NUMA memory system. To proactively reclaim memory, DAMON_RECLAIM kernel thread(kdamond) has to wake up before kswapd does reclaim memory. However, the current watermark for proactive reclamation is based on entire system free memory. So, though the one memory node is fully used, kdamond is not waked up. These patches clarify watermarks of DAMOS and enable monitoring per NUMA node proactive reclamation on DAMON_RECLAIM. Jonghyeon Kim (3): mm/damon: Rebase damos watermarks for NUMA systems mm/damon/core: Add damon_start_one() mm/damon/reclaim: Add per NUMA node proactive reclamation by DAMON_RECLAIM. include/linux/damon.h | 3 + mm/damon/core.c | 39 +++++++++-- mm/damon/reclaim.c | 147 ++++++++++++++++++++++++++++++------------ 3 files changed, 140 insertions(+), 49 deletions(-) -- 2.17.1