Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2490957lqo; Mon, 20 May 2024 07:31:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVwSYZw9x8x9EWf7gK6v3nfrXirYq6XUdtcuAbEtvdhGiUM56q8uN4s7QiKCr3bcn2AXj+c4jOyDOJgryMG/+1qEA5WZtUi4+xQiPONKQ== X-Google-Smtp-Source: AGHT+IHcypcxqPo1G6xXYCULlUZqQ6Y2VXfr5SjD5KXKZ2w8j94YvLgF/jMe+H5iR7THlppBkvSP X-Received: by 2002:a05:6214:5881:b0:6a0:6676:f1c8 with SMTP id 6a1803df08f44-6a16824d2f4mr299699096d6.59.1716215466632; Mon, 20 May 2024 07:31:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716215466; cv=pass; d=google.com; s=arc-20160816; b=IF4boMg3tYEEp9qSxHkdFcrL5hOEbMlespo9QDJKNWmbXCHpgHQ3dzyRs//kPsatZI B6RPdA+YgT1zqE/HDVf2zp4YzAfqZzxdczoarFmBTs3CURjgR8uBEYqLw5ecPtqgltxW O0mGV7yjxb1czmZjuFNC4ITU4NtZcSLfx/Y02bg8VY5rLt0uvev4NX9CKeKM/o9S9RDh I4bV9S9arQjdz+HYyZtCyymnSTFvF4FasKtd2QaDhyBEJ9f6rUa/kLYj/eDEQEjcekPl 53KUudjk1WPPd7FpWDBEEW1gEihJoAWqldy3s+/1sbEiEpHreErr0o9ldvauW258Ahlo 7dNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=O6/FTo8DypMSA2iS27jq2soJuWf60KYz1PensegxJFM=; fh=7YHYDHSuN8uqUqmTAuMxhi3R7UPQXkb8PJDdnNVAo2Y=; b=pdd8rN7mlE1X8aZYNRnWAjEwiVNN6CC7RlGaGdvaCk83oT4GOAxBdXYD7ooM554du3 7B2lZfgJhB5FOUeLNgim+wmtftXjX2ZMmh73tp+1/INbk9CSCcViSnn5i8PHNRcimwTr 55vlU0mJdpSdaBVP5x/SUfKNVqIFT1NTEx+HgKwa3H8eU0pOeK2SXERdenlxB2iVzR5I yAGCUhKT6Z5T7rOAserWmCWfIKKIOzeZwdGJNprOPBLwmHAoMxljnIfDjRk1fs78wXiD bUru0Tgb5BdufeuOoyVZtrAeZjc/aLSwFV6UBxLEyr6VtxkxJ0tbGphLAGfsQvSPg5s8 lTpw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ajou.ac.kr header.s=google header.b=b6KenT8M; arc=pass (i=1 spf=pass spfdomain=ajou.ac.kr dkim=pass dkdomain=ajou.ac.kr dmarc=pass fromdomain=ajou.ac.kr); spf=pass (google.com: domain of linux-kernel+bounces-183838-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183838-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=ajou.ac.kr Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6a9c0083ac3si35181926d6.254.2024.05.20.07.31.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 07:31:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183838-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ajou.ac.kr header.s=google header.b=b6KenT8M; arc=pass (i=1 spf=pass spfdomain=ajou.ac.kr dkim=pass dkdomain=ajou.ac.kr dmarc=pass fromdomain=ajou.ac.kr); spf=pass (google.com: domain of linux-kernel+bounces-183838-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183838-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=ajou.ac.kr 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 51F7C1C20F3C for ; Mon, 20 May 2024 14:31:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A4D2F136994; Mon, 20 May 2024 14:31:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ajou.ac.kr header.i=@ajou.ac.kr header.b="b6KenT8M" Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AA3DB1DDEA for ; Mon, 20 May 2024 14:30:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716215460; cv=none; b=b19oPlhx44kkvB6ZqZIDLnA5f+RGOy0IHom2LwNEmnjWFXkKWQstkOAak1JJvK8+Ow15OdOwQqmgNIyRZsYJ6/tHvKL4qMBwYl7vu951BddT/d9JU4SHsahOABF6fyoUYkZQ/YopEA+T3vg4bHDsMTkefGCS/mu9IDdLtr4RJDk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716215460; c=relaxed/simple; bh=On9o3LYnuqveZn6sVFXBJrcrNEr4DuCBwisKbjYduqA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=fb7uYljam/R7ea1kvip+LM2SfXsrOdG3pYBK2C9/QCmhDPEcd2PFCxaddb7isJw2y6iAYau2rwsyYH6zzSF/U5JMUDpmqz3l0WrtkFGbGMwDGxZxbCuj9xHX91AEIO6bD79/N6gDgQCDZVLtSFLTOZ68/2mLJjbnVDVE+uVp6FY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ajou.ac.kr; spf=pass smtp.mailfrom=ajou.ac.kr; dkim=pass (1024-bit key) header.d=ajou.ac.kr header.i=@ajou.ac.kr header.b=b6KenT8M; arc=none smtp.client-ip=209.85.210.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=ajou.ac.kr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ajou.ac.kr Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-6f44d2b3130so1234865b3a.2 for ; Mon, 20 May 2024 07:30:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ajou.ac.kr; s=google; t=1716215457; x=1716820257; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=O6/FTo8DypMSA2iS27jq2soJuWf60KYz1PensegxJFM=; b=b6KenT8MqKhSPeJ6PXptmQSS3KuXhAD321R8kcL0/FA/7b29dfB9n+nR8YMQTIF/EI 24qQmuOwYHD5B4x3HvPrsR+tyN3JQFma+9zQD2cBxaxZZINso0WHqPnrqQEYMbCLX1bU X1oKrrPm4mvFIhe1cPQGeg8EWNhGU9geW/KTs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716215457; x=1716820257; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=O6/FTo8DypMSA2iS27jq2soJuWf60KYz1PensegxJFM=; b=Fk+sXNjsq0wwh+eAsAlUzMXkwXZmO7nINWzEeblXFegYJvyiMQWETr9d5IlAePwnLk X0EWAjBy1aCrIrzSXVNp0qqJT2dN97EwLOxgGbwJOPhSQ/Dze6qlO9kPTnoMyBdJ746H rKlO74o3YGkv+Yn7B+cxPaOEjAkpkyReyf1R1ILWaHTOmq/7Q891/Wf7Wo6DtAifGJ3q Wj7INrMGxk6ModmGYQI96xO7QyKGmBRdVxe7kfWshr6LenIGUrLGA+4ujyj2tVceHHk1 p8XVJl139vM8yBajEDtNu9ybesfZG55okhZbM4EHx7GKHHB/u9+zi6K6Fj2xCWyAHfF5 aEhQ== X-Forwarded-Encrypted: i=1; AJvYcCVu8qXx8vhAxhtgCdQUpIEDEM6sTvjtiMqy6XprJnBsoeIfTyLTMAF0dx1g4IgGQ4zTqzLEmODjSitA2YB8NX4u8/f2nbp3ePPG08SF X-Gm-Message-State: AOJu0YyWyxJGsW/5x4g7MNHhAidqu02iE3nUGJ+76aFeDMSNvJvX0pYJ rTEmusEFyV0veLZ0zOpaCmm6bvGZmLkMdTZRxY323bc1VITlg6CHxe5kFUinDVWSFXtEWcTk52K 7Thc= X-Received: by 2002:a05:6a00:1901:b0:6ec:cec1:8fe3 with SMTP id d2e1a72fcca58-6f4e02ac5a3mr34376599b3a.11.1716215456568; Mon, 20 May 2024 07:30:56 -0700 (PDT) Received: from swarm07.ajou.ac.kr ([210.107.197.31]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f4d2aa017dsm19714531b3a.96.2024.05.20.07.30.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 07:30:56 -0700 (PDT) From: Jonghyeon Kim To: SeongJae Park , damon@lists.linux.dev, linux-mm@kvack.org Cc: Andrew Morton , linux-kernel@vger.kernel.org, Jonghyeon Kim Subject: [RFC PATCH v2 0/3] Add NUMA-aware DAMOS watermarks Date: Mon, 20 May 2024 14:30:35 +0000 Message-Id: <20240520143038.189061-1-tome01@ajou.ac.kr> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Current DAMOS schemes are not considered with multiple NUMA memory nodes. For example, If we want to proactively reclaim memory of a one NUMA node, DAMON_RECLAIM has to wake up kdamond before kswapd does reclaim memory. However, since the DAMON watermarks are based on not a one NUMA memory node but total system free memory, kdamond is not waked up before invoking memory reclamation from kswapd of the target node. These patches allow for DAMON to select monitoring target either total memory or a specific NUMA memory node. --- Changes from RFC PATCH v1 (https://lore.kernel.org/all/20220218102611.31895-1-tome01@ajou.ac.kr) - Add new metric type for NUMA node, DAMOS_WMARK_NODE_FREE_MEM_RATE - Drop commit about damon_start() - Support DAMON_LRU_SORT Jonghyeon Kim (3): mm/damon: Add new metric type and target node for watermark mm/damon: add module parameters for NUMA system mm/damon: add NUMA-awareness to DAMON modules include/linux/damon.h | 11 +++++++++-- mm/damon/core.c | 11 ++++++++--- mm/damon/lru_sort.c | 14 ++++++++++++++ mm/damon/modules-common.h | 4 +++- mm/damon/reclaim.c | 14 ++++++++++++++ mm/damon/sysfs-schemes.c | 35 +++++++++++++++++++++++++++++++++-- 6 files changed, 81 insertions(+), 8 deletions(-) -- 2.34.1