From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CED65C4332F for ; Sun, 16 Oct 2022 20:48:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229687AbiJPUsS (ORCPT ); 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 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