From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7DDC3C4332F for ; Tue, 22 Feb 2022 16:27:27 +0000 (UTC) Received: from localhost ([::1]:56960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nMY0c-00079u-Dp for qemu-devel@archiver.kernel.org; Tue, 22 Feb 2022 11:27:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nMXs3-0002nz-GR for qemu-devel@nongnu.org; Tue, 22 Feb 2022 11:18:35 -0500 Received: from [2a00:1450:4864:20::52e] (port=40881 helo=mail-ed1-x52e.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nMXs1-0005mG-Ss for qemu-devel@nongnu.org; Tue, 22 Feb 2022 11:18:35 -0500 Received: by mail-ed1-x52e.google.com with SMTP id h15so21177294edv.7 for ; Tue, 22 Feb 2022 08:18:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=URPj+p7sdMUkm9Pe63Gwcq+49cwFR5bq3Aw3LiPoRw0=; b=iFkQ1aFrwvOdh4ARp6kWyMvXjQX/2ie26TP4/JGoGJnewrF5TL/TyQ4hqno128iGGx iky0NLM9ReL7OaKN4IN7Qh3Oohua36yGCYJ9lYe9OOJoIAz0CDlUZtOlSAEtAvnjQVqQ RWKJ+v9hDZmaDMl3kviYYUgsP29FZXaAc5EuvD9S2QLkvxxAAVrA2f1YJGlC0bqmM1ob DppZYiPqzlnOl5WQO1ACu6Zxo4To727Fh1HtDgzhqT4jco2rb5SY5MCvOkhL/9+1dqn4 tZQNmwYc9kkkj3WIkTTxTlNyQcFwQJ3yukI4PUaAP7odxRUUCnpC3wW55qq/N0e3cWz3 c2xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version:content-transfer-encoding; bh=URPj+p7sdMUkm9Pe63Gwcq+49cwFR5bq3Aw3LiPoRw0=; b=7sSzu2LueGTuwnoCKMutOY6GZPzqB6EVOiQPKIsJZz5shCFN4ODIt+yEdq3qn9/odo KwPnDhM9UFWSuMOV5x0lYJJPFGWToR2J3Snufk1LaetgNZ3GB9VIwgMzA1PlbCLQSiS9 n4ALNDrxrdTKpISkJAIgF4bwWyKmk6mTLMdwPBC76thyQvUQYpVC+9EHrsqJ1NXmjShm EDnY+RpFYUW7DKabpRw4Nut7p9eYtNs4ufHNDyFKw0N8O+vjk428MTQ+b/alIZRyKD0V Ox+iV3eIrLwgBz/wRqIat2SMln1Wk4oo0hCWfhXAZZj5GKoJLpU6TbE+LU0Um0oO9xje xEVA== X-Gm-Message-State: AOAM531PqRxObcaylXqyEgnstolAowOw2qoKGGoWlTgmoQFc30mTUBrx 81WSh6i17tO08O216oHgMAuTqw== X-Google-Smtp-Source: ABdhPJyzxeIZ3ROwIeTAJOK/TfPRY4ZoL+lRVF9ECyyQ3ZH3KEty9D7PWoOU9E/pgMAJs8wq1Ce2IQ== X-Received: by 2002:a50:f689:0:b0:410:a334:2b9f with SMTP id d9-20020a50f689000000b00410a3342b9fmr26487899edn.251.1645546711246; Tue, 22 Feb 2022 08:18:31 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id i8sm1980974edt.49.2022.02.22.08.18.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Feb 2022 08:18:30 -0800 (PST) Received: from zen (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 78CB41FFB7; Tue, 22 Feb 2022 16:18:29 +0000 (GMT) References: <874k4xbqvp.fsf@linaro.org> User-agent: mu4e 1.7.8; emacs 28.0.91 From: Alex =?utf-8?Q?Benn=C3=A9e?= To: qemu-devel , Laszlo Ersek Subject: Re: Analysis of slow distro boots in check-avocado (BootLinuxAarch64.test_virt_tcg*) Date: Tue, 22 Feb 2022 16:17:23 +0000 In-reply-to: <874k4xbqvp.fsf@linaro.org> Message-ID: <878ru2nacq.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::52e (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::52e; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x52e.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Cleber Rosa , Oleg Vasilev , Richard Henderson , Emilio Cota , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= , qemu-arm , Paolo Bonzini , Idan Horowitz Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Alex Benn=C3=A9e writes: > Hi, > > TL;DR: > > - pc-bios/edk2-aarch64-code.fd should be rebuilt without debug Laszlo, Would it be possible to do a less debug enabled version of EDK2 on the next update to pc-bios/edk2-*? > > So my working theory is: > > - booting with EFI leaves a number stale code pages > - as the kernel boots it clears these pages triggering lots of > slow-path writes > - result very slow boot > > I think the only real solution is to improve our TB invalidation code > but perhaps another approach would be to detect a high TB invalidation > churn and just tb_flush the whole thing and start again? > > Any thoughts or ideas? --=20 Alex Benn=C3=A9e