From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795083642; b=v+KJFHqrkm25cifUJ0SximrxFMu/kWvxdw2RvIGQm4zoMzu8F+pmNm5EZ6CEFTW1R11q rTBchveqnuYD+B2Sft8rEgDICC4d/Lj97xuCQJ8h0CD+qJ5KRyC09dYAh2kPvoLi1dbiF l6IFnbmJpP5eWXgUyyDwK4RyfiiTkK88IO6Kp0d3cHT3u5m4N55HrxwyReMu2/svXBtVJ Rz0IsgCxFx5kpX7PxZo5K6yl1C5dhN8EGdauLfix97WBwjniAITx8o3qbQfyBKbA49/Xl DepoloQLAt/7ssbN1XXarKcqTxSBuMXah/NE3Phgt1DbYhDmsrggQvpzBITEu8uX6PQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795083642; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received: X-Received:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=BhMldp/vd/3xPeYieMpRCN6PVD+GGJcYfaPHMFtkt6g=; b=jSXr1cN4s59UAYzQGOSo2Rs2dq2qalgbUnk1N+i9H/UnQ6ANm4m0D/oqpG+UGTc9x5Gy SCauOoNEReq/N70awPOk3ydSp5LiP2pubUggX+TJhXKnceZ5Yd4CugmmYhabQSsruqc02 lX9DH1vLQmAozEiC+JZhmrx5o54JySLBA6GgEgj5x+2BIQ/xZUNulvGdAF19sRuh2SZ+L SEx+cj0q4G3Y3segQXoNKD8HC7FwO9cRlmVXbe1+ZyF+ZHz8NF8HjRO5SeSKiZAdZ13PN J1DnyWAiMyNd6hbDoZtvsKCMsuRMkyEekfWLpEbtSAdZPPrGa8mujOOeEvYz04PbQrQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ZJjKcIAP; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=f1hmI4Sc; arc=none smtp.remote-ip=170.10.129.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 6114B606A325 for ; Thu, 19 Nov 2026 10:20:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6114B606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=ZJjKcIAP; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=f1hmI4Sc DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795083641; 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=BhMldp/vd/3xPeYieMpRCN6PVD+GGJcYfaPHMFtkt6g=; b=ZJjKcIAPDD/yQ65jf0mFAYZwb/LjWSOdF+4hzLUZOfGETFmP9M/KxxYhW4HaIFTAJF8AUL pt89I0sqUCzwk7qK1Yyfv5pa0qnb93Q25zciKKx+5yAH9Qxyr8Ih/6AzEIPmyH5lWA2lNu p9bx62r2EKmtVA9gPE+yOOlw7fVfr30= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-59-Cv5BWppCMXO-vrg2F3GYng-1; Thu, 19 Nov 2026 05:20:39 -0500 X-MC-Unique: Cv5BWppCMXO-vrg2F3GYng-1 X-Mimecast-MFC-AGG-ID: Cv5BWppCMXO-vrg2F3GYng_1795083639 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-4a1fdde384cso11956615e9.3 for ; Thu, 19 Nov 2026 02:20:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1795083639; x=1795688439; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=BhMldp/vd/3xPeYieMpRCN6PVD+GGJcYfaPHMFtkt6g=; b=f1hmI4ScajTFU6GbpU8sXup0ewKM/uV8y6MP2vb6N3uIQwjA0IW5IlaK1TZdTrb8xj T1RpV/D22ixGyGfh0q2h0MCNQyhkt3A6o+3WiLfL+ELiDjQC8Mx0MKsTdGfqukJKUNYI YvlSxXHP0gcfX2tJgf1LhUNQSMkJjQvvOQ5wgZCuoIIi549FXtcZ1IC1DBIsD7sVnYgq oZdgyYxUv8Khl8wl5WB73NZk6cptbCssyiUrKoNbpF1qaXgxMHg2RTPKlFFcV3JpgtgD gALxJU4E+5PPeOpycwb82seH0sgznn84UV5ExW4HuTCsokPSCIeW3ZzrPLRJCkItzS5l sD1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795083639; x=1795688439; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=BhMldp/vd/3xPeYieMpRCN6PVD+GGJcYfaPHMFtkt6g=; b=WHLtIvYFBu053aYpyiufpMDtiC8579aUTzR3xZh+rlq08rQiip6Zn4Czo6rfy/pstl Ry2vBBzZLqL6jvffNDixUyQYR3tqPsY/hzfWwgDA90MzhZerr+yiHTaqgRJjJ5kEFy+J JmUHXOsKp4bsYNGsxAGKfo9/kjn50Y54VmRDTyUd27KSqSfTC1pebAg3+/zU0Ay16PDp zFEBmdtUEg4pVykt2Peru3vvr9/1Z64iQkDr0QJlwJRraHVaqPo4ceINiHvMYeF9JAK3 JPzK4/hF48sppJTKMCReH2C9SsKVZ0fMcj9oN4fagTfzLr4VwHVTA6L6Uvr4KFxyMUSF u0Lw== X-Forwarded-Encrypted: i=1; AL+hErEgCBwM/XSKOzAn4TYdi+oUZXs/T0jNWOSIyo/wG/7TtynPlrWRE8ffw/+2g5EeQZ7NEJqIRIZUomFxt10=@vger.kernel.org X-Gm-Message-State: APuU4Z8+mD9JEJzuQ9EJb8jx6e7Ac9RPEpsg9coJpNY3yBfQMelQ8ojY GipLJ/X3sINfADJ4j0eenALI66JFTyNDpKtYNBUi/g/jCnYT8uVTMDhAGOyvtbV5107u84cQApG f6AqtK8c6qea09iyy6ewf1NEKZCFnQY/pw8IYR9zSdQRJKfAR4rO1FOSSubCSJyWVAg== X-Gm-Gg: AYBFou0C/b7iU/KO7Py+qt5b2wqnQDnF1ZC3Do/WN32IzAYb8/4xTBFgcjURzd9xJ+d D8KLVxq2zY4QPq4iB7GcK9S/CY2uO5/kjQMHAdAxrhk0yaYa5PqmF9g+8vEkMNUe4wUFusAW21m Vf6B/8/12Nb/h+ySu37drxcQpwDXVLeiMrkuLH07mB1gWfgr07kBIlw7yUp88U6yFFB8RNAzEiG C9LyXBLQgw2DLUWjY3mmO9P5LyswvkoZCqdXLMBKy5sQRAJhM/tKwA8Ii4QiCjrQJnWrZA8MeC6 ctrPND5gvmj2GAPwWpHtQnSfeM1JYdn6VxwnH9OODclhphMcfuadQQR+HU+skyDbd5zW0zuYftQ v+3HSf76+FGbGuAdsRWr/KVPVMNHiMdTCrSlxHr3AbsmKmN3C9JfJwoAngnHzpk/jgUU6j2KhK8 kLrY0= X-Received: by 2002:a05:600c:4e45:b0:4bb:6814:738c with SMTP id 5b1f17b1804b1-4bb7da267bamr95705405e9.22.1795083638695; Thu, 19 Nov 2026 02:20:38 -0800 (PST) X-Received: by 2002:a05:600c:4e45:b0:4bb:6814:738c with SMTP id 5b1f17b1804b1-4bb7da267bamr95704865e9.22.1795083638277; Thu, 19 Nov 2026 02:20:38 -0800 (PST) Received: from jlelli-thinkpadt14gen4.remote.csb ([151.29.158.90]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb853b2437sm37226425e9.13.2026.11.19.02.20.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2026 02:20:37 -0800 (PST) Date: Thu, 19 Nov 2026 11:20:34 +0100 From: Juri Lelli To: Mathieu Desnoyers Cc: peterz@infradead.org, mingo@redhat.com, vincent.guittot@linaro.org, linux-kernel@vger.kernel.org, tglx@kernel.org, will@kernel.org, boqun@kernel.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, vschneid@redhat.com, kprateek.nayak@amd.com, luca.abeni@santannapisa.it, mathieu.poirier@linaro.org, longman@redhat.com, ridong.chen@linux.dev, tj@kernel.org, hannes@cmpxchg.org, mkoutny@suse.com, shuah@kernel.org, bigeasy@linutronix.de, clrkwllms@kernel.org, parri.andrea@gmail.com, m.szyprowski@samsung.com, kayracizmeci@gmail.com, weihengqiuu@gmail.com, cgroups@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-rt-devel@lists.linux.dev Subject: Re: [PATCH v2 00/16] sched/deadline: first bandwidth accounting fixes and selftests Message-ID: References: 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=us-ascii Content-Disposition: inline In-Reply-To: Hello, On 18/11/26 16:24, Mathieu Desnoyers wrote: > Hi Ingo, Juri, > > This series fixes 13 bugs of SCHED_DEADLINE. Then it shows the deadline > bandwidth of each runqueue in sched_debug, and adds two selftests. The > fixes come first, so that stable can take patches 1 to 13. Thanks for splitting this out. I ran v2 in 8-CPU guests with lockdep and proxy exec on. deadline_switch_test passes 5/5 (sysrq cases included), and deadline_bw_test passes 45/46 (move_cancelled skips without RT_GROUP_SCHED). There were no splats. Reverting patch 10 brings back asleep_round_trip, stopped_switched_out and overrun_caught, as claimed. cgroup's test_cpuset_prs.sh also passes, as on rc2. I also covered two of the "not tested" items: - cgroup v1 cpusets (two exclusive cpusets, root load balancing off): admission, affinity, refused moves and hotplug all behave as on v2. On both v1 and v2, moving a task A -> B -> A leaves its bandwidth in B, so A is under-counted once the task dies. The leak is on rc2 too and the full v7 fixes it, so it is not a regression. - sched_ext: the in-tree sched_ext selftests pass on v2, total_bw included (dsp_local_on needs IKCONFIG_PROC for its __kconfig extern). With scx_simple loaded, deadline_switch_test passes. The server cases of deadline_bw_test fail, because they configure fair_server, which is detached while ext is enabled. Pointed at ext_server, server_params, server_rebuilds, server_states and server_reclaim pass. hotplug_server still fails there, as scx_simple gets ejected when the CPU goes offline (I haven't dug further). Could the test pick the server that is active? ... > Patch 10 clears the parameters of a task that leaves the class asleep. > On v7.4-rc2, such a task kept them. That hid a bug of the rtmutex chain > walk Please move this into the changelog of patch 10 itself, as the cover won't end up in git. IIUC, the owner then sits in the patch 8 bail-out with a deadline of "now" until it unlocks. Other deadline tasks keep their bandwidth, but lose latency, and RT/fair tasks on that CPU get possibly starved. Doesn't your separate "Fix an overflow of the 0-lag time with long periods" also fits here, right before patch 10, which adds a caller of that computation? Patch 5: yes, keep my Reviewed-by on the version with the cpu_active() check. Thanks! Juri