Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4613245pxb; Tue, 22 Feb 2022 02:35:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJx//f2kAhfCrnkfnBTzjuSkTUc4AjkPnuupJKsh7r9drx8ucbzwCMwLcVjx9gJefT6O5pYY X-Received: by 2002:a17:902:7e87:b0:14f:cd2e:6db6 with SMTP id z7-20020a1709027e8700b0014fcd2e6db6mr5577761pla.163.1645526145031; Tue, 22 Feb 2022 02:35:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645526145; cv=none; d=google.com; s=arc-20160816; b=k3XrC7o0w7wDiP9rsu2blEFGHHoOmq0IZUuh2pNZvcfFY7oRvDXoMe3+2gPDq3jlcq UvvzyfW/SX8CsM6ClGJAYv1jKbziDvVenhY437wPQovRZ7/NVkVCYY0LwoWvsYG/Sd1d igFRhfdJRZayrvIAWxXW5V7cePreP5RI8GV2d6o+nMW750IXjcq1IgHsvmUAQjMbqzzN CX2Ltwlu58JctvyFwC8n0M02JOQgRNoqbq5TUPfWEl/sX+uwL7GooaTMV04UdGWlYGg2 Z3/RhhZpwyg406c3/2/LtQMrewvntuY2fzTATxczhIXBdxhlqKDCSaSPFCW4zW+PAr/H BBQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1u3jUZshsCHYWOqEEg55BqJNULqA7pOf0257kQ/7AxI=; b=AyNpOjtNCOpYpWYtzyFaFheBwGPQABqob1WtP7zV6zKlLEJwO09nLSMebjoLyLYSR4 xsopW2CkZvdRsYfbQk/hTofIkHbVwphCSzho8Ax/q87x5XHdVfpNYT80PhsFwWEWB32X j4jUXYq7PJfkD6jtYKdwC3Wd8s1990GJtxrawzceDwWknXZR7il+ejFsp7yu36c2Tp48 X9/UhCdMGkgZfUf6kRLFVGkjs6qV9a+aPx9FcobzcJFHLJyxYGSYb8YcLFTMDTL8QJu8 7G1JQ9+/VnJkwpFfbcW5wNYseXXSmLBtNrJaGF45XwSIm1rrTBx7XEuqrtsAz/wGW9Wc FzBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CqexYHz+; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x62si8224842pfx.289.2022.02.22.02.35.31; Tue, 22 Feb 2022 02:35:45 -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=@kernel.org header.s=k20201202 header.b=CqexYHz+; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229752AbiBVJxh (ORCPT + 99 others); Tue, 22 Feb 2022 04:53:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbiBVJxg (ORCPT ); Tue, 22 Feb 2022 04:53:36 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7462D10B8; Tue, 22 Feb 2022 01:53:10 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6FE9EB8187E; Tue, 22 Feb 2022 09:53:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B471AC340E8; Tue, 22 Feb 2022 09:53:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1645523588; bh=dcLPqQqzFfwhFwJ9Kn/RubyJyNfK8yswScv0W6K2bpc=; h=From:To:Cc:Subject:Date:In-Reply-To:From; b=CqexYHz+BllH8K7Fc97pdhI+aS+BB4l4VG/ur/7rHWWW82c5F5KntSVsGV6h7oRrI WhAMIW1hnkD5gai7s9k6PfuMgElbaf2s5ELrUgQZW/TxmLc5tdJ5O3cPufdr2ppBNH LjJ5lfLwvnQ6mDVZzGLcX2H288n9FxCvC51hjnhvs7PKiGNgQAvw2KJ5uIXZ2Yfnk6 XHg+GIMuzKeODORR4nZycBCzc8du9e9aoOPQanBb1QVF1doPEOzHgoJf1dXNtKYBX5 VyDu7z+V/hLgtJPxxXqr48MXzB2ALbYVlK/GVsdYc6n7/CgrTRTs7IcBPPdnTMU0ad T469gBrvdu45A== From: SeongJae Park To: Jonghyeon Kim Cc: akpm@linux-foundation.org, 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: Re: [RFC PATCH v1 0/3] Rebase DAMON_RECALIM for NUMA system Date: Tue, 22 Feb 2022 09:53:02 +0000 Message-Id: <20220222095302.7859-1-sj@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220218102611.31895-1-tome01@ajou.ac.kr> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Hello Jonghyeon, On Fri, 18 Feb 2022 19:26:08 +0900 Jonghyeon Kim wrote: > > 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. The high level concept of this patchset looks good to me. Nevertheless, maybe there is some rooms for improvement. I left some comments on patches. Thanks, SJ > > 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