From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A44DD2594B9 for ; Wed, 24 Jun 2026 10:35:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782297325; cv=none; b=BzMKtv7VqQjX8xsyO/NP/mjIL+EppSTZ7ltqa/gFu6+HdOBlZj60PXnVy1iE1etf/dBdL9B5RVQl+dZ2ufrDOie/PPxc3jUOUSyCE5ghcOuJnukdHtwL+veIMbMECskrrH1AFQoVZBRyvGoNCZTXsvbMLrDAvyfAyoS1B9hRwTQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782297325; c=relaxed/simple; bh=HIaYRlugnYrnIAEZ7/D3scwdn/jpoj1NmRTr10PelGk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eBKdKcYnVlmM7JNV5Brutz074ZScD5g7pHqDsrNQ+IWu6RPEStpfvFzz4iJqYfXfJOAkGd85mFNX6iFtMGl7Wp0vSACZct/3LuPB0iQ3ogECEh0xBO22zl2X7nVgRlw6PCYwHrsDO/iD34EFKYua8U/0kA569LlF8CMeTTfEL3Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=RR85Reox; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=NRJwlZvv; arc=none smtp.client-ip=170.10.133.124 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.b="RR85Reox"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="NRJwlZvv" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1782297323; 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=TquLabB3IWUoIxIeapfjmriI8BBgvu3sn49zWkWYrOA=; b=RR85ReoxJJgj9kY/osOpYDIgVlhTlkBsc+C13qFfZYNYpMl2eQA5gJBNieVNBEUZSBycBb /hreRWE62KZgu6ZZ+v+Lfr2PDCKxiri3NX6IWVh1e1qo9xcxnZj3nVMf6aVVGQewF2PBGD 5hEqXLANUSNHw4mSCkxsxCBRvPora+Q= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-152-lv0nUcF2PqqQ23wTIuitBQ-1; Wed, 24 Jun 2026 06:35:22 -0400 X-MC-Unique: lv0nUcF2PqqQ23wTIuitBQ-1 X-Mimecast-MFC-AGG-ID: lv0nUcF2PqqQ23wTIuitBQ_1782297321 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-46010bc0f1eso558867f8f.3 for ; Wed, 24 Jun 2026 03:35:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1782297321; x=1782902121; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=TquLabB3IWUoIxIeapfjmriI8BBgvu3sn49zWkWYrOA=; b=NRJwlZvvI0Nam4tW04F9KpWLy3foVaKnbEIdy9cF+F43jlx0KealUkBvaqNe7iHfhY t6LJ8UDG1uDrsovvl7WMs62K/ztfIxQh7PqLuE04BLXO89lzShaX1h//PmkDgjE9wUVQ xx1dkElhn0LOer0yxlMuHIfezJFJjpc4ThzZCjUF+jaWivqd59NHKk9NLPGJSCAIrZQ8 jTlXkHzFDRAz8byTuQecPjGg87t1rpFT//dEAPbZsyKrYxTUha65Oe0VtJzoL9fQlbR8 9CNZNQjACpKR+opIDzu62OoShYjJJPLygPrOwT/UCZPigJytf2w5C+KXJPbvfporCFuO WEvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782297321; x=1782902121; h=in-reply-to:content-disposition: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; bh=TquLabB3IWUoIxIeapfjmriI8BBgvu3sn49zWkWYrOA=; b=qHKSqyIEOl7HvzjS+2JUvALKIX/4cQOe+xlUMoxsRVkwaPDi7uoLx1KFYYuAbUODSC FKuWTPyKnLuAJ/BGl0ho4jNBMSZrGg4a9q8AsbS5h16QZuuPPR6Hm6hYdsPbsiE6QFOf KsK+I8w0ljyz/PDlNA413fjfUACELMQu2exY6qnos7HCyYp4D3UdcNIqM0qA9RPuKW3t TbdUN5WVWZTsCDZ7AbcVnu11W2dm5BO1tNo3C4qHiLnvQyQicUCkrW28t7evaHHJJxjX RN0otUQuZ2fi+12FKnA/PhT5PdtJmPPWKGJuHDX94xOQ77jtPLsky49o8I4QW2lTXJo9 wiFg== X-Forwarded-Encrypted: i=1; AFNElJ9Pbn6bhwVGjGExqxBNlvrPNiSLp1ANpkpc1S0G1QxBoGZbik3E2ZsIT77nv3j2jTB2LgEVA+yv1EEsBrY=@vger.kernel.org X-Gm-Message-State: AOJu0YxlsqJzMmf4dJLzeeRuobi24z0geEwjBBMo4Kf0H0OafAapHl6+ 7/7fQ6wJIK/IcPTF4WLg8I3b2GnvFBfOAApoL9GGenBtcGGVuC07tUE5mB4RbVeTU8lAnyg/QDt +P0gk8VIejWlMELwUSUU8voa6+i7MWWo/Db5cFmdPTz602AX1y+TOjaP2ztXv/rgSt+YhAZjUgA == X-Gm-Gg: AfdE7cl8Sa96W7yYvvOVDNQ2fmwnSG0uJhIMjZsiJDc11Y9lSxMM0Hgkb6bejqcsI/V 9oo1R3ieXpQ20x3BubGHm5tCF3flqGJ5RQs8fMQ5ciM8u1tS6xAGMXeX5Heqsj1CVsg3lflrJty dpc1FU10ZeXeiauiPjOnQsxT/dq6O7NJ1Hmtput0NZUDnRMCccsckG7rEGa57IG1WKCKmH/BtvJ r6oZuzrZWsOHh3o/TN4o9JZZ6mPM2EQGyeemJNccp59n0dPUq5mFnJB7qoN+t7k4XyFO0evo3kN eVLrIB6Nj/Zrnje/o3ZS5lVeL6YxVdK8XxNKIG+UInbbodKWiSZlwp2QzKIc4eb2i3hxsTJxlcd JfSI/Bt+hzTItI/hvwQmlwxHhUAEkGrauHe6vkDhOkg== X-Received: by 2002:a05:600c:c0c5:b0:492:4ff5:fb9e with SMTP id 5b1f17b1804b1-4924ff5fe1fmr187065795e9.37.1782297320957; Wed, 24 Jun 2026 03:35:20 -0700 (PDT) X-Received: by 2002:a05:600c:c0c5:b0:492:4ff5:fb9e with SMTP id 5b1f17b1804b1-4924ff5fe1fmr187065395e9.37.1782297320627; Wed, 24 Jun 2026 03:35:20 -0700 (PDT) Received: from jlelli-thinkpadt14gen4.remote.csb ([151.29.133.86]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4923fc47720sm782135435e9.0.2026.06.24.03.35.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2026 03:35:19 -0700 (PDT) Date: Wed, 24 Jun 2026 12:35:17 +0200 From: Juri Lelli To: luca abeni Cc: Yuri Andriaccio , Ingo Molnar , Peter Zijlstra , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , Tejun Heo , Johannes Weiner , Michal =?iso-8859-1?Q?Koutn=FD?= , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Yuri Andriaccio Subject: Re: [RFC PATCH v6 00/25] Hierarchical Constant Bandwidth Server Message-ID: References: <20260608121546.69910-1-yurand2000@gmail.com> <20260624091912.4fca8428@nowhere> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260624091912.4fca8428@nowhere> Hi Luca, On 24/06/26 09:19, luca abeni wrote: > Hi Juri, > > very interesting demo, thanks! > > On Tue, 23 Jun 2026 12:15:08 +0200 > Juri Lelli wrote: > [...] > > - At 1ms task periods, the dl-server period is the critical tuning > > parameter, less the bandwidth. A 10ms dl-server with 60% bandwidth > > caused ~10% miss rates because the worst-case throttle gap (4ms) > > spanned multiple 1ms deadlines. Switching to a 2ms dl-server period > > at just 30% bandwidth eliminated all misses. > > > > - A simple Rule of thumb might be to set the dl-server period to at > > most 2x the shortest task period in the cgroup (e.g., 2ms dl-server > > for 1ms tasks, 10ms for 10ms tasks). Would you (and Luca?) agree or > > would you suggest something different? > > With one single RT task in the cgroup (or with multiple synchronized RT > tasks having the same period), I agree... Technically, the cgroup period > P should be such that P - Q = T - WCET (where "Q" is the cgroup's > runtime and "T" is the period of the task), but to see missed deadlines > you need a relevant competing deadline (or HCBS) workload. > > So, yes, I agree with your findings above. Great, thanks a lot for taking a look! > If we consider multi-core analysis, or multiple RT threads with > different, non synchronized, periods, then analysis tool by Yuri > (leveraging CSF analysis from real-time literature) is needed... But > that is pretty pessimistic. The rule you suggest above is a better > starting point in practical situations. Indeed. I actually wonder if it would make sense to "extract" that tool from the test suite and package it somehow so that it's easier for end users to design their interfaces. Best, Juri