From patchwork Tue Oct 10 11:59:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frederic Weisbecker X-Patchwork-Id: 150709 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp140810vqb; Tue, 10 Oct 2023 05:01:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHi3Ujn35lvvZYVULsutCmzcjYO1TJKRC3WMTrVlO3mctWy2V+v7lCVBgYvNwcAJ6IOgTKW X-Received: by 2002:a05:6a00:1346:b0:68f:e0f0:85f4 with SMTP id k6-20020a056a00134600b0068fe0f085f4mr17979117pfu.25.1696939292921; Tue, 10 Oct 2023 05:01:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696939292; cv=none; d=google.com; s=arc-20160816; b=TAm02I1PVHkoHhdNYCQ99P/yqnhYW6VoFbDOvy8GT3eCMTOK3EFIGzuXR06NjuGoNa ekvc+rbYvnMTYC+B/6r4MIUNo7fqfsSXBQ6Wgo3c5pjcBsc8UhJ1ufSCz8913xM7pbrS w12JXHnJs/zCkjzdpXwcgsueWXJYDTgYh1Z659IBj3xe6RV/3nJGUwGjZUmNvXfe2Bc8 7k8jGjDEJvwheI/cXL4f7wcOLWJpM7K+nFIwWKGtkqQhsyb18InbziBuyl4cY45qKicH 4r/+TcZLFSMVbl/JPv56FEQsxNxCEe0W+JqfUMQxfkwbAgEmlQ+GDpj5ZzeukTCvEeRi cpMw== 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:date:subject:cc:to:from :dkim-signature; bh=g99KVGXnWvqiXtdQ3pWkqi55tk8wJ2tD30dyj0fyKaY=; fh=9o1vzmbQvXEiiOZAoGEKGHmVR4Ieb6r+octdNZgYFWA=; b=zZSOkFbhkm7ZiWRD8gQ0nmCiAEG26jdtwgQOy6wLMc1WhTDqaq0O6EbaZ9kZBtPLEI ZlcQblyAdb2tZ2DBGTPypvWeJDZj3xLzBItz3YmBljbTlpF4+MJOnrZSZEwVU1WdjhJx lA0wk+KIMe4G6JLPpuqZNrYV+Sa4st68gsc3RXUq8mtnmZxyPnohHH7TuDp86yKer2/B pCTNupAvW/WDe2o6O8YJnpV28QzvDTf2G57gUUuUh9nQOeTRXZmkvsJehWrLSb1aDPxj FrjfkN/khzfohJpGvsb+O211QAmZmwHZWpRFzRfmn/08F1V6jkOb/Lg86fJp4L0+SVpb Y1gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c7XqFctb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id k5-20020aa788c5000000b0068bf645ac9bsi998199pff.238.2023.10.10.05.01.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 05:01:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c7XqFctb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id CFC6D8023EC4; Tue, 10 Oct 2023 05:01:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231681AbjJJMBU (ORCPT + 20 others); Tue, 10 Oct 2023 08:01:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231721AbjJJMAp (ORCPT ); Tue, 10 Oct 2023 08:00:45 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B4DC10C2; Tue, 10 Oct 2023 05:00:21 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67717C433C9; Tue, 10 Oct 2023 12:00:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696939221; bh=auFBPodM5kO9BUafGEXKYKTSfdxIB8Ykugl3mHcHETw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c7XqFctbaENt8+vsG9vMQjuAon9bLLDiSAV9lJy1BnuaWV9sAiXEnaHSRPrm34P1I mWK0w1owL2M8zs3fDzHCnKAf3y37AnQNQpZPw/awSFeIwcnVeb0k58WxFr+1o44u57 bNRPrzUrUWTUq2lHh4dIFxRmyGV3xlRp6Y0BU/6C7xfKU8SYsmhZ5a3MTw24x5svsT NIkDceCbAfShNxaUQ56q426HQJv+2n1BvHDuY7kQ9s4w0NviKQfhTb/DpSHofjgR2o E75LyL6vucLF4JmpPf7OJj/eqcnQnxqCV2NiDxAAontPq6UEDbImWcfgIuSmGIn9GM AAEh9ir+jOyhg== From: Frederic Weisbecker To: LKML Cc: "Paul E. McKenney" , Boqun Feng , Joel Fernandes , Josh Triplett , Mathieu Desnoyers , Neeraj Upadhyay , Steven Rostedt , Uladzislau Rezki , rcu , Frederic Weisbecker Subject: [PATCH 17/23] doc: Catch-up update for locktorture module parameters Date: Tue, 10 Oct 2023 13:59:15 +0200 Message-Id: <20231010115921.988766-18-frederic@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231010115921.988766-1-frederic@kernel.org> References: <20231010115921.988766-1-frederic@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 10 Oct 2023 05:01:29 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779369815991191465 X-GMAIL-MSGID: 1779369815991191465 From: "Paul E. McKenney" This commit documents recently added locktorture module parameters. Signed-off-by: Paul E. McKenney Cc: Joel Fernandes Signed-off-by: Frederic Weisbecker --- .../admin-guide/kernel-parameters.txt | 50 +++++++++++++++++-- 1 file changed, 47 insertions(+), 3 deletions(-) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index 300e2c30986c..47f8b1cef4fd 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -2913,6 +2913,11 @@ to extract confidential information from the kernel are also disabled. + locktorture.acq_writer_lim= [KNL] + Set the time limit in jiffies for a lock + acquisition. Acquisitions exceeding this limit + will result in a splat once they do complete. + locktorture.call_rcu_chains= [KNL] Specify the number of self-propagating call_rcu() chains to set up. These are used to ensure that @@ -2920,6 +2925,18 @@ in progress at any given time. Defaults to 0, which disables these call_rcu() chains. + locktorture.long_hold= [KNL] + Specify the duration in milliseconds for the + occasional long-duration lock hold time. Defaults + to 100 milliseconds. Select 0 to disable. + + locktorture.nested_locks= [KNL] + Specify the maximum lock nesting depth that + locktorture is to exercise, up to a limit of 8 + (MAX_NESTED_LOCKS). Specify zero to disable. + Note that this parameter is ineffective on types + of locks that do not support nested acquisition. + locktorture.nreaders_stress= [KNL] Set the number of locking read-acquisition kthreads. Defaults to being automatically set based on the @@ -2935,6 +2952,29 @@ Set time (s) between CPU-hotplug operations, or zero to disable CPU-hotplug testing. + locktorture.readers_bind= [KNL] + Specify the list of CPUs to which the readers are + to be bound. + + locktorture.rt_boost= [KNL] + Do periodic testing of real-time lock priority + boosting. Select 0 to disable, 1 to boost + only rt_mutex, and 2 to boost unconditionally. + Defaults to 2, which might seem to be an + odd choice, but which should be harmless for + non-real-time spinlocks, due to their disabling + of preemption. Note that non-realtime mutexes + disable boosting. + + locktorture.rt_boost_factor= [KNL] + Number that determines how often and for how + long priority boosting is exercised. This is + scaled down by the number of writers, so that the + number of boosts per unit time remains roughly + constant as the number of writers increases. + On the other hand, the duration of each boost + increases with the number of writers. + locktorture.shuffle_interval= [KNL] Set task-shuffle interval (jiffies). Shuffling tasks allows some CPUs to go into dyntick-idle @@ -2957,13 +2997,17 @@ locktorture.torture_type= [KNL] Specify the locking implementation to test. + locktorture.verbose= [KNL] + Enable additional printk() statements. + + locktorture.writers_bind= [KNL] + Specify the list of CPUs to which the writers are + to be bound. + locktorture.writer_fifo= [KNL] Run the write-side locktorture kthreads at sched_set_fifo() real-time priority. - locktorture.verbose= [KNL] - Enable additional printk() statements. - logibm.irq= [HW,MOUSE] Logitech Bus Mouse Driver Format: