Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp11010297rwd; Thu, 22 Jun 2023 07:40:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ61paoQ2t5Qp1/18aGVuI4gJBnN7VG9z0L1xK6vzFOO1Ym6f6wo0iUpPgQy+qDtzdiwbvqU X-Received: by 2002:a17:902:ead1:b0:1b1:9993:a0e1 with SMTP id p17-20020a170902ead100b001b19993a0e1mr13834227pld.59.1687444827612; Thu, 22 Jun 2023 07:40:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687444827; cv=none; d=google.com; s=arc-20160816; b=vHf83XVCXDqw2s4Ws9k7lIfpaxLHtz5/PEJ+gbQ5ztXuzijsIZeaOaeUexVJZdquT/ rmEZ3n5s/p7FDs8CgV0sLuLmOIt5ACMiyt7jymTI/x5hf/rhQDKsb04fmrsohpd/hkSc i1zDBFlKHsxm2WtA9PHfHla13ULgAOxGvMz+FdI4A9AUD/F8W4JoOi6a1k0HWJnzWUFV BSf0FH7isKtOoZURNN97pajzUmuBFvUcxSIB5a0hGEYqxLmR/A5remRVfltNLrfNnPCC 0VJOMzz16ljJAZIAMH/1fzNChQRKQqE0DkzVjwP7b89qiwMshbk3Nh+DVpJWzQ4PwrPT 6NeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=3jbVxxrnzpl6XCcGbQXW4fyORXsh4GxjHbNI64ak7y8=; b=x75nTNRqUjNifb5UJWGUKKbGqlP1MoXgyUgdYtAzdfBwAOB7M3UgUSE+84HfV+kom1 ZQksNivyjPFyd1ytn0ZV4XTy1nKjeq5hGYU2mtLKu5pHYvX/Rw5XBvKMypR0qGoIEfJx UrYhobOnRUM4V9k4k/UcPVhR52CbeOChUa2/HGxCYTu2IZP6Tx2b/Q6Wtx7GYdeUKHsC zLtQ5AhSguEii5ETUrd/nGM6PrTBM9ZWZy01GYs4vFjEXngl9AicsvyxeCEf89MQVFQh e1D+cPowi/WGxiKxSAmyi+kGck47O3GM95K3JWbYazLQwjDb6P6nZoGquzjMtpNQ8Q5L 2tOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y21-20020a170902e19500b001b047410425si2306214pla.503.2023.06.22.07.40.14; Thu, 22 Jun 2023 07:40:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231143AbjFVOWY (ORCPT + 99 others); Thu, 22 Jun 2023 10:22:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230264AbjFVOWX (ORCPT ); Thu, 22 Jun 2023 10:22:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FA59E2 for ; Thu, 22 Jun 2023 07:22:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id F2BFE617BF for ; Thu, 22 Jun 2023 14:22:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2BFF8C433C0; Thu, 22 Jun 2023 14:22:20 +0000 (UTC) Date: Thu, 22 Jun 2023 10:22:16 -0400 From: Steven Rostedt To: Phil Auld Cc: linux-kernel@vger.kernel.org, Juri Lelli , Ingo Molnar , Daniel Bristot de Oliveira , Peter Zijlstra , Vincent Guittot , Dietmar Eggemann , Valentin Schneider , Ben Segall , Mel Gorman Subject: Re: [PATCH] Sched/fair: Block nohz tick_stop when cfs bandwidth in use Message-ID: <20230622102216.3b841f80@gandalf.local.home> In-Reply-To: <20230622132751.2900081-1-pauld@redhat.com> References: <20230622132751.2900081-1-pauld@redhat.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 22 Jun 2023 09:27:51 -0400 Phil Auld wrote: > CFS bandwidth limits and NOHZ full don't play well together. Tasks > can easily run well past their quotas before a remote tick does > accounting. This leads to long, multi-period stalls before such > tasks can run again. Currentlyi, when presented with these conflicting > requirements the scheduler is favoring nohz_full and letting the tick > be stopped. However, nohz tick stopping is already best-effort, there > are a number of conditions that can prevent it, whereas cfs runtime > bandwidth is expected to be enforced. > > Make the scheduler favor bandwidth over stopping the tick by setting > TICK_DEP_BIT_SCHED when the only running task is a cfs task with > runtime limit enabled. > > Add sched_feat HZ_BW (off by default) to control this behavior. So the tl;dr; is: "If the current task has a bandwidth limit, do not disable the tick" ? -- Steve