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 50858B640; Wed, 13 Aug 2025 18:03:41 +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=1755108221; cv=none; b=mgaPhj8VAPU7KKU8THRMhX2p8+Yr+kV1uyXkAQl3Ycf1SOGM48M+kTurlP2rM3Up4UIhDEQH/uXxOMGzt4WtHRbf/rgaDbPHKwVSuPZszcsnyHN+7SeRhDJodFFcCS+hVfao7+0zKKJXlIsJDqVwDBgJW0XOwiXDDfgTbs9Sukg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755108221; c=relaxed/simple; bh=mxBe9IZW17EWG3soqFkqLWOPvQ9A5xBcmo8kGlCtxDM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=q2052YdqRfu5VrNPsOprD5MOM2pept2E8RYt3PjHOauNMAq0pL5g28Rb4d4EKqZJSYVRH1rQmYHeBvjE6hVlhCvbj6ldZdtF9STzSxKaA/gu9BgfCdpH+J+gXJjaxFIU14Bo+3rqR16mohvhGgiDUU0LrZ9cofoxGYt5a/SMmQM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YgZqVbaP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YgZqVbaP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EED5DC4CEEB; Wed, 13 Aug 2025 18:03:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755108221; bh=mxBe9IZW17EWG3soqFkqLWOPvQ9A5xBcmo8kGlCtxDM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YgZqVbaPkJd4dniV6okJBx5xLrjRW6Nf9S1FYJbycm9dTQd1ycvHK6+kmO2rIKnIG fL/p5pq3Aqc5QRf470boWhZV7uBym8vwGg4KotZ8tYK7BA56V3dwVxFU3sczONp9C7 jsP5GYyzrdiLfxfQeUQ9d7Svs68k26O0g8FdQowl8LaxiXSHhEfWnlI+D9dcFM2VLX rdmTPJjyI+O30X9nNvHn/ysdaFa9eBaPwn94dLJNyBSiH0OOYv0Bd1l2NIJiwOZGob NK8knKosCgCZcpHMwvHgVwqVqxAcOEEh2AXA2dIgSKnpBLGlL/4XfC+7/xWoV8as8e zjgHNra0uuvMg== Date: Wed, 13 Aug 2025 08:03:39 -1000 From: Tejun Heo To: Michal =?iso-8859-1?Q?Koutn=FD?= Cc: Daniel Sedlak , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Jonathan Corbet , Neal Cardwell , Kuniyuki Iwashima , David Ahern , Andrew Morton , Shakeel Butt , Yosry Ahmed , linux-mm@kvack.org, netdev@vger.kernel.org, Johannes Weiner , Michal Hocko , Roman Gushchin , Muchun Song , cgroups@vger.kernel.org, Matyas Hurtik Subject: Re: [PATCH v4] memcg: expose socket memory pressure in a cgroup Message-ID: References: <20250805064429.77876-1-daniel.sedlak@cdn77.com> Precedence: bulk X-Mailing-List: cgroups@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Hello, On Wed, Aug 13, 2025 at 02:03:28PM +0200, Michal Koutný wrote: ... > One more point to clarify -- should the value include throttling from > ancestors or not. (I think both are fine but) this semantic should also > be described in the docs. I.e. current proposal is > value = sum_children + self > and if you're see that C's value is 0, it doesn't mean its sockets > weren't subject of throttling. It just means you need to check also > values in C ancestors. Does that work? I was more thinking that it would account for all throttled durations, but it's true that we only count locally originating events for e.g. memory.events::low or pids.events::max. Hmm... I'm unsure. So, for events, I think local sources make sense as it's tracking what limits are triggering where. However, I'm not sure that translates well to throttle duration which is closer to pressure metrics than event counters. We don't distinguish the sources of contention when presenting pressure metrics after all. Thanks. -- tejun