From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f174.google.com (mail-dy1-f174.google.com [74.125.82.174]) (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 B72813451A7 for ; Thu, 28 May 2026 21:53:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780005230; cv=none; b=tX+99X9C3dNQicHlsNKXrv+y0ByVuYF47TirRkPt9J5Aie5HFSwQq0VA91TPABl4PuptJkz988Wh3i9J8wmU2RLVItC1OFEvgqinj6Av6fyidcu9x5MGd8dfv9F747/w+NHdxObth8k30GssYqGOFrm2IMJF4dOYAB+fDXFF1lw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780005230; c=relaxed/simple; bh=it94xe7vzof331Y3aQuMHTvJnUF0NSlo0h2SInGn/m4=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=lvjRX9YA0V6TNjak604EpDb/96rUNBnhY21IW0feYh9UgL1/r7vtXb1WPVVrEJvqJWO6keT19ZJjgHhkFonkvFgt9GJupO9Oq/6cU9LY0mVWiRMK5lB+yDVT5EERArxUfVgBXK3nxGNVzv9Gongshu/ID1arAjdsWaIi9AsPgoQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=Zx894Cjm; arc=none smtp.client-ip=74.125.82.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Zx894Cjm" Received: by mail-dy1-f174.google.com with SMTP id 5a478bee46e88-2f0ad52830cso17178028eec.1 for ; Thu, 28 May 2026 14:53:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1780005228; x=1780610028; darn=vger.kernel.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=it94xe7vzof331Y3aQuMHTvJnUF0NSlo0h2SInGn/m4=; b=Zx894CjmuxUJd18fSvkXABy9bYYvVZ/33HncpGdjd8S2c5D/AaKd+rukq+Vf8j1Ozs Dq4WG1HjCLoHOG3mw0DpJM3SKXLp4IeUM+kqXcgW7SXeNGtshbMo9JEubb7GAxvgGvPw LxSrb2Q1gg2skijytRj1Zyg15QLIyOe1f6w9ih4jS4qQdgWumvk6/57LJncWBSqtcgEx IrXYehIiJcMGa+t6AJDXGdLyfgSKQ8jRRc9MdFYmgi2dt2eaIWx6ifWDLCo/HQXqcZEu ja/sGPVjYR8WHbcTINJj0MwZd1btVqMxH2F0wEF3y+t/pUgBcUFH7AeIdPbT+Jj0x4bS u+xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780005228; x=1780610028; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=it94xe7vzof331Y3aQuMHTvJnUF0NSlo0h2SInGn/m4=; b=KgLCYffXPugwu+JnlzNqT4THrBZMyVwkzgLdMrdNrw+sR4wrFBvPyxDo7pBAj8cx+6 MS/3RXD5oYGdkr4Gbxr1PXkvutnUu0chzOTM4d3gLopqvbqEUXYe5QvJZjlgvD62Mcgp IwHRY8ct6HcGRgwxzCblRVQ9BiQD4p5wbBEdVBQtbtqEp6jVR9ydQk0gRCRSMSoPeMt6 4wV62unhbz62VJTXb1E2c7DQm1vhYXjsscj2E2DiH0ZgakNVEZA0efCayukUOArLsPdu z/zyl5S9bRISshPouimbZ8JWAuxQjJ2Z7E21csaCgfC7dH8swcCAM5EZu4YntVKMhk5+ bPUw== X-Forwarded-Encrypted: i=1; AFNElJ8biaCU/8Nan1Se8NlBopJzVj2ftsqHqDLsc/aklf9bpYutejQBdqp5SnLVOCA0EACzMSQLGVZc7r/AYms=@vger.kernel.org X-Gm-Message-State: AOJu0YxUQlMEf9/UwNoi76gk0uQREUgqkzyeAoRgLln0WrYvdRrARJi/ cVmkZWesIKapbvFJITlqnir5XZ0wT3YeAjZZ5HjP+7QR7LpykE+vVzL5NjWBByfNDvWm2PxxXHT vsyRYaKxXscI= X-Gm-Gg: Acq92OEJAPW6I9+JxvdlHGNdjcZXvFMR/GzxV81HwbvoTNkyB67HWnOk8hqw8ioBdvZ y3xjrPKDKbkUdvTcwZSPPqNrWh8KfOMezvJTRyjzqcS+UnQP27fVhBUdKLS9nguZ3G1XSAB3aoK hysNQV5xwYJ4d63uPlt9aHvgX35tqIfEPmw3QSUTgqTS1mPD88oI5hmEyvIWaqnJZ6zb2dR0VC6 vOCY1I/rqLuIIsL2OzmacqID3GIGw+6QWMaO3eokRArmhXwWr6aDvZ/IOHn+QhYuXE/RRgD+Ira Hgkg0cq5BiTk0jP3PD3ixryDDmDi8l4Ge4W+QSWQBN+rdgVinydRxxIvzwqLkpFo5vg2UIPE/kv zKs83AR5CHoUxRXCQXCB5WERHvqva5LDw/WD9RHu9DKNrFcgNbOraOZK6bZE/Yu6hBYFMuSygmx EDfrji7gI2VIALvqPys2sug6d940lKoccG4ZuKMdXbIg== X-Received: by 2002:a05:7301:1686:b0:304:db3a:3919 with SMTP id 5a478bee46e88-304ead93dcbmr163479eec.6.1780005227333; Thu, 28 May 2026 14:53:47 -0700 (PDT) Received: from bsegall27.localhost ([98.45.141.147]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-304eb575ef7sm125695eec.0.2026.05.28.14.53.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 May 2026 14:53:46 -0700 (PDT) From: Benjamin Segall To: K Prateek Nayak Cc: Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Mel Gorman , Valentin Schneider , Aaron Lu , Josh Don , Subject: Re: [PATCH 2/5] sched/fair: Use throttled_csd_list for local unthrottle In-Reply-To: <20260528094830.13291-3-kprateek.nayak@amd.com> (K. Prateek Nayak's message of "Thu, 28 May 2026 09:48:27 +0000") References: <20260528094830.13291-1-kprateek.nayak@amd.com> <20260528094830.13291-3-kprateek.nayak@amd.com> Date: Thu, 28 May 2026 14:53:44 -0700 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain K Prateek Nayak writes: > When distribute_cfs_runtime() encounters a local cfs_rq, it adds it to a > local list and unthrottles it at the end, when it is done unthrottling > other cfs_rq(s) on cfs_b->throttled_cfs_rq until the bandwidth runs out. > > Instead of using a local list, reuse the local CPU's > rq->throttled_csd_list and the __cfsb_csd_unthrottle() path for > unthrottle. > > If this is the first cfs_rq to be queued on the "throttled_csd_list", it > prevents the need for a remote CPUs to interrupt this local CPU if they > themselves are performing async unthrottle. > > If this is not the first cfs_rq on the list, there is an async unthrottle > operation pending on this local CPU and the unthrottle can be batched > together. > > No functional changes intended. Reviewed-By: Benjamin Segall