Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1235644rdh; Fri, 27 Oct 2023 08:19:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IErhQEDYvVq4lzNe7XvmBwfD4tlOAwOv9/OcOwN06flhGvA0sbxKsQsRLy+z1juFIQ26dOY X-Received: by 2002:a81:7641:0:b0:59b:bd55:8452 with SMTP id j1-20020a817641000000b0059bbd558452mr2939614ywk.36.1698419962380; Fri, 27 Oct 2023 08:19:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698419962; cv=none; d=google.com; s=arc-20160816; b=EZV/G+R6oM9hwed20lOEr0N2IVDzV0ltP4SjIpCPJIoYIuCkPMl4BhWGPs7777n4qu n4s+Zx8dmlogWOAzFsNWclXLcNne+X9wMOEvgFUUrkmpkQgCNtqVspLAuVZOM72/dAu+ IeuAnuCMpFXbD/AQYRsjyra5Qc2EDWXO32zEbZSKkXM9Zc6w2btG29s6ZJ70gyeONhLU 7EvPg/a4UnaozntyjNWFZfgIlzUe4bqS+1dopoO9GU70M568Ofw56xcUG1QD+QuLLY5G D0b6SXZh1ZDoZDK1gMjc1Zl9c/g9nycuWCN5lepejnX49cjhA6fihvCD0CjX5Uxj6hI+ 8RlQ== 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; bh=GNUN297dtdcy+PXAU7COvSt+puxGVkgqKKLKFl69wJc=; fh=oWu434rmZ24/n6ymVvF/kYgSWmJ5efOFG4yIg3XECPc=; b=T1wT/ob8S7hPRMJcdQUZjY11CdIUskhuPosJ9WpBwRbInOUGTJDMKPeP+1U1BFvjxG wUu7v8zXJHqiB7yu2xlUeHf0SBrnkMLlEHVOMCeWrR6M+Mh4aKVv5c8Xg4ETWFw1HZXi aU1K3UEY0XufxuW71Dt85nDr+BzygoO6xdlvRRhEsPrya4KN+EeadAI1+8GYKr253gr/ gCu8lisl0Cy0QyJBnDilPy83T+Esn6Y1f3hTcMlMUjssAo1yN83SFPS7EPcJ5XZxyrUA 0qoKPfPFpWkuAjAtCItSxuASy9ULhwPYyin/ZQFhbaMpCdjhJg/Ap15nv3QOPqWv8ZXV ALow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id h3-20020a0dc503000000b0059e8a6bd2f1si2783017ywd.533.2023.10.27.08.19.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 08:19:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 6D1FD82EA17D; Fri, 27 Oct 2023 08:19:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346314AbjJ0PSs (ORCPT + 99 others); Fri, 27 Oct 2023 11:18:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346302AbjJ0PSr (ORCPT ); Fri, 27 Oct 2023 11:18:47 -0400 Received: from www262.sakura.ne.jp (www262.sakura.ne.jp [202.181.97.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A065196 for ; Fri, 27 Oct 2023 08:18:44 -0700 (PDT) Received: from fsav413.sakura.ne.jp (fsav413.sakura.ne.jp [133.242.250.112]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 39RFIfM4034570; Sat, 28 Oct 2023 00:18:41 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav413.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav413.sakura.ne.jp); Sat, 28 Oct 2023 00:18:41 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav413.sakura.ne.jp) Received: from [192.168.1.6] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 39RFIWlw034540 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Sat, 28 Oct 2023 00:18:40 +0900 (JST) (envelope-from penguin-kernel@I-love.SAKURA.ne.jp) Message-ID: Date: Sat, 28 Oct 2023 00:18:31 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] clocksource: disable irq when holding watchdog_lock. To: Thomas Gleixner , paulmck@kernel.org Cc: John Stultz , Stephen Boyd , LKML , Sebastian Andrzej Siewior , x86@kernel.org, joel@joelfernandes.org References: <80ff5036-8449-44a6-ba2f-0130d3be6b57@I-love.SAKURA.ne.jp> <878r826xys.ffs@tglx> <90361195-4309-4a02-bd3f-8ee606e6d35b@I-love.SAKURA.ne.jp> <5ef329fe-1f3b-4d81-9625-9738620f051e@I-love.SAKURA.ne.jp> <87r0lq3j2t.ffs@tglx> <2c822e13-775c-4e55-bf2f-152dbca0c910@I-love.SAKURA.ne.jp> <871qdkch0g.ffs@tglx> <8734xy5r3i.ffs@tglx> Content-Language: en-US From: Tetsuo Handa In-Reply-To: <8734xy5r3i.ffs@tglx> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Fri, 27 Oct 2023 08:19:19 -0700 (PDT) On 2023/10/26 6:28, Thomas Gleixner wrote: > I have no idea what the kernel, VirtualPox or Windoze are doing during > that time. I fear you need to add some debug on your own or if > VirtualPox has a monitor/debugger you might use that to inspect what the > guest is doing. Although VirtualBox has a debugger ( https://www.virtualbox.org/manual/ch12.html#ts_debugger ), I'm not familiar enough to use it; I'd like to debug from the guest side. I found a minimal kernel config. Changing https://I-love.SAKURA.ne.jp/tmp/config-6.6-rc7-ok from CONFIG_HZ=250 to CONFIG_HZ=1000 likely reproduces this slowdown problem. This difference explains that this problem is timing-dependent; something unexpected event is happening while bringing up secondary CPUs. Fedora kernels have CONFIG_HZ=1000 and Ubuntu kernels have CONFIG_HZ=250. I guess that changing CONFIG_HZ value is nothing special from the point of view of hypervisors and host OS. Can somebody reproduce this problem using different hypervisors and host OS? You can try whether booting e.g. Fedora-Everything-netinst-x86_64-Rawhide-20231018.n.0.iso , Fedora-Server-netinst-x86_64-37-1.7.iso , Fedora-Everything-netinst-x86_64-34-1.2.iso etc. with "nosmp" option added reaches GUI installer screen much faster than booting these ISO images without adding "nosmp" option. Alternatively, you can also build a vanilla kernel using config-6.6-rc7-ok with CONFIG_HZ changed from 250 to 1000, and boot that kernel like a bare kernel command line shown below. Trying /usr/libexec/qemu-kvm -m 4096 -smp 8 -nographic -append 'console=ttyS0,115200n8 panic=1' -no-reboot -kernel /boot/vmlinuz-6.6.0-rc7+ using qemu-kvm 1.5.3-175.el7_9.6.x86_64 on kernel 3.10.0-1160.102.1.el7.x86_64 on a physical host PC cannot reproduce this problem. But trying /usr/bin/qemu-system-x86_64 -m 4096 -smp 8 -nographic -append 'console=ttyS0,115200n8 panic=1' -no-reboot -kernel /boot/vmlinuz-6.6.0-rc7+ using qemu-system-x86 1:6.2+dfsg-2ubuntu6.15 on kernel 5.15.0-87-generic on VirtualBox on Windows 11 reproduces similar slowdown (and 5.15.0-87-generic kernel sometimes emits soft lockup messages). Thus, someone might be able to reproduce this problem on a nested virtualization environment.