Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1820773lql; Wed, 13 Mar 2024 09:02:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU9iGoZgKQoxmW3TwQbrrVGRK6e/atW7MJxnyBfhb2XC/BMSxPcy6GsQQDs/E45lg56HU0vUJasQJYRQsEszfpfCfEdUpQskzZSXoKnMQ== X-Google-Smtp-Source: AGHT+IH4fG1VjgUf6tE0HR2Ko26l16GfMPjt3eU0RI1/kNBpTNhgVZrsXsLgF1AdbQWEJzBiuoVd X-Received: by 2002:a2e:8891:0:b0:2d4:6e71:59ef with SMTP id k17-20020a2e8891000000b002d46e7159efmr1212065lji.5.1710345746150; Wed, 13 Mar 2024 09:02:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710345746; cv=pass; d=google.com; s=arc-20160816; b=Bp7/xqnLB/Wr6H38DoaYk4hISf0fmqkXeiUUWZmISNP9eGwCXY/UkRChwOiFQtHhBZ v8pGLmwoPGcesNNOAxB8AM19Afg591/ttF8+087J3ToQK4TXRoDrc2WoO9mrIsC/3czq XJ7sOaT8tzrzOmjSzMu7FmBF5jJ1nzHV/RQTnhAL+kpXqT/maHRWd3cy3K17+2a3ji1j b/+AzFhTpf8LPKIInLx8p8DZLw4bbIGLOEJ+NFscRZ71hMfpVljKoHL7U69OZ5X+DMdJ j0E7xxFa4cJR7DZ/UtxXgw3vFJuLmHxh7LJZxMDgXzXGQxZhENgiy2swNk2ObPqVG3ss Z8Gw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=PhI7fuOW7O94CdymJJXoJUrg+PQKoUQdDuMwFu4gOLk=; fh=ll6Z8vTnq61Z3ewGP+jK/pRXwrPs92Vy7Fb9I5haO1o=; b=CoaEfzIRUJFBDUR5BeC3WgXzK+H09t6nC0AVKCMCG7BV3jvPq2Z2Ua+6LklL/75uol H8H7t1Zv5fQs0qmc1IAwtZPa64ocYSQdz0HUK6m2N2fdq/cayhMukfWK0/Q7CQPK+wBF f4Jy2L9xtbxOnPaCoHJvpQpj1ULL+kRdU0Vxlvs06X1+rXDgvtcfFEztZZBuUmvtAybR V4JPiVgqc8uUfV4QNwhSzZ+ynSd6RbNZiLBDlwvjSLuhxPnR8oQFU8rZMXqXkx1BOM5n T+eV/oDR0YzmP4t+UQ3Nt9F6J+oWCl1i07kk/OU+BCRyHg7de+9bec2KCnWAHwS994x5 9wJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=QnkD+bn7; arc=pass (i=1 spf=pass spfdomain=joelfernandes.org dkim=pass dkdomain=joelfernandes.org); spf=pass (google.com: domain of linux-kernel+bounces-101709-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101709-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g39-20020a056402322700b0056871afc5absi1861428eda.326.2024.03.13.09.02.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 09:02:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-101709-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=QnkD+bn7; arc=pass (i=1 spf=pass spfdomain=joelfernandes.org dkim=pass dkdomain=joelfernandes.org); spf=pass (google.com: domain of linux-kernel+bounces-101709-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-101709-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7CA281F23205 for ; Wed, 13 Mar 2024 16:02:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B27E5481D0; Wed, 13 Mar 2024 16:02:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=joelfernandes.org header.i=@joelfernandes.org header.b="QnkD+bn7" Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EF29D481A5 for ; Wed, 13 Mar 2024 16:02:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710345722; cv=none; b=NvXjp2RlTKiVDVFABNo7gRFNTR7r6h7Wf290MBGgLYDHiC9HTGA4YhthsnPf5Gimaa08sMwwQ+yjVk8Y4jKm7p0IdNlcKI1YeoSPzZfRl//KSz6RemffLPBYDAtotobwLvzCSKsESlK4Av5OBbewTVku9TqDGULuWAaO+Oenb+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710345722; c=relaxed/simple; bh=skEFlYVRbGKrwaoRI9SBnK72i4qW8cNFfPFUKmMt/V4=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=In5phVLK67Frjo5wVEKJLT8ZYhF7SRIlbrk25B2pWRBfkAg2ytRIB8antGp6Trtk7HZuob1NxyjRUV3zC3ycOLacjVNEwbEzT//o63Jekzp85u7IwMgUh+f5kqTLFyTjAf53xED1dxqxhGDL1j2w3lehFhbEl76JWAe49qN4sLk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=joelfernandes.org; spf=pass smtp.mailfrom=joelfernandes.org; dkim=pass (1024-bit key) header.d=joelfernandes.org header.i=@joelfernandes.org header.b=QnkD+bn7; arc=none smtp.client-ip=209.85.208.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=joelfernandes.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=joelfernandes.org Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2d4541bf57eso16699451fa.2 for ; Wed, 13 Mar 2024 09:02:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; t=1710345719; x=1710950519; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=PhI7fuOW7O94CdymJJXoJUrg+PQKoUQdDuMwFu4gOLk=; b=QnkD+bn71GHRBfgc2+oSSOVxJjg7U9yLCwoek6EifD2I2yLHdXnWMA/utDeelZjPVS 3wBbvzkX+2tI82+N4Y2GQ4/JUz2q0VA9k5sLZ61XoZmid8cfkRR1QOAzQM1/xTwsDk6P 19ZqznP79EZXH9VUbFd/XBScIXpM7kSFSNdME= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710345719; x=1710950519; h=content-transfer-encoding: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=PhI7fuOW7O94CdymJJXoJUrg+PQKoUQdDuMwFu4gOLk=; b=kVD0cbwx7lzjtyP+kCX8aMv38OahVODgCrovH2BNWZHdA1edsv0u8TWQKXCn1HegBy 8u6BpGIY/agGJqUOY7crrMnXSAYb0SmIFL5iIoWZ+Vr6SWRW04WhawunjJ48D7ksfqrY SHXIWmApHsPa6DLy9V63wnUA325NJiBIw8jj/aLkVafalQEaJy05hlvl2QMRtdi5r+KJ YTQAWeGXCASHHD/QVRkEB50Ri3BVd10W8xV2iu8HLokpyddXfu2CavAgzHuAc771Zyj/ C+1rYobka8DMjq45JXReLunanOvt4Y5necOPgXqghQgwsTqc1NOQ1MGtqco8zyWVhab+ ebRA== X-Forwarded-Encrypted: i=1; AJvYcCXERvHMfVlz7CTEn4wGPWgxPSqSHIUBCYW5xS9UjLl3o20e44Ghf9rrgbiiIZFLIW5LCjrMPH5U7ZzaTSVG/hdf2V9xLqw9urB68Ezf X-Gm-Message-State: AOJu0Yy+u+Wju/0hRGbELBMQ2yKuo1f7ZPpIkKBQ5USyNxlaAhD36Hww XMyEN/Hr9UWIxWkRKR1L7RPP7dPRcFq+jb2aWq48l5ML5iqujJ5i4Or7Y3VR6sNFkrOm5lDEDZs zEG5qUD2PDvsXGMVDJqXOBbTm/GOJbp+4qXCEvA== X-Received: by 2002:a05:651c:3c9:b0:2d4:6e5:2cd6 with SMTP id f9-20020a05651c03c900b002d406e52cd6mr2361699ljp.25.1710345718592; Wed, 13 Mar 2024 09:01:58 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <4274be61-60bd-4e1e-9c16-26e6e5e06f65@gmail.com> In-Reply-To: From: Joel Fernandes Date: Wed, 13 Mar 2024 12:01:45 -0400 Message-ID: Subject: Re: Unexplained long boot delays [Was Re: [GIT PULL] RCU changes for v6.9] To: Boqun Feng Cc: Linus Torvalds , Florian Fainelli , linux-kernel@vger.kernel.org, kernel-team@meta.com, paulmck@kernel.org, mingo@kernel.org, tglx@linutronix.de, rcu@vger.kernel.org, neeraj.upadhyay@amd.com, urezki@gmail.com, qiang.zhang1211@gmail.com, frederic@kernel.org, bigeasy@linutronix.de, anna-maria@linutronix.de, chenzhongjin@huawei.com, yangjihong1@huawei.com, rostedt@goodmis.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Florian, On Tue, Mar 12, 2024 at 7:48=E2=80=AFPM Boqun Feng w= rote: > > On Tue, Mar 12, 2024 at 02:44:14PM -0700, Linus Torvalds wrote: > > On Tue, 12 Mar 2024 at 14:34, Florian Fainelli w= rote: > > > > > > and here is a log where this fails: > > > > > > https://gist.github.com/ffainelli/ed08a2b3e853f59343786ebd20364fc8 > > > > You could try the 'initcall_debug' kernel command line. > > > > Right, that'll be helpful. > > Besides I took a look at the config Florian shared, no TASKS_RCU, > RCU_LAZY or RCU nocb is enabled. So probably the only left changes in > the PR are around RCU expedited. Florian, could you see if you can build > and test with CONFIG_PROVE_RCU=3Dy (you need to select > CONFIG_PROVE_LOCKING for that)? That'll call synchronize_rcu() + > synchronize_rcu_expedited() before and after we switch > rcu_scheduler_active, and it may provide more information. Thanks! Adding to everyone's suggestions, could you also try booting with "rcupdate.rcu_normal=3D1" ? This will disable expedited RCU and help us further confirm that it is indeed expedited RCU (and then we can look into fixing that). Also there are 2 additional users of expedited RCU in this release I notice= d: 78c3253f27e5 ("net: use synchronize_rcu_expedited in cleanup_net()") 1ebb85f9c03d ("netfilter: conntrack: expedite rcu in nf_conntrack_cleanup_net_list") Could you also try reverting those patches as well, and see if the issue goes away? thanks, - Joel On Tue, Mar 12, 2024 at 7:48=E2=80=AFPM Boqun Feng w= rote: > > On Tue, Mar 12, 2024 at 02:44:14PM -0700, Linus Torvalds wrote: > > On Tue, 12 Mar 2024 at 14:34, Florian Fainelli w= rote: > > > > > > and here is a log where this fails: > > > > > > https://gist.github.com/ffainelli/ed08a2b3e853f59343786ebd20364fc8 > > > > You could try the 'initcall_debug' kernel command line. > > > > Right, that'll be helpful. > > Besides I took a look at the config Florian shared, no TASKS_RCU, > RCU_LAZY or RCU nocb is enabled. So probably the only left changes in > the PR are around RCU expedited. Florian, could you see if you can build > and test with CONFIG_PROVE_RCU=3Dy (you need to select > CONFIG_PROVE_LOCKING for that)? That'll call synchronize_rcu() + > synchronize_rcu_expedited() before and after we switch > rcu_scheduler_active, and it may provide more information. Thanks! > > Regards, > Boqun > > > It will make the above *much* noisier, but it might - thanks to all > > the new noise - show exactly *what* is being crazy slow to initialize. > > > > Because right now it's just radio silence in between those > > > > [ 1.926435] bcmgenet f0480000.ethernet: GENET 5.0 EPHY: 0x0000 > > [ 162.148135] unimac-mdio unimac-mdio.0: Broadcom UniMAC MDIO bus > > > > things, and that's presumably because some random initcall there just > > takes forever to time out. > > > > Linus