Message ID | 20210601062303.3932513-5-npiggin@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=6Zi/=K3=kvack.org=owner-linux-mm@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F24CC47096 for <linux-mm@archiver.kernel.org>; Tue, 1 Jun 2021 06:23:30 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id EB61961159 for <linux-mm@archiver.kernel.org>; Tue, 1 Jun 2021 06:23:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EB61961159 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 859E7940008; Tue, 1 Jun 2021 02:23:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 83098940007; Tue, 1 Jun 2021 02:23:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6FA5D940008; Tue, 1 Jun 2021 02:23:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0044.hostedemail.com [216.40.44.44]) by kanga.kvack.org (Postfix) with ESMTP id 37096940007 for <linux-mm@kvack.org>; Tue, 1 Jun 2021 02:23:29 -0400 (EDT) Received: from smtpin31.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id C9D47180AD804 for <linux-mm@kvack.org>; Tue, 1 Jun 2021 06:23:28 +0000 (UTC) X-FDA: 78204163296.31.EC59741 Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by imf23.hostedemail.com (Postfix) with ESMTP id 2D753A000261 for <linux-mm@kvack.org>; Tue, 1 Jun 2021 06:23:18 +0000 (UTC) Received: by mail-pj1-f43.google.com with SMTP id i22so1172920pju.0 for <linux-mm@kvack.org>; Mon, 31 May 2021 23:23:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PZkiKtXqsSUWsFPxoaMD52BWVXcB9txjh0r70N9gfwg=; b=TMuuo1b+x5/KjM8834zLhSTP9eYuo7t0tW46rm7j4SnXrgLEDWE0TOlUaFMqu8a+wI vbs8XSGlHrRcHcTNztnJ6FzCBPFzIdXlEHvPisjfSNJtPoi22YsCPwpfGpRVCfOzBEyA qIpgYtAQFvdrhvVyPuJFVlv69Dqy2++lkPLlvSfYFcFCmgn46h+CL735k7uWPO2iR6ib F/kGzqky6oCb6NGOI9e7WIPMpMGVye8FitjlLICcOtIpc9ld3zB5Wx8ELsL60gT36dHI 97jMnbIhzGPVji0u7wu9KoHMx8MMSH5LNriPf5FvHIo0aVVgBAQXAvYl2+p+Q7UssMwq afpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PZkiKtXqsSUWsFPxoaMD52BWVXcB9txjh0r70N9gfwg=; b=XCgeGmFxCbSZWy6FXWbTT1fM8DERR8uY78FSdVWuT8h2gH8wIus/txhMld9E8pcAUU YFNoxRM3L4Fzsdc/zNSDMzo5J6uVHiGTAQOj5+S1duUD0zoTxmmc/BKRApGa8ZomOJHG CcvTX3AYEdE0xSMPonVxiMx/7xbN7UwvhUScjaVUDA5flZGajTOBbfFv2uOhvO6d84tw GeVPF+tkrNlK0GNH+IV/2KzMM3PQePumTZ+FDPgBcUMk3JFgjO1mh75/8d1MZhUvzTml 0mdxpu9RmBH6WZbDW0fcFj5yKrSQ1yGg7nJ6vwHFVNF8dwFIPnXPLErNZeF63OaZZCN7 DJWw== X-Gm-Message-State: AOAM533NezPivDTrcBQO+3ieeZkbL6qxopjJJ4CjUoCTsnOPsiKsRzkY GUJgFX6iyfwT/b76drvxAhE= X-Google-Smtp-Source: ABdhPJzO7M0Hh974CEgDAeZuPzkos1it6HgA9FTrTsKtUq98J+3jqEoDd6tOI7VI/NdE9fIIB6URYw== X-Received: by 2002:a17:90b:1094:: with SMTP id gj20mr14135765pjb.45.1622528607822; Mon, 31 May 2021 23:23:27 -0700 (PDT) Received: from bobo.ibm.com (60-241-69-122.static.tpgi.com.au. [60.241.69.122]) by smtp.gmail.com with ESMTPSA id h1sm12519100pfh.72.2021.05.31.23.23.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 May 2021 23:23:27 -0700 (PDT) From: Nicholas Piggin <npiggin@gmail.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: Nicholas Piggin <npiggin@gmail.com>, Randy Dunlap <rdunlap@infradead.org>, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, Anton Blanchard <anton@ozlabs.org>, Andy Lutomirski <luto@kernel.org> Subject: [PATCH v3 4/4] powerpc/64s: enable MMU_LAZY_TLB_SHOOTDOWN Date: Tue, 1 Jun 2021 16:23:03 +1000 Message-Id: <20210601062303.3932513-5-npiggin@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20210601062303.3932513-1-npiggin@gmail.com> References: <20210601062303.3932513-1-npiggin@gmail.com> MIME-Version: 1.0 Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=TMuuo1b+; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf23.hostedemail.com: domain of npiggin@gmail.com designates 209.85.216.43 as permitted sender) smtp.mailfrom=npiggin@gmail.com X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: 2D753A000261 X-Stat-Signature: kpn61gkpzzsyi664e4of8uiwz4ew5ket X-HE-Tag: 1622528598-335067 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
shoot lazy tlbs
|
expand
|
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 088dd2afcfe4..8a092eedc692 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -252,6 +252,7 @@ config PPC select IRQ_FORCED_THREADING select MMU_GATHER_PAGE_SIZE select MMU_GATHER_RCU_TABLE_FREE + select MMU_LAZY_TLB_SHOOTDOWN if PPC_BOOK3S_64 select MODULES_USE_ELF_RELA select NEED_DMA_MAP_STATE if PPC64 || NOT_COHERENT_CACHE select NEED_SG_DMA_LENGTH
On a 16-socket 192-core POWER8 system, a context switching benchmark with as many software threads as CPUs (so each switch will go in and out of idle), upstream can achieve a rate of about 1 million context switches per second. After this patch it goes up to 118 million. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> --- arch/powerpc/Kconfig | 1 + 1 file changed, 1 insertion(+)