From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=148.163.158.5 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796316141; b=TbdimxZ7BktkwWoTjYxtUMTG7+gn+DodeE0+3ZTnfj/sVxCKX71ZPvgHI5wqrS6Ybpk3 XenxHWKKggIB6wjln8PcK1aQzfOow7dBBExs/aQl9R3FQNaqinXTqjPIa44Ei+2anWixF f4iXQUuu8aiqKvqmamUtg7vKlBmPH0MznahRL6qytNy5nuE+zBCMMbzSCTUvXwavplY0Y c83DZZ6n1bljdZXw3gwJWMw4nssPoItmZ1UJqIkK2GIRXcfJBD1Du3dhgutNiHj7W/s0s CjWrOrtu55QUOD+UA1CMhVRE7IEFCl88NDotMVuPszz8UZMZDAv7EXVWeP+GqV64rFw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796316141; h=DMARC-Filter:Received:DKIM-Signature:Received:Received:Received: Received:Received:Received:Received:Date:From:To:Cc:Subject: Message-ID:Reply-To:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:X-TM-AS-GCONF:X-Proofpoint-Reinject: X-Proofpoint-Spam-Details-Enc:X-Authority-Analysis: X-Proofpoint-ORIG-GUID:X-Proofpoint-GUID:X-Proofpoint-Spam-Info: X-Proofpoint-Virus-Version:X-Proofpoint-Spam-Details; bh=sj4zmn5ZM54ZW937R0tBS1xHPddsViXaEQKOb9NhJqE=; b=GbbhxiHiwE7H2RV0XkvERttBUGYJHXjXeqvt5pRaleWjGQnyJxjDzyegRmVXbT1NIAnR qx+JVxOL6HlLKL1U9r0B8M68YzmljtIEhvRXh/0GauNIgMnz40eWDp0aXrk5KWFpp+r4C zEtEE+AWfIgp4QGLuqWaqqxQgo20YovbzWknDyPAuvgBcuLy5yP3/+AbxcPQe49JK6DCy Xp6rW0yl3/zrNqOCDpx+TTF4K87/NxSzXpKb7BTAldbm28ALqMZ8ys2g7yw9uwv/2b+JC 0KBJuC8XzkWFPByWnKdE5GQDVegm6OUdikwguEa74b3Nxiy+40z0DBAJPaBYRqTC46g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=Qjeu+eKO; arc=none smtp.remote-ip=148.163.158.5 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 57521606A32C for ; Thu, 3 Dec 2026 16:42:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 57521606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=Qjeu+eKO Received: from pps.filterd (m0353725.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B3G4grI2575008; Thu, 3 Dec 2026 16:41:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc :content-type:date:from:in-reply-to:message-id:mime-version :references:reply-to:subject:to; s=pp1; bh=sj4zmn5ZM54ZW937R0tBS 1xHPddsViXaEQKOb9NhJqE=; b=Qjeu+eKO9fz6jVDP48kjEXBV+Dj2zecHE9QV1 OPXFx2D1u0cLN4CpGdQno7ZX2LmN0+NASPeyuyoBsR2K+FpY+GpN6iFgsEs/TGy0 E8XynOSicddlZ7zXudm9H8bDr6SlOdfogAwlClKjgagvYhI53F1NlDYOxApWpV6C P6G3HO8mShhO1wKjtKLxLYDKaQ3nGW4lC7ioKR7YLzCcOTeXwa2o+Djc1cjwYYkJ WH+5BuCUUSpEkqHpMKXwNixX8g0Mgqc7OjsQSn6EE/hqvGO/lfP4LljvRXfpoYJX i7EI63uF7Iw53nMd+T5XoHzKMUaHODqkgBFdEfD0nmDEN7QNw== Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4j7ncj00h3-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 03 Dec 2026 16:41:57 +0000 (GMT) Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.18.1.11/8.18.1.11) with ESMTP id 6B3FpG9s2151058; Thu, 3 Dec 2026 16:41:57 GMT Received: from smtprelay05.wdc07v.mail.ibm.com ([172.16.1.72]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4jb2wa23dd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 03 Dec 2026 16:41:57 +0000 (GMT) Received: from smtpav02.dal12v.mail.ibm.com (smtpav02.dal12v.mail.ibm.com [10.241.53.101]) by smtprelay05.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 6B3GfuE223069228 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 3 Dec 2026 16:41:57 GMT Received: from smtpav02.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B41CA5805C; Thu, 3 Dec 2026 16:41:56 +0000 (GMT) Received: from smtpav02.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 60A575805F; Thu, 3 Dec 2026 16:41:52 +0000 (GMT) Received: from linux.ibm.com (unknown [9.126.150.29]) by smtpav02.dal12v.mail.ibm.com (Postfix) with SMTP; Thu, 3 Dec 2026 16:41:52 +0000 (GMT) Date: Thu, 3 Dec 2026 22:11:50 +0530 From: Srikar Dronamraju To: Ingo Molnar , Peter Zijlstra , Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , K Prateek Nayak Cc: LKML Subject: Re: [PATCH 1/3] sched/fair: Exclude delayed-dequeued tasks from sum_nr_running Message-ID: Reply-To: Srikar Dronamraju References: <20261120014946.1355234-5-srikar@linux.ibm.com> <20261120014946.1355234-6-srikar@linux.ibm.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20261120014946.1355234-6-srikar@linux.ibm.com> X-TM-AS-GCONF: 00 X-Proofpoint-Reinject: loops=2 maxloops=12 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjAzMDA2NiBTYWx0ZWRfX5N2CXyhLaX9d loPWUba/Tfh06WlWxki6UFsgsI4kHJhMb0RdWaEt/xnl2ecnRzXkvV7pwRjHfkfwYnMMg8kgX9S WvdQi9ZqNXJrrmyPyU7qJUztjtKlvfJRBNSGvj6nRPQggD8TBCv6cu7SsSVjrC5msOUx/PqAYLL MRHzbTT/EBQR/sZw2Z5/xfDCKVpEvzyh0cbJngZFAG4iHgJ9auuAPQNcflvBi4suSWGDO96/iIC n8cxMplaFToM5UsN11wbGADM8G7DdLO7lHFBGYdtV7gc59o2KnBXaYBx0Iq1u5NfvjvXNY7px4C pYFInbgsweP8HTrKh6se7R7NkcG089wEdungbVo3uJqJCXh/LwwhU0+lIHHT29PHeIHrOwPzZBV /stVJmF+URkDWchBXPrXXe7oU1AeTc4/FMdzhHS9Y8GELIa1x2S8oO+ZUzvuQergpQFa9wwgGzK u4dV41XhzK5B2vJQL+A== X-Authority-Analysis: v=2.4 cv=Tt5zFzXh c=1 sm=1 tr=0 ts=6b119bd6 cx=c_pps a=GFwsV6G8L6GxiO2Y/PsHdQ==:117 a=GFwsV6G8L6GxiO2Y/PsHdQ==:17 a=8nJEP1OIZ-IA:10 a=pUM-KoujPXoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22 a=V8glGbnc2Ofi9Qvn3v5h:22 a=VnNF1IyMAAAA:8 a=tewEQgLqaU0bsYPWvhYA:9 a=wPNLvfGTeEIA:10 X-Proofpoint-ORIG-GUID: 00PsyLiyWLGgDfAz6cRE5HkZe4abNWMP X-Proofpoint-GUID: zIxpNuKs_jrzDD5agl7hEf2BN9DJTesh X-Proofpoint-Spam-Info: AW1haW4tMjYxMjAzMDA2NiBTYWx0ZWRfX44QcVmht3FrQ B9n5ynphylgEKDcmdaEqDdK/CwGC+OeDNyh7Q2IR/bOIHyvBrbbty5+VdxPFXEcW7jYf8HsD8HM +wtzcv0i+9HLhIo8cO3b68WV8FfzsFI= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-03_04,2026-12-03_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 spamscore=0 bulkscore=0 clxscore=1015 adultscore=0 malwarescore=0 impostorscore=0 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612030066 * Srikar Dronamraju [2026-11-20 07:19:48]: Hi Ingo, Peter > Delayed dequeue keeps a sleeping task on the CFS runqueue until its > accumulated lag is repaid. While such tasks remain accounted in > rq->nr_running, they are no longer runnable and are not eligible to > consume CPU time. > > update_sg_lb_stats() currently uses rq->nr_running when computing > sum_nr_running. As a result, delayed-dequeued tasks contribute to group > load statistics even though they are effectively sleeping. This can > inflate the apparent load of a group and influence load balancing > decisions. > > Other metrics collected by update_sg_lb_stats(), such as group_runnable > and h_nr_runnable, already focus on runnable work. Counting delayed > entities in sum_nr_running makes it inconsistent with the rest of the > load-balancing statistics. > > Exclude cfs_h_nr_delayed() tasks from sum_nr_running so that load > balancing decisions are based on runnable tasks rather than entities > waiting to complete delayed dequeue accounting. > > Signed-off-by: Srikar Dronamraju > --- Are there any comments, updates that I need to fix or are there any objections to the patches? -- Thanks and Regards Srikar Dronamraju