Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5278914yba; Wed, 10 Apr 2019 15:46:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxlAym+RORlR1NAK9rm2TDRYM7rscYS2zDKWS+R7UxRlW4tr8friSxl60Q5bKoIG5xIRt7p X-Received: by 2002:a62:6c6:: with SMTP id 189mr18780174pfg.36.1554936372580; Wed, 10 Apr 2019 15:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554936372; cv=none; d=google.com; s=arc-20160816; b=xs+ExZZOaBu4RSnaIl4O2aTlwTYC3rGpHaAUr0eIxWc9NeIcray3Png4ucaW536ucI Wpb7++oWElTQvbd6tkA49Be/jhXO8+y8/w78cUOU9pgKt9cNgRDW0iVFAvotAoP6OTLj lBW/AUurXLYewCCvNz6OVh5wxe3rH41d/cId18oG4JSmhBM54FkMq3snDmzUnXRjdlJ9 JfDAYiPbuyF0RWbQVyTZf72sCE0QgmkRnX/aF1ZffKGQCQqLf99qwXPNknTEeCWX0u6z 1jZAJhaSiC1DGTPbJ9yXoDr1Hd+FTFFxeb06ayx4MhqrikGFRFUJbMHu3k09AXXjW9O6 xN+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr:dkim-signature; bh=QtmRuA5UAVwy5YG2+IEZISpxKdMlFOPeMEALoaGual0=; b=fde8mq6S+6Wzl2yfowONxgsJXwTD6UYpAbs22TQH61ZCmO9WHnFJJ3ForKQhTU63Fy vtlTAD5DTLAitMTr2p1UVQaEzzcSAvsswyl9wn5P9N2zdDAtjC52dVLZ+eQEtOOjsmg3 9nyi1JfRObjoeKjR7k+tunyHthmVGmp6gnhHubzwKukVfJ4sgoTprhNj+Xs0bV4++txr 6Pomtz1uYIYbAZoXYQ5pAMFrfBiU+ZB80+d5niC3PZtFPNO6se7dbaJWSL7pFIL6MQLr y3Re9608FGKfzfXEfZ6h21mYogQ4zvhEmSYjZzKk3z78ZghJ4ei2xHXhpEkUvEzrSL+y 21cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=VxTDjn8z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g10si31955473pgs.397.2019.04.10.15.45.57; Wed, 10 Apr 2019 15:46:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=VxTDjn8z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726756AbfDJWpM (ORCPT + 99 others); Wed, 10 Apr 2019 18:45:12 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:49965 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725982AbfDJWpM (ORCPT ); Wed, 10 Apr 2019 18:45:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1554936312; x=1586472312; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8a9nFQNbKFd3//6jhM9wfTOXLMw/hQ4czkeb+c+UtjE=; b=VxTDjn8z2aSN2FHfF9eYrWIpUCJNfZYv6BaMD0aMNOgzHHg+9A+4M1u0 ylS5j3W3UcgR87yVQyETSWPPzzBki75Wa+TwdSfIOy/dz+djHe8MDrXDa +h5p24tBZsb4AyV0Z45UaSh91iZeMKBOD+KGGpsirzy7QSG+N9HYPXKoG 8holzr0NapPCUffPwINeN8aG0hGdYknP41vWI0PPz8AcKHI0YaMgznN48 dKOhsDOOL+oHqyly9XKJcGL20vh+0kYXUxrPxu7DeaTZ8rBwnSaGLo+jV eM1dbNR1KakZP4rg9JtOIzwsLF1O33j4xDrTjJi7kFY2+zdG51kjfMBDa w==; X-IronPort-AV: E=Sophos;i="5.60,335,1549900800"; d="scan'208";a="105470408" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 11 Apr 2019 06:45:11 +0800 IronPort-SDR: XtYuPIB/QZ0IQatOWiN54Wa86CCQf3cuRC/cHd/LmeMUbL2j91T5RkvGYAlnSc+nRDJMyg8NsF E7uqN2JoYr0CL9fAApemwGFcQO9liLFOTElWr1af2QbSk2ZKO8sFEVxgYn806a52N2yy8dBFpU UNrDxM1vwpx9IgfFnx9uc9Be+6QjN++YKhZfcpeyG88YGVusBKOorG8xJ49vl4YjymsfBg3YCo rXKKe7EpPCDBTq1RYyS1871EtIYqdsCrVUqbJwQS/1RU3SGwS3R4WZt6CLlIS/NKP0yb6hmOMl ZnNCJM2Cl4ckXWbGy8+tYf1k Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 10 Apr 2019 15:22:05 -0700 IronPort-SDR: m/18FSUIFv2lEJf2eefSFGl4WdeRvmz0Q9jV/kflxUyi6lCOts3bODYymr211SYu9PuY7EnEkG gCRt+KpD4F/6+c1QJkLWDJPBGvbJvInvvERne/fbhORuResiADleeMy1dzR9KwhmIPCkoOxu5u L4NOkQOFioR4wF6INiDb2Pnp3rmwh0iLnAPuXUGXAMTX+Xk2+vYaxBx0C/aOPBtftQ4u0/m68j GVbxa7tSFTVgC5z+xh8gZ3b4MMPOPjqXoYhFoxYoayrqZAFpb3usg3vIJ6z36Y7/AFACbqV+a7 xlw= Received: from jedi-01.sdcorp.global.sandisk.com (HELO jedi-01.int.fusionio.com) ([10.11.143.218]) by uls-op-cesaip02.wdc.com with ESMTP; 10 Apr 2019 15:45:11 -0700 From: Atish Patra To: linux-kernel@vger.kernel.org Cc: Atish Patra , Albert Ou , Anup Patel , Borislav Petkov , Gary Guo , "H. Peter Anvin" , Ingo Molnar , linux-riscv@lists.infradead.org, Luc Van Oostenryck , Palmer Dabbelt , Thomas Gleixner , x86@kernel.org (maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)) Subject: [1/3] x86: Update DEBUG_TLBFLUSH options description. Date: Wed, 10 Apr 2019 15:44:47 -0700 Message-Id: <20190410224449.10877-2-atish.patra@wdc.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190410224449.10877-1-atish.patra@wdc.com> References: <20190410224449.10877-1-atish.patra@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CONFIG_DEBUG_TLBFLUSH was added in 'commit 3df3212f9722 ("x86/tlb: add tlb_flushall_shift knob into debugfs")' to support tlb_flushall_shift knob. The knob was removed in 'commit e9f4e0a9fe27 ("x86/mm: Rip out complicated, out-of-date, buggy TLB flushing")'. However, the debug option was never removed from Kconfig. It was reused in commit '9824cf9753ec ("mm: vmstats: tlb flush counters")' but the commit text was never updated accordingly. Update the Kconfig option description as per its current usage. Signed-off-by: Atish Patra --- arch/x86/Kconfig.debug | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug index 15d0fbe27872..c1a48d4ffebb 100644 --- a/arch/x86/Kconfig.debug +++ b/arch/x86/Kconfig.debug @@ -125,21 +125,12 @@ config DOUBLEFAULT hair. config DEBUG_TLBFLUSH - bool "Set upper limit of TLB entries to flush one-by-one" + bool "Save tlb flush statstics to vmstat" depends on DEBUG_KERNEL ---help--- - X86-only for now. - - This option allows the user to tune the amount of TLB entries the - kernel flushes one-by-one instead of doing a full TLB flush. In - certain situations, the former is cheaper. This is controlled by the - tlb_flushall_shift knob under /sys/kernel/debug/x86. If you set it - to -1, the code flushes the whole TLB unconditionally. Otherwise, - for positive values of it, the kernel will use single TLB entry - invalidating instructions according to the following formula: - - flush_entries <= active_tlb_entries / 2^tlb_flushall_shift + Add tlbflush statstics to vmstat. It is really helpful understand tlbflush + performance and behavior. It should be enabled only for debugging purpose. If in doubt, say "N". -- 2.21.0