Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp143271lqj; Wed, 10 Apr 2024 06:39:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXCkAqQaJsti0XgL1YoLHR9BzYXeik+2x0CQFSYsRHn2I6ZWQjKSkih4TQJzpxkI1usY61rhc2UKJuLwYaun1494vo8Pj01G6Yn0c8w/w== X-Google-Smtp-Source: AGHT+IGvIClGCohSGPbBpdoMRGyQrwRHqemqOuuMtxrZ9wD4b7P5Sqq15HA2xx0Giiiqy5ycV1MP X-Received: by 2002:a17:907:31c9:b0:a51:d056:d08b with SMTP id xf9-20020a17090731c900b00a51d056d08bmr2985124ejb.0.1712756347698; Wed, 10 Apr 2024 06:39:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712756347; cv=pass; d=google.com; s=arc-20160816; b=LfbAvbXEKy3AnFQ4y+XSqMvSDSwqnQqCcbGplNWsu93nnE7vrhwvRQjAizh2Lmpj3w jK7TCxl9OVVfQ+BOY49DRmZsdZiOMyO8f4k0blNCUzeQ34s5Bn1suoREZandVY8xMBi5 dbuAfJ2OSaU4ElsBnDtC3efHR1qYs8wHRsdHVweXHPyUjblSBL3zcHCG+js4hh67NaNp 6Cx6aunqmK7wfBsCCJ56QLHGIDY/GkXQD9ZOOVqM7yzet7rkaDV3EGSGx1rCgR/kY8U8 AQFQgD8bEoDLqcDFTDRzg698Hhy4jE4B+s3GBPkHPJyMUNpIwIEIHO/30ulqWhzBiE2e 67AQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=d+ZKdreMATSwQqMGT62EKEHEgtqgyDRXS0nrvXJUw5Q=; fh=6IiSNBWTg3nfe2HdxzJS0TV4CkFe98TxAfyULd/Kers=; b=kI1q9QlOzk9S8uwxeV3ndFyJUaPe8PWivJVdVhmROx1h2NvYRCA0hFObBqWI1I3Sml d6md0yDc4wHXQ4g9kkAeszJRHMDNU5pTTPgMpWyTZygRIvagjYzWm+6yNp+lq2bohoHq px40HsL37oG5Sc0ipjzW19Jis+ZvEKbjCXOyDxyd6Ycuyj3p/Cg+9YfB68fGyxQ2q5pT LdHNVLwKSlkc4J0ThISJldWZOVYCZpqxW+r5zdWXxIP1JBhhKdNqr4ydJDNt8zhUmnIz osWGZ3L1OCIBTEjq1m8D91HwNx+q45RtiMEF5Mz3l5K0XPcPcuvel4o6oI2CY3upvJzR Z91w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W5q2o3oi; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-138603-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138603-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id qk13-20020a1709077f8d00b00a51a8bf3886si6077417ejc.23.2024.04.10.06.39.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 06:39:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138603-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W5q2o3oi; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-138603-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138603-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BC86F1F2E1E8 for ; Wed, 10 Apr 2024 13:30:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 68F8E15ECE2; Wed, 10 Apr 2024 13:30:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="W5q2o3oi" Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 223F415B153 for ; Wed, 10 Apr 2024 13:30:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712755802; cv=none; b=D3/4DX46DGr/I+hM8rFMFvOzOSMGoAiC1PyqsWb4JMiHcgnBD2CBiZRZ5eCflKvcrhniXTPOk6JmLDu8wPgHlgydeulrCnkvPX4SlQ+854PsQK9VLdal7hqYEOGIb9fSNLlEefntG4Wc4r24aN2zA5mBSbcaRhdgBrB49FpJn2k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712755802; c=relaxed/simple; bh=8zjJ6ZBa1WPpcfT5AqTQ2kfZwxMK33wI+BmE18967eA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=bV/seVG7SrJjAufl13ooQur/vK44dlO1ysG6gFFEmk/ra/lgo8c/nIwX4u+wcVs3MewnABlUEqoOtxv29E1TwjiOIxLSXcqIJ6KEbbapEEE9vFjofmHc/oEkpG4xegZi3DNyQLt5MAnV0kFSzeb3+sp1zbsQ0lrnjHHUNELneoA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=W5q2o3oi; arc=none smtp.client-ip=209.85.210.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-6ecec796323so6296166b3a.3 for ; Wed, 10 Apr 2024 06:30:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712755800; x=1713360600; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=d+ZKdreMATSwQqMGT62EKEHEgtqgyDRXS0nrvXJUw5Q=; b=W5q2o3oiVaMt5b0BdkNgqIY6lWwesK7W1BG48miUOeO+UTgt1ApPjGq6IlPhyL6zUK tFj/KnDBIM4aSjIdeaGi3bPZl3CqeTCf8xz5DIGb+bgvgqWYwVGlByGK74KPkcrQ6JUV 2XcDnmpN8aTHilMz3MeBMyirnFe732diHSJGpjn7PX4fNyFEVn/KEhPm54ovxCJiUhBI axaGd7aBbbEoei6Rm4rd9MJOa+KdAvTMAGhW8eH2BxhMvq/HW1/FL0cuXpRR9WKSGRf/ 9Q7frzsFXXe/2zJ6POPfJnxfi36fruNQajhv4lcOM6gvH/WYR4fjlSyHEU3SUvZMPOWJ skTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712755800; x=1713360600; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=d+ZKdreMATSwQqMGT62EKEHEgtqgyDRXS0nrvXJUw5Q=; b=kgdwPVK5lT3txJgHIcgsrbzHxZ+RyGKZHY9Xh0GfTkiTeznSLAXIuLXBDu7Odj4Gue SJ84jUm8QVQx7oGcc2R8JIhgv05z50l2vo5Qvjh87FZP4o44XGFrDxaqqEgLSL5ERQhq vd3H+gMCV46jnCO1Y20xhWKSGoBPB3PPbCnXXX8ts6Xk692W0sUNPv3j/QpaFWIgT6xZ br42JquIwDQ35xM1qrp3971eZuzSkK4t340IBZSQFgjPkDotjqRd/TzQJymf77xEpuEe I/NvO28OemdwLVOrhCuopTACjiaeI2zqs8v6wNC09CviA+5YbyfBv+VKvEcEZAasIH// 21pw== X-Forwarded-Encrypted: i=1; AJvYcCWDnTXBLmDXlVQ9Yw47YJUCQdG2mjbMLI+YGmWiHtryCoz09UcgT55UMQGVknPBi980T4QgdLTxn0NwjFV9slj4f/uPFlGl926hxlNE X-Gm-Message-State: AOJu0YweZLTNO22Kuw2oi1Ji27hba+n24g4Yl/GiHT8bu0mxaedINYhF dNfyCHEZq0gEJCIiuQk4AyIXv+B0cCO9WjaQu++QXS0vNLOCHqRUfTfkHYtNq6XBhpnzdKMpB7+ qQiG3LEK5O5AYHiNVo5sgaAHEFoTh4Scf3ibZUQ== X-Received: by 2002:a05:6a20:3c88:b0:1a7:58ca:cdf3 with SMTP id b8-20020a056a203c8800b001a758cacdf3mr3482363pzj.8.1712755800460; Wed, 10 Apr 2024 06:30:00 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240410045417.3048209-1-quic_atulpant@quicinc.com> <20240410085441.GA21455@noisy.programming.kicks-ass.net> <20240410112933.GA3190796@hu-atulpant-hyd.qualcomm.com> <20240410114609.GA40213@noisy.programming.kicks-ass.net> <88144494-33f1-4f43-88c0-885ea6b87e07@redhat.com> In-Reply-To: <88144494-33f1-4f43-88c0-885ea6b87e07@redhat.com> From: Vincent Guittot Date: Wed, 10 Apr 2024 15:29:48 +0200 Message-ID: Subject: Re: [RFC PATCH 0/2] Disable RT-throttling for idle-inject threads To: Daniel Bristot de Oliveira Cc: Peter Zijlstra , Atul Kumar Pant , mingo@redhat.com, juri.lelli@redhat.com, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, vschneid@redhat.com, rafael@kernel.org, daniel.lezcano@linaro.org, kernel@quicinc.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Wed, 10 Apr 2024 at 14:24, Daniel Bristot de Oliveira wrote: > > On 4/10/24 13:46, Peter Zijlstra wrote: > > Also, we'll be replacing the throttling code with DL servers 'soonish' > > at which point all this will stop working anyway, since DL will preempt > > anything FIFO, including your idle injection crud. The DL server could make things better for idle injection as it will let the idle RT threads running on the CPU as long as there is no cfs thread enqueued whereas the current rt throttling force throttling RT even if there is no enqueued cfs task. So as long as you have been able to move things on other cpus, your idle rt thread should keep running. > > +1 > > also, given that the code spins with preempt disabled, with dl server it could > even become a non-rt thread... > > FIFO RUNNING > DL_SERVER activates > their loop > disables preemption() > run() > enable preemption() > DL_SERVE throttled > FIFO BACK > > So, there will be no need for this busy loop to be RT. > > Anyways, it breaks RT and DL if it keeps running for too long... It can > also cause complaints like RCU stalls and loong wait on locks, e.g., on > kworkers... > > -- Daniel > > > > >