Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3585009rwi; Sun, 16 Oct 2022 14:05:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6roPCbTPbaGiVTPWdv7hY3Wx8DH9AA9Pqjr12/eMuKw4XsmykvLpBzWMIkzAYXtL14Ju4f X-Received: by 2002:a50:fe99:0:b0:45c:329a:40f6 with SMTP id d25-20020a50fe99000000b0045c329a40f6mr7552955edt.425.1665954352877; Sun, 16 Oct 2022 14:05:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665954352; cv=none; d=google.com; s=arc-20160816; b=zTK19jVehYmIi5geUE097hYkBU7pLqwwsgk0HhlGJ7r6Aafr3tsuIApvJDRZOfz3ax Nu3sUZ/GWEFJ+RlinP7oBQQhPEu7LrHzuZ4HfqgF7VyjBiAR5ohJ5GLrDi3HoqWWmbY4 FH1YkyLw8nWi3t6O6R8MsHUS/chG8YWb+jwH0j7r5KHmkA+4iQnLugB3vgmXZ4+lRrfs V4B+93bNUj+lbJk2cWI+EviYfgTYRxFDBzmW2Zba5uAUU+hOYabMEdy4D3u/bNsuz9So WOnZpdcjn4bHrnrN5iummC21Ytue4hg5xKWDHQEoa/zEQ9AwUuhREN4kQqjkCLXycfNU i83A== 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=QNaFpV0Eanw57xgx/sMHzzAJsUl6SOz1xHeG1DnFHKQ=; b=GyqLogf3LuHu6Km2bLeSqkbPOobVmz5VC2I+JYearcjzrX6qScl74kAOaapKNz4gqK +m79W4ecJ1cKD/D4FTBXmjpiaOqowVJn+vVRAFfR+7vYGpfYs4n5z6Y/JEpP0tzYEYTB 4C2FDep4xgM2S6/E6a9HIl58KA2rib4ZZb/Jwh05JJhNnL2wthEQrbAjwRir9VvKutIB ninSQoYmbFCMg806mkY/0xkU9cU7ZZJcfQxyMe0NzA1subJYJqwSLOOKvS8UtOdqWuaT mL9gWZI2bO1CbVRPcNhnDanFXWgNYf1hCrgw/B35xCQ2x6eztIrjSSFIWlJMSOsubXFs ggSQ== 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 p7-20020a170906498700b0073d8659db5csi6597721eju.966.2022.10.16.14.05.27; Sun, 16 Oct 2022 14:05:52 -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 S229646AbiJPUsS (ORCPT + 99 others); Sun, 16 Oct 2022 16:48:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229472AbiJPUsQ (ORCPT ); Sun, 16 Oct 2022 16:48:16 -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 5EB012AC51 for ; Sun, 16 Oct 2022 13:48:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8EB5C60E26 for ; Sun, 16 Oct 2022 20:48:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8EBDEC433D6; Sun, 16 Oct 2022 20:48:11 +0000 (UTC) Date: Sun, 16 Oct 2022 16:48:09 -0400 From: Steven Rostedt To: Peter Zijlstra Cc: Joel Fernandes , Connor O'Brien , linux-kernel@vger.kernel.org, kernel-team@android.com, John Stultz , Qais Yousef , Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Valentin Schneider , Will Deacon , Waiman Long , Boqun Feng , "Paul E . McKenney" , youssefesmat@google.com Subject: Re: [RFC PATCH 07/11] sched: Add proxy execution Message-ID: <20221016164809.6cd6871f@rorschach.local.home> In-Reply-To: References: <20221003214501.2050087-1-connoro@google.com> <20221003214501.2050087-8-connoro@google.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=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,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 Sat, 15 Oct 2022 15:53:19 +0200 Peter Zijlstra wrote: > >From this it is easy to see that the critical secion executes with the > direct sum of the blockchain as a whole (all of them will have donated > their relative time to make the owner elegible again) -- provided the > critical section is of course long enough for this to matter (or it's > owner's weight small enough etc..). Does this mean that a lower priority task could do a sort of DOS attack on a high priority task, if it creates a bunch of threads that constantly grabs a shared lock from the higher priority task? That is, the higher priority task could possibly lose a lot of its quota due to other tasks running on its behalf in the critical section? -- Steve