From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 EE4E326CE39; Wed, 24 Jun 2026 18:52:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782327169; cv=none; b=tS6oqrAxKd3reAOg81dfT93fnEWEfvBX4aRCT6c7/L9Csbr/MeJIbIiGT4fsS50LUGMZa4CwDTT/D6hmLoP2tpbNJPnqjOAuafy3Z62j/Y7XxkiVrWD1urF5TLOJGgi4eV4lbkBfq/CnQMzZXB2ZbRCYU0oQqgQUMB08nA6djFA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782327169; c=relaxed/simple; bh=HZjqd0Y7OSQvpJcJ2bp9igewa30PUcr5IHn+FAh0a1E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OYjrjY4V/EGWKgzbJu+QUYsMPoon4eaq3Agtcs6UhwG0/80UBqBR8SC4Zxm8aNCbMDm/Ga74CjcYUUurkc08S5fNJJpfC3LDeSAZmJwKu9NZT6uf/tDK2luWXdp+yG1b+KI7xGUgvzuNocPEgxnIEOpzUl4HvPXSEVhSKXCjtX0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mYZnXoy9; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mYZnXoy9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 53B881F000E9; Wed, 24 Jun 2026 18:52:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1782327168; bh=D7hkJteoSNs8rS8VBpeystfizFe6bdWuHjQ285p+IEE=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=mYZnXoy9/kEr1Csqc8vSItQjEXA/Xa2JMYS1/w+q+osQ2ycPTCHhBmPA151h3Ml/T nPRri5JwXErUOM5mbDide4yewYAtZ+X8mU1tEXedjiueoeOR24VdRc9c8pki8+zZa3 EXa9J82JFFSQXFUupv4jWk/+Oqo1BVTSMNNVeEE2NklQLsBKMTScQ5qqy6nvYdTLjR qfT2QlMRvWLeYH3bpdbWxV8L0G/Y5wOukgExuH6X7VoiWeFzRN0XTEjfsvTPzVSxD8 IMeX9nSca1ZKfW+/IvNjIJc+9c7Ri9tdld1PTJgvqiwmPjWWGDbUuQrxKqWNektPRL MfD3vQNXC7uNw== Date: Wed, 24 Jun 2026 08:52:47 -1000 From: Tejun Heo To: Hongfu Li Cc: hannes@cmpxchg.org, mkoutny@suse.com, corbet@lwn.net, skhan@linuxfoundation.org, dev@lankhorst.se, mripard@kernel.org, natalie.vock@gmx.de, cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH 1/2] cgroup/dmem: add per-region event counters Message-ID: References: <20260624031107.667253-1-lihongfu@kylinos.cn> <20260624031107.667253-2-lihongfu@kylinos.cn> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260624031107.667253-2-lihongfu@kylinos.cn> On Wed, Jun 24, 2026 at 11:11:06AM +0800, Hongfu Li wrote: > Add dmem.events to report hierarchical low/max event counts per DMEM > region. Increment counters on dmem.max allocation failures and > dmem.low protection events. The file is available for non-root cgroups > only. Please don't double space in descs or comments. Also, maybe it's obvious but it'd help if you list why and how this is useful. Why do we want to add this? > + dmem.events > + A read-only file that reports the number of times each cgroup > + has hit its configured memory limits. The format lists each > + region on a single line, followed by the event counters:: > + > + drm/0000:03:00.0/vram0 low 0 max 3 > + drm/0000:03:00.0/stolen low 0 max 0 This isn't a supported file format. Please read the documentation on allowed formats. Thanks. -- tejun