Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp390303rdb; Sun, 14 Jan 2024 23:58:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IH2CrEF795tS1xlGJr9udtPG5wqJ7fEi0HpL6+/7OjfqKFz0e5V50+QSae+pMobv2NPvc1R X-Received: by 2002:a05:6a00:1a88:b0:6da:2f8f:5670 with SMTP id e8-20020a056a001a8800b006da2f8f5670mr2925779pfv.22.1705305510219; Sun, 14 Jan 2024 23:58:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705305510; cv=none; d=google.com; s=arc-20160816; b=djgqEuRkE6665NmQktNdY/CZ3FaKdjgVkm15LMj2zL3+6S1cfCtqShFTo0v7xY56mA FCy9USqtpFwzh43GJHkVKhUYf/cRO0p0QXfpRRwFW2V5dt4U1O1gY8pnLYyuStL80ZlY LhiIIbd5hsiC9S6qJN8wCyERn2m7YqvdNidj9U12ol2SGzKottgiOzaCvGxiaKwNPjW8 jUTXZQ5lRQ1GTW9GX+c+QAvhzOl4+aA+gz4TJKg4Tpq0bg/cB6CduT6LaJfBfslrf/tu e8LCL3UOXhwu5GWBi9r2YMFH9b/2DOz6VGoKWwmTaYmdByHzej/z5d6iGJLLy/ZXkDdA 89FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=Oh7CuhtXf5I+puZrb1xi9EarzZ87iQovjtM99pmbsHM=; fh=DLCYOhG5zRcBW1Cp1txuzsrnLFUce6lRkmUVu0e8M04=; b=WYJUXeS2erjhgvHpSAlc4HJBhgze/gpGsNH2SkH8op0vs2W405sEZ4ajBxc72ZK9Ra eyAtEn1magkjYE0wCp3o5Cq/q+4zJc6XgMPHBWms5ISOjtDVHX8J5Cu8jazR4h4zVF1d 8oqy6NfHrFlNq7u8aY38C+QqxeuV0U6vNSFaDSnH/W1Ky94CShUzMU2G5QDu1T4XToVP Q//0SOm/w3Ra1USkUkAuJYwU2jQAKOGygXTi6k4wAqYCRiERh8JZ5lQj3ew5TnvMxLQC acIzibJSmptOdqdRGn/5wvJX1Ct/po6yKTGH9HNuEHW2zaCFXRHKVhEJOm1JrcE0XlRB FBXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-25703-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25703-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s13-20020a056a00178d00b006d9b870b85asi8564018pfg.169.2024.01.14.23.58.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Jan 2024 23:58:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25703-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-25703-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25703-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A96A2B20E58 for ; Mon, 15 Jan 2024 07:58:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 561A95666; Mon, 15 Jan 2024 07:58:20 +0000 (UTC) Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 34122440D for ; Mon, 15 Jan 2024 07:58:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sk.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sk.com X-AuditID: a67dfc5b-d6dff70000001748-6c-65a4e5960a1f Date: Mon, 15 Jan 2024 16:58:09 +0900 From: Byungchul Park To: Dave Hansen Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, kernel_team@skhynix.com, akpm@linux-foundation.org, ying.huang@intel.com, namit@vmware.com, xhao@linux.alibaba.com, mgorman@techsingularity.net, hughd@google.com, willy@infradead.org, david@redhat.com, peterz@infradead.org, luto@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com Subject: Re: [v4 0/3] Reduce TLB flushes under some specific conditions Message-ID: <20240115075809.GB56305@system.software.com> References: <20231109045908.54996-1-byungchul@sk.com> <64cb078b-d2e7-417f-8125-b38d423163ce@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <64cb078b-d2e7-417f-8125-b38d423163ce@intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPIsWRmVeSWpSXmKPExsXC9ZZnke60p0tSDdr+WlrMWb+GzeLzhn9s Fp9ePmC0eLGhndHi6/pfzBZPP/WxWFzeNYfN4t6a/6wW53etZbXYsXQfk8WlAwuYLK7vesho cbz3AJPF5k1TmS1+/wCqmzPFyuLkrMksDoIe31v7WDwWbCr12LxCy2PxnpdMHptWdbJ5bPo0 id3j3blz7B4nZvxm8dj50NJj3slAj/f7rrJ5bP1l5/F5k5zHu/lv2QL4orhsUlJzMstSi/Tt Ergy9v+uLWhlr5i15SFjA+MR1i5GTg4JAROJuccvMMLY/0+2s4HYLAKqEgf+XGECsdkE1CVu 3Pj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gZF7FKJKZV5abmJljqlecnVGZl1mhl5yfu4kRGFvLav9M3MH45bL7IUYB DkYlHt4ffxenCrEmlhVX5h5ilOBgVhLhrb6zJFWINyWxsiq1KD++qDQntfgQozQHi5I4r1d4 aoKQQHpiSWp2ampBahFMlomDU6qB0XBH0AqTgptvGY8pH5AIcS8svSnsdeVYv4q8t7q494OV LcHPk+TnnXhRqswXef5Lx33Fy1dsNaOVmkWbd6ixXNxae0xzwhWemXzqLHk3vsQtL668kVon luWY6vJJYabsrAkKkqdXLNmzXys15v0J64Ps24srfG32p/DPLd3z4lTyurSQT8nxSizFGYmG WsxFxYkAiMxD0akCAAA= X-CFilter-Loop: Reflected On Thu, Nov 09, 2023 at 06:26:08AM -0800, Dave Hansen wrote: > On 11/8/23 20:59, Byungchul Park wrote: > > Can you believe it? I saw the number of TLB full flush reduced about > > 80% and iTLB miss reduced about 50%, and the time wise performance > > always shows at least 1% stable improvement with the workload I tested > > with, XSBench. However, I believe that it would help more with other > > ones or any real ones. It'd be appreciated to let me know if I'm missing > > something. > > I see that you've moved a substantial amount of code out of arch/x86. > That's great. > > But there doesn't appear to be any improvement in the justification or > performance data. The page flag is also here, which is horribly frowned > upon. It's an absolute no-go with this level of justification. Okay. I won't use an additional page flag anymore from migrc v5. Thanks. Byungchul