Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4569157rwi; Sat, 22 Oct 2022 12:14:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6IQcDS/WCLH1fI9opbAeK7XBPxVhppSq9/+opTzZ8Vm65O6EqFO4jn2Inz6nmUMKGSc1in X-Received: by 2002:aa7:d341:0:b0:461:4db9:24f6 with SMTP id m1-20020aa7d341000000b004614db924f6mr8295999edr.87.1666466094536; Sat, 22 Oct 2022 12:14:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666466094; cv=none; d=google.com; s=arc-20160816; b=OPN/60r7wd7iwtDrr5TRHMfv5b6jeZ25LeTG89JfeUPm6pRKTzR1WrsfhOZ5WdNFXD x77yV/6l56B6PdamTR3mvRBvSAivLZEWdZZAPzfu0SiaWBugmQDqx61kgJ8GbMGgrKYq laDCPz5IQjahBZEq37euQv7cKhpSg957yB146klvTx5fwDjRvnkSCaVv1Jtp13Nig32w GRF/UecB8beo44mV3241VNdPiVZYVenqB4ziuhjd7JmHDuMplzNwINKxfFZDvJKiVmNE W4OGuCB4EE0qnGlrNvKT8/C7pQrF0rxdXwtw0RxAVV8YRJSyfclFPwj6QcLyT87TgTE2 jILg== 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=1e95uf0VzIyXTP1nwyIENyrVuUu1bwwXuPdhByZMPJM=; b=A/4zLrHY45Rg8QIWWr+PG7Ul45Nd33TJnZb+W+CZF6XnAOG30ZdNbqa4acwRkW94rB 1lAPqGDaQQ1jnAH5PLrg7c56NwDxxzf683OxZQPj2hSD63HKeCAS/gjxkA588/D9kSD3 SnItQDVP5oNvi0TdQq4Wm0kZ6q+ArxsOiPBwppOJQv2hcyXXWgFCoDBsOvLMfvblYpBm IGghZ078x6LOchUUXy7rCKf/8pQ60gWnYsnDF2eVdvo30/or3A2yD52D8qUFzB0IsWnz kCAQJNYz2aRezMXWMYBJZGmgXDS5h/asoJusycaI3KC3Vu7wxlqJMxppz1bAfpFvXQk5 v1pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=ugLhfbDM; 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 o8-20020a170906774800b0078da99ecbdbsi19938354ejn.673.2022.10.22.12.14.25; Sat, 22 Oct 2022 12:14:54 -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; dkim=pass header.i=@joelfernandes.org header.s=google header.b=ugLhfbDM; 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 S229905AbiJVSen (ORCPT + 99 others); Sat, 22 Oct 2022 14:34:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229850AbiJVSel (ORCPT ); Sat, 22 Oct 2022 14:34:41 -0400 Received: from mail-qv1-xf33.google.com (mail-qv1-xf33.google.com [IPv6:2607:f8b0:4864:20::f33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F02C1F9E5 for ; Sat, 22 Oct 2022 11:34:39 -0700 (PDT) Received: by mail-qv1-xf33.google.com with SMTP id x15so4053238qvp.1 for ; Sat, 22 Oct 2022 11:34:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; 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=1e95uf0VzIyXTP1nwyIENyrVuUu1bwwXuPdhByZMPJM=; b=ugLhfbDMIgcuwCDeYy9cMtlJzCyjM8bnlZzIZ2Fyon/UUb6zbsAqGKz1ARs4QNJzJN 6f5kyfiFVSBg+hgOoX/LFAKk812AJ7n/XmK4+aQXWy8mu07eXMTxSys2U3wVHRXXrHXn 34rdBBfB44W7WtcnW/BlNPFs3MV3KziWtXH9c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=1e95uf0VzIyXTP1nwyIENyrVuUu1bwwXuPdhByZMPJM=; b=RKqjlVTxTUFPvrhROIsZTW+oXM5K5G9ma6/eLXsbVx/wi2e/rYjPyXmoPU5bsWTBld zoCrs3kpjxiS985lekeYJib52ItFzvXdlonaBwgBmSNHTOVMB98V1UzUVY4f5LD122yM VURZ/iwTm/YwHRoNN40FFBaqEYGtlq5vwrkHvLhmN+tus4kxhVou+LsTfRdL8H04Ebfv JytGj916yhY1Q+sO08Emr31+vQgshNNFMSGYo33QobCm8J3Ayg5umjUQZDiQxlj7OIyB e9pRKRD024ZvfkYIugldboVB/guXOUQEy7sb0F9VBU8JD9923HBm7epDkgdb5qGVKnWs M0cg== X-Gm-Message-State: ACrzQf1H1E5E6Zou8D3HA6YXvM39d68g9SH8vktUbO9ziuhLqd7E2MyH 2dnA1Kcj9yrRypCAzK9OBmf1SA== X-Received: by 2002:a05:6214:2aa4:b0:4b3:fcfb:6479 with SMTP id js4-20020a0562142aa400b004b3fcfb6479mr21715985qvb.127.1666463678334; Sat, 22 Oct 2022 11:34:38 -0700 (PDT) Received: from localhost (228.221.150.34.bc.googleusercontent.com. [34.150.221.228]) by smtp.gmail.com with ESMTPSA id b1-20020ac87fc1000000b0039cc47752casm10502456qtk.77.2022.10.22.11.34.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Oct 2022 11:34:37 -0700 (PDT) Date: Sat, 22 Oct 2022 18:34:37 +0000 From: Joel Fernandes To: Alexander Gordeev Cc: John Stultz , LKML , Connor O'Brien , John Dias , Rick Yiu , John Kacur , Qais Yousef , Chris Redpath , Abhijeet Dharmapurikar , Peter Zijlstra , Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Thomas Gleixner , kernel-team@android.com, "J . Avila" Subject: Re: [PATCH RFC v4 2/3] sched: Avoid placing RT threads on cores handling long softirqs Message-ID: References: <20221003232033.3404802-1-jstultz@google.com> <20221003232033.3404802-3-jstultz@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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, Oct 20, 2022 at 02:47:54PM +0200, Alexander Gordeev wrote: > On Wed, Oct 19, 2022 at 03:09:15PM -0700, John Stultz wrote: > > Hi John, > > [...] > > > So I'll go ahead and simplify the check to just the LONG_SOFTIRQ_MASK > > & (active | pending softirqs) check. This should avoid the need to > > pull the cpu_rq(cpu)->curr value and simplify things. > > In my reading of your approach if you find a way to additionally > indicate long softirqs being handled by the remote ksoftirqd, it > would cover all obvious/not-corner cases. How will that help? The long softirq executing inside ksoftirqd will disable preemption and prevent any RT task from executing. Did I miss something? thanks, - Joel