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=1796058951; b=jY6mr8sJV7C98v3PiY4rWC+HAZfOcqRfD2dQlqyqOMwJ908lkrwukTDMurMMinV2qX3L Wp9GXEM5e8d9rtB3ZT7bDvTfrpmqLS7Kx38BQIAhhzE4D2bQ34VN0KyRaXFag5DU173Sk VGMbD0TOybQOzGnzY+biJI5RO+7rFlViAMN0lzRZa0gAR13Sdhf+LfJVLMLVpMktRDm70 0fe/ApjSq5hxc2HezxJkozu2lQlwXXRBbH4z0F9p37bwO/0zqf8RU4iZFnGu6ge3ft6i2 ubgKdDW0oyY6YjxVrBbeiRj8aDzCg+DObKgx53haSzRhgAiX6iuLsv6hZwOSszDQamQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796058951; 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=CwY0tUux9J8uUgguELbMNT19WodwIIkGgSofnn0j9d8=; b=itMZyr+/y1+Z/Xqs/vBeTa2HpM7cs+b10V9UQ/LD2PCskeynYHGPfVUobCwY+nVljUnh uWtfO8kDs8t73xXZOMqtf/GbHORdyZ2QCmCDErROviPal2gnYCuaV1e8tyK+wBNdK5l9X Fc26dXcud631Oj2pUJADFlrL0+6LXtQQyRzHqR21Shx1nS7FhRit/Ws9TO+FRtOJQWCAT VWQmGcJSGSM1mx5g2C5SoPtLyZn1pPslt1EnlQzccLrp5imnkJFC7qmaZ0ZSz6OoYOdcS zdVzi2c81pSLBcJG2ZAJyrU7MMnbzg7siiS/I3lRPZkNfCsJUXRxXTskavduSeHup8A== 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=ekEnzYpa; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=Bj23HJel; 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 68C96606A336 for ; Mon, 30 Nov 2026 17:15:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 68C96606A336 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=ekEnzYpa; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=google header.b=Bj23HJel DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1796058950; 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=CwY0tUux9J8uUgguELbMNT19WodwIIkGgSofnn0j9d8=; b=ekEnzYpaMS7X8RgAB5iFl7oyPlOhdMo6cEHiki/zewpSnbj0NVMv1nRTTqxlqF/gJG/DnV rklc/dQtpJimmcBThkgIec7hrd2zFSZZEObDbGSCRhWR63nVX/gP5oy7a/bPjbGPfs6TLc uXXBO5nLtIeUSW2yFAF1FSgxMuWAudE= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-49-VDb4aKqQN8qp45jShdH7tQ-1; Mon, 30 Nov 2026 17:15:47 +0000 X-MC-Unique: VDb4aKqQN8qp45jShdH7tQ-1 X-Mimecast-MFC-AGG-ID: VDb4aKqQN8qp45jShdH7tQ_1796058946 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-4a359c7f47bso88600895e9.2 for ; Mon, 30 Nov 2026 09:15:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1796058946; x=1796663746; 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=CwY0tUux9J8uUgguELbMNT19WodwIIkGgSofnn0j9d8=; b=Bj23HJelmjkQ4wx+kkkuujXQSPxoEHjU8Q3eQNF5ZotBhXaL2rHi4Dp+bZ4bQ7tnLd NLfiR/MwROM3ZJISc4XRBw0805srtFnKGMET3juRl6GnwJTeIdOMCaXxkcwyqobkvbA/ WLihgap/J6BfEls47WP6BJap1mqIhYKGi+zvl/ADfnzTNTdPwva547R1W6B9cyrQO60f 0bxESNboKrgl7EvCZAaEqSoUrZLookRRtaPGp9spqvNmoUoC2PKBAwXPhjamWPzHxY/G s7J+c6Dyf+P4YzxbYy/zuguNJBwhxv0RkXvbVpzZRLuuiWMogsw+CWKzBy4oyL/5psgx 1gRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796058946; x=1796663746; 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=CwY0tUux9J8uUgguELbMNT19WodwIIkGgSofnn0j9d8=; b=2Xo+8ytZnmyhvWH2OPA5oV+MvghIpMJe11xSuakix21XUzSNtBKFh9IviA4g/d9/Ld ayaDMqScV4wNOdzrfbVTTU4cVU1opTRhmVjjRYJk9ZZV+PS3rIQ9pWE/faQsG8muhd/1 x6609B/7N7OBJ+U7t/OsaUMzxFZ3H1Q1DHKENINnPG2Ocg3ddsYwUMuOjM+o0O8WKkJ6 ToDCHNsnAUGKUoRn3pktMvO6tm4jvfCU7z9KGpDqcECqRY3Xe1KnlizVJyJickPSpgqw LoMBRf3RWoXkllV6/RFJwTu7uP/CNuPZuyc4ukmRZ/8cnDNIx8h303/8Q2J2ap3GTp+G FrJw== X-Forwarded-Encrypted: i=1; AL+hErHQ7b47eGN0TeUB2xqMCqXe5t8X7BzyT4x4zAH3rxcZL0xjyVaYcdZoXtHR4iwSizL1qCH2bpVa@vger.kernel.org X-Gm-Message-State: APuU4Z9B6wD+E9XZZIzcC97ft9D7mIsoU3H7UHVMOzBbaKeQkJnBkiQx 1tvKa/a8gJtMhom+tqfqWa/ZFIayWjBRadsFwybHoAxWXK2rUWfOykOZxCM0idg83adsCg3iKDv x0E6ZCrI8rLQdgPLNlOgj5aPvtjWTVAEbZj5owSPiZq3wNuONhLW5sj8NfrM= X-Gm-Gg: AZFdTZcDcH9n7USmBcMSTwUxsnLcFG9R9mLQM8j2Z0PrsKMoSOoODY62o+15t6JUQvS mRds3DKM0r/w9owuGL93DxnQu7V6SDMEDyeJxzqUlQrrN88cVfE+W6bpy3wokvV4amePfU5SyiZ /OUY9EE8uRBrlz3okEcwzNPvww3asgzbXzWwPOiHpMZwcdTaS3kNdX41XB8bXopJcgvURAEnjfv JcMQjqLgHZu971gjO+UTaNwBQ72LyULpJphX8tKgv2zqedH8M9pc0RjtEbi+X3MCS53guzAlaAe NF3nv9oiLNlneorsOa5Uhc2J9BJiA0V71fyba/j74sLPM42+zbRTwBrqVMPfCNagnclDfCQqV+p 7HdbR7nPHfVNrWXSH8IP4lIDTT1YQVO3WDbqeUIOxRxRV2lElzt8Z6zND4seroFR7ZZdO8Lrdip Uv/qUh X-Received: by 2002:a05:600c:34c9:b0:4a3:5d64:df91 with SMTP id 5b1f17b1804b1-4bb88810d28mr755571185e9.18.1796058945703; Mon, 30 Nov 2026 09:15:45 -0800 (PST) X-Received: by 2002:a05:600c:34c9:b0:4a3:5d64:df91 with SMTP id 5b1f17b1804b1-4bb88810d28mr755570185e9.18.1796058945225; Mon, 30 Nov 2026 09:15:45 -0800 (PST) Received: from jlelli-thinkpadt14gen4.remote.csb ([151.29.146.153]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb853b216esm1009835245e9.12.2026.11.30.09.15.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 09:15:44 -0800 (PST) Date: Mon, 30 Nov 2026 18:15:42 +0100 From: Juri Lelli To: Mathieu Desnoyers Cc: peterz@infradead.org, mingo@redhat.com, vincent.guittot@linaro.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, tommaso.cucinotta@gmail.com, 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, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-rt-devel@lists.linux.dev Subject: Re: [PATCH v12 00/43] sched/deadline: bandwidth accounting fixes and selftests Message-ID: References: X-Mailing-List: cgroups@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 27/11/26 09:35, Mathieu Desnoyers wrote: > Hi Ingo, Juri, > > This series fixes bugs of SCHED_DEADLINE in 35 patches. It applies on > top of the first series [1], with its updated patch 10 [2]. This is > v12. The changes since v11 are at the end. Thanks for the respin, and for the quick turnaround on 23 and 27! To set expectations: I have roughly a week's worth of work left before the holiday break :)), and I'll probably spend it on what looks highest priority, the crash and hang fixes (23, 27, and 20 with them) plus 25 and 26 for the first series. I'm not sure I'll get to the rest before January, so feel free to keep iterating, but expect slower (or no :P) feedback from me until then. Having the pressing fixes at the top of the next version, as you plan for 23 and 27, already helps a lot! Some high level impressions on the rest, FWIW. The rtmutex/PI part makes me a bit nervous. Beyond the memory safety and hang fixes, it grows DEADLINE PI quite a bit (held boosts, donor periods, an irq_work calling rt_mutex_setprio() from hard irq context), while proxy execution is meant to replace this code. I'd rather keep changes there to what is needed for correctness and weigh the rest against that, and it will need Peter's and Thomas' eyes anyway. 22 also looks like an old RT priority bug that might be worth sending out separately? On the accounting side, I've been playing with a different approach: keep the bandwidth of each task in a per-CPU sum (on the CPU recorded with it), so that a rebuild only sums the CPUs of each root domain. It visits no tasks, keeps departed tasks for free, and seems to remove a good part of the departed list, dl_bw_gen and attach bookkeeping. It's still WIP; I'll try to post it as an RFC, most likely in January, so that we can compare, if you are up for it? ... > Ingo, Juri, a question on patches 25 and 26. Would you rather have > them in the first series, after its patch 10? Either way works for me, as long as they come right after it: as I said on 25, at the top of the next version (with 23 and 27) is fine too. I think 26 first needs a fix for the race Sashiko reported (its first two findings on 26 look right to me). > Peter, Juri, a question on patch 37. Would you take a follow-up for > tasks with an implicit deadline? I think so, it's what the XXX in sched_dl_overflow() asks for. > Peter, Juri, a question on patch 37. It is large: it adds about 600 > lines. It is one rule, applied in several places that depend on each > other, so I kept it whole. Would you like it split? I'd find it easier to review split, yes. The period_start / dl_next_period() part, for instance, looks like it could stand alone. Thanks a lot! Juri