Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp2126425rwo; Sun, 23 Jul 2023 08:06:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlFVQ8IZPX5NCIFTA+qfT1oeUjXz02L5ZelqzpvAwL076d6gCQVKbXfGqjEj0ZT2nkDVrILo X-Received: by 2002:a05:6402:10cb:b0:51f:f1a4:edc6 with SMTP id p11-20020a05640210cb00b0051ff1a4edc6mr6085928edu.37.1690124781383; Sun, 23 Jul 2023 08:06:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690124781; cv=none; d=google.com; s=arc-20160816; b=O/X98c9uHqflwJMtfnyNJmV0pc3yUGuhoCzrsreVPWZIpLMSNG2SDaf9CNTJfpXZXG CYFXQ5B9kb5Z4kkh1VkltKkrkdYa/gqoFpxzzSmmUJIoSheH9IGhLAOsenX5EpMLEok7 aRsa6jViWOcWxFLBpS4a2lI7AF6r5UjQpoNQ5yyYLWE2qtPuXaHxpBhmm57Z+FaX9FB3 4Gnu3hJYhyltgKtK5VTd8hVLZ4+lg3j55W5cirhxSJVXYgujv9z6H659VTU6KtFb0R5w w7krYZl7m46bpEY2u6Y0cjhIjJJSRTGdvSLA0yjsr0GSjbTp2wAZpzrL0fSSudBLnk14 YdUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=XbJYLMBE6yZWZtHXhUUqaRNiGofik3CcRLGI3pFqykE=; fh=htnL7hGkoVeiFPqwNJ6gp3Ca7THUdrkOlr4kdidTy8k=; b=llS9qFpVw52o/zl4g0BbIJJoZnPK+jxNTt9ufLupwchNDP2r3p9bCtab25HGqJZ6OL yVidak0yGCsMgD9sAzNo8vMEnUklmtOd7hvpfH/ih999fV76NSt0GX3lYMMdDNXyFYsr FK8QscHD/HULHnw2SF9AdqfGmjD/BveBdKrCN68nrlyRkglkWGwoskyE3g/quPddEoiX z6THWFh96QM2hKGVqxZBwzAycIFiCrBczrb+GRUyXAg6EwCstR8SB6apD96Hg7CB3UH8 +Dcynj0tgDSGteqetMZpxKOnZO7izW32iyUnU+j28txxTYUoaLRqNVPK0X57Sl0oAR8Q /JSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=YkO18S8Z; 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 q8-20020aa7da88000000b005221c3c7a2esi2160272eds.30.2023.07.23.08.05.57; Sun, 23 Jul 2023 08:06:21 -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=YkO18S8Z; 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 S229654AbjGWOub (ORCPT + 99 others); Sun, 23 Jul 2023 10:50:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229557AbjGWOua (ORCPT ); Sun, 23 Jul 2023 10:50:30 -0400 Received: from mail-qv1-xf31.google.com (mail-qv1-xf31.google.com [IPv6:2607:f8b0:4864:20::f31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40489A8 for ; Sun, 23 Jul 2023 07:50:29 -0700 (PDT) Received: by mail-qv1-xf31.google.com with SMTP id 6a1803df08f44-63cfe6e0c32so1927086d6.1 for ; Sun, 23 Jul 2023 07:50:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; t=1690123828; x=1690728628; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=XbJYLMBE6yZWZtHXhUUqaRNiGofik3CcRLGI3pFqykE=; b=YkO18S8ZdFq2T6J3xUhBXqe+9SNwwSJ7cixs31sAhRpASF13+CPFZHEg9o4u3AcqmB OPYq3xPQttUC3SQG9ok2raOKj8pJyeZViQtwciZWZmuXPnEOIfTO8ZzgxqGcPGyFHime 4LLa1KOAt2Q/S+9VTxORf1n5OE8eFSWas9CGs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690123828; x=1690728628; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XbJYLMBE6yZWZtHXhUUqaRNiGofik3CcRLGI3pFqykE=; b=Ie2JQZarTCsmZFk5Jmej6amd+QAZ2KYYLVm8LXor573NVzDuezokpasykyn10uRe5H ekqfDvPfW1nbUhrG8Zw3DSOM1eYXA2eEt+U4tyCtcnOVPX/znPhZxEAVYTLQ392YDNIw CLPn5puuRSjOtXJhfLGSb1aiM+NQBCn4lDgs08g1n5QZhjKq4J90Bc3EulM05vrATK05 g3qpK0RCo/7t8lzlUPMG/y756v5a2bMzjIiZ4WLPeI4KdVJO1sT5CjLxZHHSlaOvfdcH R2uA4Eyczsd+Qlk6Izdn+0fiGUEikZd1Qtbt/7ZuLLcv27s7SXG88Hzt8q0vxw5LtKBM U75g== X-Gm-Message-State: ABy/qLaiTHURV1mBPVtimewisvJoN+WIOKodzhBoefOfzj6JGx7eO5YT VIuFBI2zi7peycu1LbqQiGLSfBfMgl5eagmPaJQ= X-Received: by 2002:a0c:b551:0:b0:63c:f999:ba83 with SMTP id w17-20020a0cb551000000b0063cf999ba83mr1757454qvd.32.1690123828250; Sun, 23 Jul 2023 07:50:28 -0700 (PDT) Received: from [192.168.0.198] (c-98-249-43-138.hsd1.va.comcast.net. [98.249.43.138]) by smtp.gmail.com with ESMTPSA id s15-20020a0ce30f000000b00637abbfaac9sm97573qvl.98.2023.07.23.07.50.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 23 Jul 2023 07:50:27 -0700 (PDT) Message-ID: Date: Sun, 23 Jul 2023 10:50:26 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [BUG] Re: Linux 6.4.4 Content-Language: en-US To: paulmck@kernel.org Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, rcu@vger.kernel.org, Greg KH References: <20230720132714.GA3726096@google.com> <2b8fc10b-785e-48b9-9a38-5c1af81f9578@paulmck-laptop> <8682b08c-347b-5547-60e0-013dcf1f8c93@joelfernandes.org> <32aec6d1-bf25-7b47-8f31-7b6318d5238d@joelfernandes.org> <9b42cb38-8375-fc41-475a-2bd26c60a7b9@joelfernandes.org> <5dcf7117-cec7-4772-8aad-e100484a84dc@paulmck-laptop> <7bfde9f4-2bd6-7337-b9ca-94a9253d847f@joelfernandes.org> From: Joel Fernandes In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 7/22/23 13:27, Paul E. McKenney wrote: [..] > > OK, if this kernel is non-preemptible, you are not running TREE03, > correct? > >> Next plan of action is to get sched_waking stack traces since I have a >> very reliable repro of this now. > > Too much fun! ;-) For TREE07 issue, it is actually the schedule_timeout_interruptible(1) in stutter_wait() that is beating up the CPU0 for 4 seconds. This is very similar to the issue I fixed in New year in d52d3a2bf408 ("torture: Fix hang during kthread shutdown phase") Adding a cond_resched() there also did not help. I think the issue is the stutter thread fails to move spt forward because it does not get CPU time. But spt == 1 should be very brief AFAIU. I was wondering if we could set that to RT. But also maybe the following will cure it like it did for the shutdown issue, giving the stutter thread just enough CPU time to move spt forward. Now I am trying the following and will let it run while I go do other family related things. ;) +++ b/kernel/torture.c @@ -733,6 +733,6 @@ bool stutter_wait(const char *title) ret = true; } if (spt == 1) { - schedule_timeout_interruptible(1); + schedule_timeout_interruptible(HZ / 20); cond_resched(); } else if (spt == 2) {