Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp9334876rwb; Thu, 24 Nov 2022 11:10:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf58hYJfbDIO/k9jOr31ASKNpNAWshtce4nbX5foKTxg37QmhufNkYAH07cMcxXa8fzlMk/k X-Received: by 2002:a17:906:7845:b0:7ba:8b8a:4174 with SMTP id p5-20020a170906784500b007ba8b8a4174mr5925813ejm.713.1669317032779; Thu, 24 Nov 2022 11:10:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669317032; cv=none; d=google.com; s=arc-20160816; b=0du1VkCSZ878IQSz6kXUnnvE2IEcimvZ3Ez10KkqPrV+1Isq4H+ZLsfs/k3Ldf6ZVz P0Kjk7aQTpPE5Ly+CVEfXgXQN6LZfuYsZnyEtez2H4cNQZvC0DINdbuQ02GjMarmK2N0 +vokKFMlRFH7eROPbgJ/ymMixIQsIp70QYd48DAn7i9zZ5VSUvdy4ILk9upsJqPI5DsW j5y1aY+K249Oj17s2vksoZsBogFaZ9asCaOdd7g/twSvVPMtZ5DG35mwrFsSmyt2qovo zD4NB4NtSMr9KUBDvkG21kxVwKQjjcSZGi0e3kNqlWBn03GB+ehqI3+asrIyVqtF8VCz q4bg== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=7dAoyy9RWI6PwH8ikLVceJ9VNuQvqycZEnl4Bih8lCM=; b=cmeq5RSS/49qrQszcFbsMyg84M0BhU9+/UkQ5i19xboyxmoInY+RM2F9Y06KRpe/lA 249RTKiK60eMQXFPJCz39/3yQ2z/GUDSZtaTtHe0On0yPxSSlciq8G9JsC/Y6aLR9OSx HtT93T/tevFmaeb4hHsraElo/aJCpZF7QGSH9KTs3/noe1Iwu3+i4L1VpoQPrRhBLNBO tYTKLdpqDVyA6Lv9JfrKsIGm4QV2JT5DGKqWlfRwRkxINrUPaEkQS7ee6t1t199qQaPh snfjIprYbEtsblKcrL8knXfooO/DxFYRBTHQgk9xuXZkciJhESuSmsES56e1uMiSnXUx QltA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=USWos8CI; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=Hl43D+hz; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr17-20020a170907721100b0078d83fb6672si1695181ejc.118.2022.11.24.11.10.08; Thu, 24 Nov 2022 11:10:32 -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=fail header.i=@alu.unizg.hr header.s=mail header.b=USWos8CI; dkim=fail header.i=@alu.unizg.hr header.s=mail header.b=Hl43D+hz; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alu.unizg.hr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229706AbiKXSEV (ORCPT + 86 others); Thu, 24 Nov 2022 13:04:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229531AbiKXSEU (ORCPT ); Thu, 24 Nov 2022 13:04:20 -0500 Received: from domac.alu.hr (domac.alu.hr [161.53.235.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5470832AD for ; Thu, 24 Nov 2022 10:04:18 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by domac.alu.hr (Postfix) with ESMTP id 2A4DD604F6; Thu, 24 Nov 2022 19:04:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1669313057; bh=2mrmrx/ol/n+W0wsa62wEuHlQwzw5KLEYMW2CgS4dHY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=USWos8CIZEoBfBs9c0SifpeAAIXx1ZswPPHNnCnzbtsHqHYv08dhGJEttbKq4ndDi lu5jKVZQTgioFM6hS2RS2klXWXI2k/BiZJn/noRqf4H3zwkdBeNcvERN8DT6/w1p+L B6Dv4XonqC8agKNInm2GwrkVjyDDE/n9pf5TfUTeyjkibXP75lv5Lccuv4+uTokD2H RLHDrv3Z8n3KHIvmopwRCcKjPeD8GGmxioVdGc4ctLCWjWv1qHIeCVjddV2ruZMfRM 1354kgZqERRJrxNqtM846d8z8IQWzRE2MGp2Hi1Xa7k8hsg19/0AKquxMZdgRrsNQb CYwdZ+UXxKZNg== X-Virus-Scanned: Debian amavisd-new at domac.alu.hr Received: from domac.alu.hr ([127.0.0.1]) by localhost (domac.alu.hr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FAJBotsxYo8B; Thu, 24 Nov 2022 19:04:14 +0100 (CET) Received: from [192.168.0.12] (unknown [188.252.198.243]) by domac.alu.hr (Postfix) with ESMTPSA id A5D0E604F5; Thu, 24 Nov 2022 19:04:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=alu.unizg.hr; s=mail; t=1669313054; bh=2mrmrx/ol/n+W0wsa62wEuHlQwzw5KLEYMW2CgS4dHY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Hl43D+hzyZNNRv9Zg03vfNRKGEhuhhW9dm722r1j1nwgwI+QFlkYjGgydmHPMxxI1 0BlbmvSyL2fvjFL+vXiWr357rOsYrfnsVhtrjgdoqcxvx0JdOkt5B7G2GVrCi+JBRZ 3HTvwXMDVj29lCw+0iHVSHBse+Q0qAlU6iGjKs7UbA7vP0CF+z5EPK8LX4rZkfhZwP V1yF+rz2fID5tbEdX5y8ku6Ugd5e/jJ4BQXj347S5bWXwArnz52XpcESBnqOnP+KaR tVApnUG//iSOG3jmqDHoznABsrtaXgOAtfJJYp9Ws/lOsyyrbH0f8y9yIs/qf3+6i3 IzEbxe8F1nknw== Message-ID: <9486bc0a-345e-a93c-581f-50e2a06a3314@alu.unizg.hr> Date: Thu, 24 Nov 2022 19:04:13 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: BUG: BISECTED: in squashfs_xz_uncompress() (Was: RCU stalls in squashfs_readahead()) To: paulmck@kernel.org Cc: "Elliott, Robert (Servers)" , Phillip Lougher , LKML , "phillip.lougher@gmail.com" , Thorsten Leemhuis References: <20221120175016.GC4001@paulmck-ThinkPad-P17-Gen-1> <8e62a31f-3ef8-71ec-6181-2afa56eeb5db@alu.unizg.hr> <20221120192150.GE4001@paulmck-ThinkPad-P17-Gen-1> <8c9eb87b-5623-730a-5cf6-72d831ef797a@alu.unizg.hr> <20221122020734.GD4001@paulmck-ThinkPad-P17-Gen-1> <20221123144415.GX4001@paulmck-ThinkPad-P17-Gen-1> <20221123190932.GF4001@paulmck-ThinkPad-P17-Gen-1> <20221124171933.GU4001@paulmck-ThinkPad-P17-Gen-1> Content-Language: en-US From: Mirsad Goran Todorovac In-Reply-To: <20221124171933.GU4001@paulmck-ThinkPad-P17-Gen-1> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,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 24. 11. 2022. 18:19, Paul E. McKenney wrote: > On Thu, Nov 24, 2022 at 06:06:13PM +0100, Mirsad Goran Todorovac wrote: >> On 23. 11. 2022. 20:09, Paul E. McKenney wrote: >> >>>>> If you build with (say) CONFIG_RCU_EXP_CPU_STALL_TIMEOUT=200, does >>>>> this still happen? >>>> >>>> BTW, you don't need to rebuild the kernel to change those parameters; they're >>>> module parameters, so can be modified on the kernel command line (if needed >>>> during boot) and sysfs (if only needed after boot). >>>> >>>> For sysfs the syntax is: >>>> #!/bin/bash >>>> # set rcu timeouts to specified values >>>> echo 60 > /sys/module/rcupdate/parameters/rcu_cpu_stall_timeout >>>> echo 21000 > /sys/module/rcupdate/parameters/rcu_exp_cpu_stall_timeout >>>> echo 600000 > /sys/module/rcupdate/parameters/rcu_task_stall_timeout >>>> grep -Hs . /sys/module/rcupdate/parameters/rcu_*_timeout >>> >>> Excellent point, thank you! >>> >>> I hope that this makes Mirsad's life easier, perhaps featuring less time >>> waiting for kernel builds and reboots. ;-) >> >> Unfortunately, the first stall and NMI occurs before any system script or setting a /sys/module/rcupdate/parameters/* >> could be executed, as second 14 of the boot process: >> >> [ 14.320045] rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 7-.... } 6 jiffies s: 105 root: 0x80/. >> [ 14.320064] rcu: blocking rcu_node structures (internal RCU debug): ... >> Probably something sensible should be set in the case of KASAN build. This example of stall >> apparently has nothing to do with squashfs_readahead(). > > Can't have everything, I guess! > > How about building your kernel with CONFIG_RCU_EXP_CPU_STALL_TIMEOUT=200? > Again, mainline defaults to 21000. Did just that, and so far there is no modprobe stall in second 14 of boot at least. Looks good. Probably it is too early to say anything in general before more uptime and stress load. BTW, the 20 for CONFIG_RCU_EXP_STALL_TIMEOUT wasn't my invention, but it comes from generic Ubuntu stock kernel (but without KASAN or KMEMLEAK config options): # grep STALL /boot/config-5.19.5-051905-generic CONFIG_RCU_STALL_COMMON=y # CONFIG_HEADERS_INSTALL is not set CONFIG_RCU_CPU_STALL_TIMEOUT=60 CONFIG_RCU_EXP_CPU_STALL_TIMEOUT=20 # Thanks, Mirsad -- Mirsad Goran Todorovac Sistem inženjer Grafički fakultet | Akademija likovnih umjetnosti Sveučilište u Zagrebu -- System engineer Faculty of Graphic Arts | Academy of Fine Arts University of Zagreb, Republic of Croatia The European Union