Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5518102rwd; Sun, 18 Jun 2023 13:16:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7DiMIl3Y+3NBCSu4kIek3oG1YxRSyKCPf96IMSmwvl7Nz5+KX9GgdRm85K1qlNt5A/P1az X-Received: by 2002:a05:6a00:14d2:b0:64f:6c01:d580 with SMTP id w18-20020a056a0014d200b0064f6c01d580mr11484621pfu.14.1687119383492; Sun, 18 Jun 2023 13:16:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687119383; cv=none; d=google.com; s=arc-20160816; b=gpTVFbUT/9fgEYDwJlNwKvU8pDNO8IEtWZDWfw/TYKH1jjPpLy9RC5nwGUqZxRlq/3 NDrPhZyeFbmE0Wkzt/N1AhLzppLMOjuRBeA4JV6grMOPl3srJAjzcCwy5nzFq5X1wbrR t/rgXBOkSdSCBLcqMGM3tD7UBsqF+LvXEVCpe/HQjzQoT9n55Mk+CfPLCqXv+kiLBwUM eIb89Fxbup7izdmt5hgFLCMRAn+xO3STri+jNz1vL6ZhCCEn6EA6ctBiaJYJeOF7kZHz /YvZNALWDzYyyeTC0X/MwtlsCysWkcDtDldlyCpOoPEEVHeCMo59iZqw/F6HLoPXQM37 lcCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=mpfISiVhGBFvYu3AQzytJ9eyp0qWbNPzT0F/TqGcEF0=; b=FD3DtWbSbmXAouqwYgAPkaHnofm1Fbl33qlo9hVcPJEodawaHyiCFfyLY3t1tB+aa5 n316bTsohaD+NsT2Z2KoJUJ9Fx5PAd4w+E8n+y8k0x/fkUZAzN1HE54Wf5Go2C0MOKDn wmwqH+kuVPE/AbbokkiG3RNqRV48VGhsRAKE3OT2rV4vS8FJ0Hu6mAx79D4IIuyl+39i UUr4NOm1qPBHNSO2NUv/b6LETmpkEsCRmMpA0HYNcp7ju219xfwL9ZsyV3CDSWGNyKRe LzhG1Di5sDbOcIFcBS3i3EuP1v6ObxSObiie69hgejqHMtYQl2tTMYCh5qRmQ8tKgQ5y IxGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=BI4IVSXI; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q4-20020a638c44000000b00553810ea8e5si709916pgn.303.2023.06.18.13.16.06; Sun, 18 Jun 2023 13:16:23 -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=@google.com header.s=20221208 header.b=BI4IVSXI; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229523AbjFRULw (ORCPT + 99 others); Sun, 18 Jun 2023 16:11:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjFRULu (ORCPT ); Sun, 18 Jun 2023 16:11:50 -0400 Received: from mail-qt1-x833.google.com (mail-qt1-x833.google.com [IPv6:2607:f8b0:4864:20::833]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5E59E49 for ; Sun, 18 Jun 2023 13:11:48 -0700 (PDT) Received: by mail-qt1-x833.google.com with SMTP id d75a77b69052e-3fde9bfb3c8so115291cf.0 for ; Sun, 18 Jun 2023 13:11:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1687119108; x=1689711108; 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=mpfISiVhGBFvYu3AQzytJ9eyp0qWbNPzT0F/TqGcEF0=; b=BI4IVSXI0OmI7HSHsHlrapOhxlYQr88irtqXtejFQDdwi0ENBjBoT+XLb8GlVX5ye2 2RKZIVa3SgmrzIbhLz9gPTVxEaHp2aLuGzJABn2V8qcyj1r5n7W74CILO0agM4yRBdqp 1RaptWkZvNHDOFx+VjmcCLiDP8C+KTiX8SbGmrEKzvHmrSeItS1P0Xmdw5h0oqtFiDy4 AOhW0Kb490uZt+xyTNM54SZyWZrBQ/OOSALJEaw5URHLWQ5/4/9LTWbU9KUB5nzr8SkC EiNHGrA/DNhBI3N/ps22/XwwMptyPwh1WFUc37QSRtqZWWbsx8o8/qqFNZmnqhSquaII BNYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687119108; x=1689711108; 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=mpfISiVhGBFvYu3AQzytJ9eyp0qWbNPzT0F/TqGcEF0=; b=Ps6dJsZT4Xue6lhR5wsYT/MJzvmIpdFeZ2sJZqcT+YxfDigKUXCcFN6b2QrSztxEcv W2wV6nx6Fcig6U08IC8z1y6BQ6LhF5vqViM0QmVnREATw3cdKx5ScwM6qOPJT5FRHnXo 55C3LKhhVjaT7YsLzv2kR0cOYfHqsbb3YbvfjL9XiKtdH3/xpUedPA6k43dbpm8kQyLL B2YFinO7illS3l6hmi+0f5vtovR0DcFjKUM86wXIqD9yeFCKUpU1NsJEJrvdgKqcIMJz nGae/qx1Lo/9ANhTRu0pZawgOteDBBwGsXaR3UbWGKPXPDP+OUagqvAhoAG/25/OwUG7 MnLg== X-Gm-Message-State: AC+VfDxGVCBTpuziW850g7n2m+mm6k+HjuWQ5gox6UX2TGJjWuIjRWYz OQrI5OHJDhNuWgjD3AHiF6HBo0kS4L8Ng+EvHXPLFw== X-Received: by 2002:a05:622a:85:b0:3f8:5b2:aeed with SMTP id o5-20020a05622a008500b003f805b2aeedmr773688qtw.21.1687119107794; Sun, 18 Jun 2023 13:11:47 -0700 (PDT) MIME-Version: 1.0 References: <20230526234435.662652-1-yuzhao@google.com> <20230609005935.42390-1-yuzhao@google.com> <873530okh0.wl-maz@kernel.org> In-Reply-To: <873530okh0.wl-maz@kernel.org> From: Yu Zhao Date: Sun, 18 Jun 2023 14:11:11 -0600 Message-ID: Subject: Re: kvm/arm64: Spark benchmark To: Marc Zyngier Cc: Andrew Morton , Paolo Bonzini , Alistair Popple , Anup Patel , Ben Gardon , Borislav Petkov , Catalin Marinas , Chao Peng , Christophe Leroy , Dave Hansen , Fabiano Rosas , Gaosheng Cui , Gavin Shan , "H. Peter Anvin" , Ingo Molnar , James Morse , "Jason A. Donenfeld" , Jason Gunthorpe , Jonathan Corbet , Masami Hiramatsu , Michael Ellerman , Michael Larabel , Mike Rapoport , Nicholas Piggin , Oliver Upton , Paul Mackerras , Peter Xu , Sean Christopherson , Steven Rostedt , Suzuki K Poulose , Thomas Gleixner , Thomas Huth , Will Deacon , Zenghui Yu , kvmarm@lists.linux.dev, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linuxppc-dev@lists.ozlabs.org, linux-trace-kernel@vger.kernel.org, x86@kernel.org, linux-mm@google.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 Fri, Jun 9, 2023 at 7:04=E2=80=AFAM Marc Zyngier wrote: > > On Fri, 09 Jun 2023 01:59:35 +0100, > Yu Zhao wrote: > > > > TLDR > > =3D=3D=3D=3D > > Apache Spark spent 12% less time sorting four billion random integers t= wenty times (in ~4 hours) after this patchset [1]. > > Why are the 3 architectures you have considered being evaluated with 3 > different benchmarks? I was hoping people having special interests in different archs might try to reproduce the benchmarks that I didn't report (but did cover) and see what happens. > I am not suspecting you to have cherry-picked > the best results I'm generally very conservative when reporting *synthetic* results. For example, the same memcached benchmark used on powerpc yielded >50% improvement on aarch64, because the default Ubuntu Kconfig uses 64KB base page size for powerpc but 4KB for aarch64. (Before the series, the reclaim (swap) path takes kvm->mmu_lock for *write* on O(nr of all pages to consider); after the series, it becomes O(actual nr of pages to swap), which is <10% given how the benchmark was set up.) Ops/sec Avg. Latency p50 Latency p99 Latency p99.9 Latency ------------------------------------------------------------------------ Before 639511.40 0.09940 0.04700 0.27100 22.52700 After 974184.60 0.06471 0.04700 0.15900 3.75900 > but I'd really like to see a variety of benchmarks > that exercise this stuff differently. I'd be happy to try other synthetic workloads that people think that are relatively representative. Also, I've backported the series and started an A/B experiment involving ~1 million devices (real-world workloads). We should have the preliminary results by the time I post the next version.