From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dl1-f47.google.com (mail-dl1-f47.google.com [74.125.82.47]) (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 BF91438B131 for ; Thu, 21 May 2026 11:28:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779362907; cv=none; b=FrPKBSt7xM3NaO5B+Q4+PTjFvBqe5iDneRxZsrknQCTNHCyYLu9+ao/Ry57/cO+7tz9WXpkxYf2qr7qRHmcH6QVbIt1s7oipjs2MqiFlNjg8ZNVuhUeQVuu608S4omSKH/BjhVDGgbAMkglHkIJZ6/5iyxva+WpiCuGqq+gI0+A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779362907; c=relaxed/simple; bh=crnxHJfYWDJRmDbz2xey9GHVdmqGXJEqSVWyMF5jw8E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UB6ga3kt0rMgvTegb0Z15FGI98cvmmELWDcvI2rgN6qvnDsBxuXhH6r+Na/SxUIg0/E8RbpfdvazgE+IXd6uxENtDiKizh4wTSBxGjuYA2itfpnMzeo5N5qEpvoJkCFjhtSE28PSQFGIilsk7PYckM9L607X7EzchLar6i3YYzA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FjwPiVXI; arc=none smtp.client-ip=74.125.82.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FjwPiVXI" Received: by mail-dl1-f47.google.com with SMTP id a92af1059eb24-1357c851a48so6770937c88.1 for ; Thu, 21 May 2026 04:28:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779362904; x=1779967704; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MOrMn42JIi4qVYWDtDVlJUx7fmd1ReUe1tYeo+4md7U=; b=FjwPiVXIeUvD0SdM0LNT6HukyJRVnBHWMzs8S+iQWWkWruvvsu+K64+bVVisF2+Q1D z4zSqvoXmTgIshZRNuG2gvtT/QtHC4dZno2xGTsQuf+bBdcrsNRJvtUXQr+mpcmUf24P 9yDQJrTg0tma1x7lUn/SCOoy9+cZJ0qcUYCyMvEl1YBJTesFO36V7CDHH6ga2/tXwPpE 6PXrDCXVIcQjYuGVwjeiJV6nHgsr4Y1kFf0YPrVA2kf+lN9YqxoG4BI+OvloNHMygU0o h06X4C0mYFmrIbbF6TiM4m7qSZlm6H0gz+Pj1xNOozacQCfrKzhdUOJTEmT9506vEfWN KzAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779362904; x=1779967704; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=MOrMn42JIi4qVYWDtDVlJUx7fmd1ReUe1tYeo+4md7U=; b=Jiii+DPQPU3jcRPUfT2V/84N6+emJHNIeU85iL8Lj7fKMyl1UUcA8i67PiGG1sG4Tc yrcJ7pwv7Z2WEHHxJV0WiYf3dR8o0+SIrmthKMiXJALkBd/4Hucve118AG3exXcKvOC2 Bfxnu/YdBebgpIfa9nn5Py0etEhO7Q2qGi4N+AGpeSMuHnOLH8MW8g1CVDQaJ9SExSCq M1YtxSlpbPM2S8dE5MLzshoyBhEosijID+PJ1GKoo0ahv1wAUXDPYmqyqZ6sATMjyNWZ 79ykZ3JfHSAhL5JAUfbo+GkSmX7FQc8FtVavj37NH8sL2uCsMFbstsKWcCtdmuT1ENbC 9mWQ== X-Forwarded-Encrypted: i=1; AFNElJ87J56GGykKDjsi5Pq9mv+e075qYM+RLi+ACbvz8QaDVsqSRz/V1uT3wlYKEEFwC1EB75DpFGRu8xf2z1s=@vger.kernel.org X-Gm-Message-State: AOJu0YxhhX+qrGkXwvuzd140e/XJsxRD9ABk1B891V0Txjy3fgVLFwuN +YTIAgpqMp6W4sdqIwPUD7e8LwkWTTiNz+ugL9YW616DnRBfyVrffXBFuUxjxg== X-Gm-Gg: Acq92OHOfSVxq+LK5La6iJ1eB/D0RBkRPE4YjNPnw46dlMKIid1M+IGg+SN4ALGUXuG ZBKRiKOg1PCXegCwffjHCvIWDOTkZp3BwKgirMqzhAu9fBHFprfVkYp4we1czHXAmdJB0qjWXTB d6h1EnDPxkg/mBXgfBdgXTQ0y07NHWHEB2+9YmPEbM4WS2eyrIuyWI6Nrch76f9T6CetFnlIQeY d1vljNoN1hM7qJBZ+MDHGfWhyR5rsSUbCN9uelppG+FPg6Hi0AMQNn2eAhXcko2tw0iYvCInqeZ bFNHBdM/6XVrCCNOc/erk8PJQyOKK94tAf2wjvmddeC3AhROcSc9KVyG/+1l192kWtOqbKf7Ny9 mAgthYMgpza0W+LiqssHXtDcqEwDeMBm8YR4yp6MIwKoL6oWHEOOKe62qUtGdVKOKd3ozpGlOuR 6a3oPVFKi9f8O+1dMQ/1wGp4sqRZjKxJwsXlZYROTGEQ== X-Received: by 2002:a05:7022:384b:b0:134:fea9:f106 with SMTP id a92af1059eb24-13632c34f37mr1180557c88.34.1779362904342; Thu, 21 May 2026 04:28:24 -0700 (PDT) Received: from wujing.localdomain ([74.48.213.230]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-13652ac2afasm27839c88.14.2026.05.21.04.28.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 May 2026 04:28:24 -0700 (PDT) From: Qiliang Yuan To: dev@lankhorst.se Cc: cgroups@vger.kernel.org, dri-devel@lists.freedesktop.org, hannes@cmpxchg.org, linux-kernel@vger.kernel.org, mkoutny@suse.com, mripard@kernel.org, natalie.vock@gmx.de, tj@kernel.org Subject: Re: [PATCH] cgroup/dmem: implement dmem.high soft limit and throttling Date: Thu, 21 May 2026 19:28:19 +0800 Message-ID: <20260521112819.62182-1-realwujing@gmail.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <63878874-39d2-43d5-9fc3-68addf9ebbdd@lankhorst.se> References: <63878874-39d2-43d5-9fc3-68addf9ebbdd@lankhorst.se> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hello Maarten, On Thu, May 21, 2026 at 09:45 AM Maarten Lankhorst wrote: > It's the approach I'm more worried about. I believe that it's > better if we punish exceeding their high limit by preferentially > evicting those. > > It would make eviction run in 3 passes on the affected cgroup tree: > - Round 1: Clients above their 'high' limit > - Round 2: Clients above their 'low/min' limits > - Round 3: Clients at or below their 'low' limit Thank you for this concrete suggestion. This 3-pass eviction model is exactly what's needed to make the dmem soft limit effective. It addresses the core problem of providing a viable "recovery action" when the limit is reached. By integrating these thresholds directly into the TTM/dmem eviction weight calculation, we can achieve a more natural over-subscription model. I will rework the series for v2 to incorporate this hierarchy-aware eviction logic. Kind regards, ~Qiliang