Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1318063rdb; Fri, 16 Feb 2024 11:40:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWa1fEZ45iBL0QzPNg2MGDGw8vfAM22J8Jb/7spUX+YqbW3LqWy/PuIq8Kwbz+loR3pIQxL8NqH1zPoWjizAZxzmw/wNW0bjRxqmWaajg== X-Google-Smtp-Source: AGHT+IH8Do+KR0Tr5/HIGGfsxGZ0b4roxfgINDl/BQSUV5Jz4MpEjopt6avIkOVOAllvJpxCgcOG X-Received: by 2002:a17:906:b210:b0:a3e:12cc:644f with SMTP id p16-20020a170906b21000b00a3e12cc644fmr196205ejz.13.1708112449049; Fri, 16 Feb 2024 11:40:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708112449; cv=pass; d=google.com; s=arc-20160816; b=u+oacMwtwczVEKre5tKsfZzEITrOGelZ/eiyYAVUhwEqusOOs2RvLmh6oLF+eIeFit KChRZzPcjR284jPJNFD2bd5pxuyT6In2T/ZnBqImRxmAheUbDA7dytAVDs5Zq73wvIOd OcK4p904FOmau8j2X6AgprpsvPD3l+Yf6B5OTSHaJM3tEzAQnD/R0w4za4J7ZTTNWWHP RLsgbj17yNAeLsHM1d8Gp9vb6u9VswUQ4KA70Z7xp5hNyGryWICUiCYqh6rt3Ozev+Gz tH17hfrpabYqnWA0A//MURGNxPwtFSrpq5vKG6KZa+jIsSUNLKtfGpkaNKKwsTNY7rUa twvw== 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=U5wC9G3bo6Oo6yLc8LDtHVPfR9RowBbsJuMSlayyDgA=; fh=ODV1RAwja3ZwOE22aR3/QhHw65I0O69uhHzyVgu9tKw=; b=PjMOYzuI0G1PYxqcufG5IviHZnfOjwpBMnV+WhKCYQQPtjKcTQ3dmBHNDRF1426nPA /hl9T+CzFUy9KVpac3z9ttINkqN5i1s8K8nOm9jpAc+mp0DkHLs1pAQFw3kFsX2iRwh4 WlvjbuMSD8XrFcnHfLT40srpRWDzUwXhld/WZhMI/B7QD9Du0HSpE3vO79/GuwFpVmoJ +fTy4B3dxIQAbsdPknhKJGr0OTymvitKv1eDrDXE7scHu/YRudwvt0sQgf+T6CzSOM69 e9mcYkUYcKO7Z2xHy0sMou1OfmfA/iM/bbrXw1nf1wevERw++mF+TVJSW8R4GbL9UdjV GWCA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kVej5bwl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-69250-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69250-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bq24-20020a170906d0d800b00a3d40c25357si211415ejb.34.2024.02.16.11.40.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 11:40:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69250-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kVej5bwl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-69250-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69250-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id BCADD1F23B57 for ; Fri, 16 Feb 2024 19:40:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E083138489; Fri, 16 Feb 2024 19:40:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kVej5bwl" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 584EF1369AA; Fri, 16 Feb 2024 19:40:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708112430; cv=none; b=U0LmtdFajfK9PdzidLNgj9pEkqannRyjwkcVhuJ5gWJT0eVklCZGwPMIa30IrV2sfYGou1vGMSK2JX54PY06GfRpA+/wEn1RQThxp1kccIPy1oou3Me34Nu8u5w3bP8FvmFWbJyIdKjYu5DQ5zkoiL13r+pDVN+NixT8VI1YL1U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708112430; c=relaxed/simple; bh=KIYFFZlklNJB3GcWj6tjjHQ4i09E6AICjsErgAI/kHs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=s4B7Ii9QDjlWy5e/iYak7iOkOpFmC2Q46oP6ziA9cuKnqTSyYJo2PuHV8/WbbgCfknMrGlIfgX5sliXcJ7caIYTtE3DTV21yIX30kEqzy7kR7P0vVZasiaA1tzcyp8NfhGCIvqORQwb+Kqz9qRAGU5mjM7xfqNSALBV87SFH0eM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kVej5bwl; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 562A6C433F1; Fri, 16 Feb 2024 19:40:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708112429; bh=KIYFFZlklNJB3GcWj6tjjHQ4i09E6AICjsErgAI/kHs=; h=From:To:Cc:Subject:Date:From; b=kVej5bwlwvTjKN8bv1jBXdDFINYZYqRwCXuvFIIAMP9Erd/haiqJJyIoNvCOJv7/W G3smFU0REZuYhPxBKlVcGHGGutjXzBiN0GqrrZk3JzDr8GqRhJrY8FPnDQKsjllrgd vp/Yjm9jlZ6g7Q9iC+2YTC6ZS7V2BIOTo4zVxYEKtEw4zy01/RHB7QZ/nNUhbyAOwB lffB1AdUG8NSK1vsC+1CLD2y4UUnhx9FdKdtallDZOOf8qZCMvIog+BmFGMLPGPhfO ZEVqxjqPl/Zd1CzpYtj0PCYKUYfRDXMWh0YAT9LAmqqLlKGBIQ7m8Mn1vM+CWqWeuk YMJ2FTeqh+pxA== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , damon@lists.linux.dev, linux-mm@kvack.org, stable@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] mm/damon: fix quota status loss due to online tunings Date: Fri, 16 Feb 2024 11:40:23 -0800 Message-Id: <20240216194025.9207-1-sj@kernel.org> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit DAMON_RECLAIM and DAMON_LRU_SORT is not preserving internal quota status when applying new user parameters, and hence could cause temporal quota accuracy degradation. Fix it by preserving the status. SeongJae Park (2): mm/damon/reclaim: fix quota stauts loss due to online tunings mm/damon/lru_sort: fix quota status loss due to online tunings mm/damon/lru_sort.c | 43 ++++++++++++++++++++++++++++++++++++------- mm/damon/reclaim.c | 18 +++++++++++++++++- 2 files changed, 53 insertions(+), 8 deletions(-) base-commit: 0f8cac70960349ba21deb424bd41bc4f4362c113 -- 2.39.2