From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juri Lelli Subject: Re: [RFC PATCH 0/2] sched/cpuset: Fix DL BW accounting in case can_attach() fails Date: Thu, 23 Mar 2023 10:33:22 +0100 Message-ID: References: <20230322135959.1998790-1-dietmar.eggemann@arm.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679564008; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UvjK3G8PubwXqQtONySfIeDtd3meQ2XWO8kr4rkCdUw=; b=Zlw1Ha0OeDKk3ojOBCbTMc0J/NhGBylv+k2yRgK50nD+BJGInUxi4207Gu1mJf3s12qPZh Inqjqbw/GSJL+Ck4yjAiD9JJPzGFq+e9/iuVL1EeOvF4N0iU8GJD2l9U0jky+jxnPjYg1A JVTKvcvUhOYf29UpmZX41niy798HyGA= Content-Disposition: inline In-Reply-To: <20230322135959.1998790-1-dietmar.eggemann-5wv7dgnIgG8@public.gmane.org> List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dietmar Eggemann Cc: Ingo Molnar , Peter Zijlstra , Waiman Long , Tejun Heo , Zefan Li , Johannes Weiner , Hao Luo , Steven Rostedt , Vincent Guittot , Daniel Bristot de Oliveira , Luca Abeni , Tommaso Cucinotta , Qais Yousef , Wei Wang , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Hi, On 22/03/23 14:59, Dietmar Eggemann wrote: > I followed Longman's idea to add a `deadline task transfer count` into > cpuset and only update the `dl task count` in cpuset_attach(). > > Moreover, I switched from per-task DL BW request to a per-cpuset one. > This way we don't have to free per-task in case xxx_can_attach() fails. > > The DL BW freeing is handled in cpuset_cancel_attach() for the case > `multiple controllers and one of the non-cpuset can_attach() fails`. > > Only lightly tested on cgroup v1 with exclusive cpusets so far. This makes sense to me. Thanks for working on it! Guess I might incorporate these in my (RFC) series and re-post the whole lot? Best, Juri