Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3084132rwb; Fri, 9 Dec 2022 09:44:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf73AeT/Thpu6T4mhEW1L6dXo82a/d5D4/NFA1Bsp1gteIeLE2aGO2UqOX7kIsyM7z2nIZKn X-Received: by 2002:a05:6402:1cc3:b0:45c:834b:eb44 with SMTP id ds3-20020a0564021cc300b0045c834beb44mr9763974edb.15.1670607869313; Fri, 09 Dec 2022 09:44:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670607869; cv=none; d=google.com; s=arc-20160816; b=Mz7z4Xo+qxhOnvZMd5q2/MWFMgXsMDMFvPjENfvy7IDfQ2SybVaYIzy8z28LaZwxqu of3gpAB58JjoINne+ORAx0nlmKS85DqmDXk3PSxxLcwqjJfq7UEdaulTMDZJzEA0y0yd JpXDxYOf9MpOOUCtQumR95aeyC9lGPk92ai52lPkQkvYoi6GdtktMNaNU9TLb6XFNd2l 2P+e1gAilqKvJO7CsZ9acMo5KwAqKtpZlADsNjTh/LpnXzyQLELh8vnVaa0v/K4HX2xQ r23dcoSJ2ebqfksstzwVYh4uA2szOJ2DaFo4ewbYbtrwADgmy+18SO2eyeAIJVOAY9z2 izMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=daikn9VroNivl1YE1yC9cN5gUExcOR7+xVWyWD74Yv8=; b=CNix0WmfiPL5p3rQeW0BSiTH90NoUM52F9y4JBUATzpwdKS1bJ27qCK8VCYOTj0eZT dNHcHoOwQ+RSSh03tb4qkdWDTsyjp/rRuYlQPCLyrljuSDLvUtyO4ig6E9ylV/Yv0gIT 5vPmknJ7PdNZybmKZX+MblCKu3FptX/6JNeH2sCqV8b6YfDheDdurQeNHm2IGnnwfRpY BLqJoXjf7I6rzy9SZ8c8T3FBDlRx6lhmVlsNal4O3uYP5AAgBj7107o51ETqGC1yy/uK HJVJzslGoALtS0TJbWkP7qVx4ba1W59ZX1VXVR8tUs3iAiO9zhBcqUrwiEJyYANnYTWL 4glQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=WYraxe+U; 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 u30-20020a50d51e000000b0046c24dd6f2esi1633204edi.235.2022.12.09.09.44.10; Fri, 09 Dec 2022 09:44:29 -0800 (PST) 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=WYraxe+U; 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 S229956AbiLIRCg (ORCPT + 74 others); Fri, 9 Dec 2022 12:02:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229847AbiLIRCR (ORCPT ); Fri, 9 Dec 2022 12:02:17 -0500 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 726767D08A for ; Fri, 9 Dec 2022 09:02:16 -0800 (PST) Received: by mail-lf1-x130.google.com with SMTP id 1so7986418lfz.4 for ; Fri, 09 Dec 2022 09:02:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=daikn9VroNivl1YE1yC9cN5gUExcOR7+xVWyWD74Yv8=; b=WYraxe+URQxRPVJ0/YGdVKJa+sGrtCkkuC963j7whwGMMFRt6cXQ2OeWkQZc5Kc+0u Sq3WkOHg/7X93qG5OH44XDvByNqGTSaJykpqqBFnVkvYGSaeLtw2K1Wxp96uB9qVrusN W6yOy9oKfgxkLOlKiShhFlA7ixSJSBmMzWAAw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=daikn9VroNivl1YE1yC9cN5gUExcOR7+xVWyWD74Yv8=; b=RE1zeebrtH7IVIp1tPF4K+c34l374tCJ+v2jppI0UgwETfvvTPH2QHcizr//awfczk YQw1CaUhKwnVcwOrHrB8oDe2G1weQCCqALFQoP/Q36MdOrVxHmafKpo8Vtr/OHTV57bd S1oJyA5a6IuuKPjv3Hw0uYtjmCZw7wcZdbsvN/qCTcK26imvsSa/uu4u0kQdYNKX9lq2 wjsAjfVLcaaeNEo/2dS4ounf0l8WKzOijcZWIi/4Vu9WkDx7Zlem7ve1uBD1FHmo0LRc KSVaDv4gNX34B/VYo44+fxscyL+ykI36radG6Wzc/ty6rSEMr9RJZgNtC1DCg8cvKvro CVvQ== X-Gm-Message-State: ANoB5pmO1bSCo8kv56A1nsP9hTN0Fxq5qwWwQ3jVYiv/KG4hk6TBQ1/U oStEseH5hM4wQfot3eFZLR47BGFmsN+ZxmbEpN0BFQ== X-Received: by 2002:a05:6512:b26:b0:4b4:f7aa:4e4 with SMTP id w38-20020a0565120b2600b004b4f7aa04e4mr20142462lfu.128.1670605334783; Fri, 09 Dec 2022 09:02:14 -0800 (PST) MIME-Version: 1.0 References: <20221209022305.321149-1-joel@joelfernandes.org> <20221209163445.jl4wdnbha47si7h7@offworld> In-Reply-To: <20221209163445.jl4wdnbha47si7h7@offworld> From: Joel Fernandes Date: Fri, 9 Dec 2022 17:02:03 +0000 Message-ID: Subject: Re: [PATCH v2 1/2] locktorture: Allow non-rtmutex lock types to be boosted To: Davidlohr Bueso Cc: linux-kernel@vger.kernel.org, Josh Triplett , "Paul E. McKenney" , rcu@vger.kernel.org, connoro@google.com Content-Type: text/plain; charset="UTF-8" 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 Fri, Dec 9, 2022 at 4:59 PM Davidlohr Bueso wrote: > > On Fri, 09 Dec 2022, Joel Fernandes (Google) wrote: > > >Currently RT boosting is only done for rtmutex_lock, however with proxy > >execution, we also have the mutex_lock participating in priorities. To > >exercise the testing better, add RT boosting to other lock testing types > >as well, using a new knob (rt_boost). > > > >Tested with boot parameters: > >locktorture.torture_type=mutex_lock > >locktorture.onoff_interval=1 > >locktorture.nwriters_stress=8 > >locktorture.stutter=0 > >locktorture.rt_boost=1 > >locktorture.rt_boost_factor=1 > >locktorture.nlocks=3 > > > >For the rtmutex test, rt_boost is always enabled even if disabling is > >requested. > > > >Signed-off-by: Joel Fernandes (Google) > >--- > > kernel/locking/locktorture.c | 99 ++++++++++++++++++++---------------- > > 1 file changed, 56 insertions(+), 43 deletions(-) > > > >diff --git a/kernel/locking/locktorture.c b/kernel/locking/locktorture.c > >index bc3557677eed..8968fd65a90d 100644 > >--- a/kernel/locking/locktorture.c > >+++ b/kernel/locking/locktorture.c > >@@ -46,6 +46,8 @@ torture_param(int, shutdown_secs, 0, "Shutdown time (j), <= zero to disable."); > > torture_param(int, stat_interval, 60, > > "Number of seconds between stats printk()s"); > > torture_param(int, stutter, 5, "Number of jiffies to run/halt test, 0=disable"); > >+torture_param(int, rt_boost, 2, > >+ "Do periodic rt-boost. 0=Disable, 1=Only for rt_mutex, 2=For all lock types."); > > Sorry if this was already discussed, but what would be the intent of option 2 without PE? Np, Yes it was discussed. I would like to be, in order to exercise more scheduler paths. It is not an invasive change in any case. We have had issues with race conditions in the scheduler paths in the past, that I would prefer to have in the test. The scheduler has become incredibly complex over time with new features such as core scheduling and heisenbugs are showing up. I am still fighting an old 4.19 kernel issue which is likely scheduler related, for instance. Thanks.