Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp624930pxf; Thu, 18 Mar 2021 08:13:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb0agCfwT8ktp8WyO/XAhnyrEAFv/GG59mdf/qHESH2GDiQXuRT7nJ3EJ3/EPGVZuhrxy2 X-Received: by 2002:aa7:c815:: with SMTP id a21mr4289585edt.38.1616080384458; Thu, 18 Mar 2021 08:13:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616080384; cv=none; d=google.com; s=arc-20160816; b=q7ehOnrE+sj1/cqjlPfJaEYeBCbCeVcxuYYZwqzXAFD9F8l9kQK9o7DAEf6E7Etkzy Y+56UyeCy0ijEg4AmybZSCCqOoAiN3Qmd0dcqXafbKGSJqZHhd0VtIvC4n0jWSMEFQ/E CRU7UcCneAYCz7HSmSce8jWO0uo1WQIXwiNUQsE/2LijQ2w/YOaQCVYcz64iPeSz6Xro XlmPV2PTDVI081cn9HhtDSIftnjVXCVSru5qdAiw3a8A22vtSixhoBrbvs43VCYdUHEa TGctWgHMP8gqYPMmrdtSH1xSXlKG6dx2uZddBOwrZxlvjIs4jls0EaUZnXSTpveaTSu5 6euA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=sPkqE4Z4nq4U5S9p+k8pFb8Y9xvqDbx2znk4jhaW/AQ=; b=BBmLaX1XuirygoOf/eW0eYmCBm7U9+FSttgVINCr9WaCMEqnIMx7C8kIeOHE+vPtU9 ICCwIMHL9DKoKQ3yIRNxCRyZnLYEG8XwV275Abm7HzGB3SrcZwJSm7xKp5qdNGCkRioA ZJ4grVS6Y9L8Ffs9vSAvUdbUqwSL8ZwKZs2VOTP0/GaeOvB1Uy2fa7Bp91u/ux47cWvQ 8E5DyNonNyXLSFVhReS1jn+adVQVqohM+GjsnGizQvUPVRvIhpgGBYAi8OEjUFrTwLEk HRRLCRuC4cNuRDE7S9a9rygpAohdyqPZQX/LCQfqPXNVhsFVuGGzTXKs041tBLh6skpN JMnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=nNFw9z6A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dc19si1608427edb.127.2021.03.18.08.12.39; Thu, 18 Mar 2021 08:13:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=nNFw9z6A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230269AbhCRPL3 (ORCPT + 99 others); Thu, 18 Mar 2021 11:11:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230416AbhCRPLI (ORCPT ); Thu, 18 Mar 2021 11:11:08 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6BCBC06174A for ; Thu, 18 Mar 2021 08:11:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=sPkqE4Z4nq4U5S9p+k8pFb8Y9xvqDbx2znk4jhaW/AQ=; b=nNFw9z6AAP1lC4HDV6hyJgzeXz 7w+6wwoE2KFIoMGFfqGk9z2mTLKwADhCDiRON6N0myY0yYTh8MIldXO1ILK/eSzDfG7fVAmWWect1 JVIpbYhaaq0KhHjg2YojiXimKOrzcNh8FJsT7jhbUHmjdmWTLGuMcyZdNeN89C1/LQko4xc/gr00g rKfEkd6uh6TtfJETraNW4By9BdhZlI+EGqtrpePhUPbzGUQsUJpgA5qXna/laRCY1wdsCiNl1VJ8n Mxh5ra6IUNN4rqsQYhzSuLtiTGDhK2SrPScY6dZEs68XaMUUhTDygOzhG1uH4v1KHdfYiUyhWoFcz TNH9HyHA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lMuIY-005YJJ-2N; Thu, 18 Mar 2021 15:10:54 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 22FBD3012DF; Thu, 18 Mar 2021 16:10:50 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id DA96020D3873F; Thu, 18 Mar 2021 16:10:50 +0100 (CET) Date: Thu, 18 Mar 2021 16:10:50 +0100 From: Peter Zijlstra To: Phil Auld Cc: changhuaixin , Benjamin Segall , dietmar.eggemann@arm.com, juri.lelli@redhat.com, khlebnikov@yandex-team.ru, open list , mgorman@suse.de, mingo@redhat.com, Odin Ugedal , Odin Ugedal , Paul Turner , rostedt@goodmis.org, Shanpei Chen , Tejun Heo , Vincent Guittot , xiyou.wangcong@gmail.com Subject: Re: [PATCH v4 1/4] sched/fair: Introduce primitives for CFS bandwidth burst Message-ID: References: <20210316044931.39733-1-changhuaixin@linux.alibaba.com> <20210316044931.39733-2-changhuaixin@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 18, 2021 at 08:59:44AM -0400, Phil Auld wrote: > I admit to not having followed all the history of this patch set. That > said, when I see the above I just think your quota is too low for your > workload. This. > The burst (mis?)feature seems to be a way to bypass the quota. And it > sort of assumes cooperative containers that will only burst when they > need it and then go back to normal. Its not entirely unreasonable or unheard of. There's soft realtime systems that use this to increase the utilization with the trade-off that you're going to miss deadlines once every so often. If you do it right, you can calculate the probabilities. Or usually the other way around, you calculate the allowed variance/burst given a P value for making the deadline. Input then isn't the WCET for each task, but a runtime distribution as measured for your workload on your system etc.. I used to have papers on this, but I can't seem to find them in a hurry.