Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2560035pxu; Mon, 14 Dec 2020 05:45:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHTj1e76jcN3AxVGEK+ARCa6SvPtZbDT1HsgerPVoYfToho8sJ0NdbNsvrkxHkPg2rgmjB X-Received: by 2002:a50:ee1a:: with SMTP id g26mr9933286eds.68.1607953512424; Mon, 14 Dec 2020 05:45:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607953512; cv=none; d=google.com; s=arc-20160816; b=xdJLTLA58+0vNRtmWRzMw+m/55yY0UfvyAa37QW+ovedkyeu3h5lr95hLTQJ4JoS65 2uAGauwDIjsNdk6BO73zubXUJo2JR9l0HHtqB4AO9KoOsEGiICQpeAAxZd5HC7gWXpnn Xzwegw3pj7XbIeSTgcvGhFye9g5jaAhCdcHdel+/KreNp5SAsgkr8WWpLDY3EI1BuObj K4iOt7ugf+MQsR5Z7UVcz4DT+k+b36xcS0GRVJtdxuGxBR8oyKqvFviyn6aOMya0f3FP Z8AWGEHHzP6CXNsEN9xtf5yuBD5KMQyknyJX+C4lipO6jB5DJXPPPhrG8V+HPWTOJCHi DtKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3joCMQEgMYTRWtwvNU8XfkRxQvl1XcPWoJqmHhlAjNg=; b=POQXxgKGsbUFdPpl36ClCaDUsUiiUKrtFl4W98zcMQsAob4rVOjC+euaX+BQ78aoSe nDxYN9Pkx7TIg8y22k4hFcKpKtH4ascygCl0o3ala2cxeiyC7JtHdGxmHueysrYedC1F yFQayV7M0ZTE+Rbl6YS0WYrVFAirmeXvKYDBPWPywDWR+T/3Y+03L0tXatAe1Mq0rX19 pINCM/onV4QNNMfH43yaGJ2ujHKRb3X0qcQeVrwskGKyz4pvxLlsrQxetxxVYEOWjqr0 G3aXa/LX+M5vPWNLGucuKUdw4UG5ij7T5BQQPdfWBcvzl2KyjMgeEAB5/iAfEAFY8XJ4 RFSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=jIFuMyW0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s15si10263177edw.158.2020.12.14.05.44.49; Mon, 14 Dec 2020 05:45:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=jIFuMyW0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2437845AbgLNCEk (ORCPT + 99 others); Sun, 13 Dec 2020 21:04:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730596AbgLNCEj (ORCPT ); Sun, 13 Dec 2020 21:04:39 -0500 Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F601C0613CF for ; Sun, 13 Dec 2020 18:03:59 -0800 (PST) Received: by mail-qt1-x843.google.com with SMTP id 7so10949439qtp.1 for ; Sun, 13 Dec 2020 18:03:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=3joCMQEgMYTRWtwvNU8XfkRxQvl1XcPWoJqmHhlAjNg=; b=jIFuMyW0CXPwPbzjytq1fyl28f5h7j18cK1dq9/kuoMitNcBn2VPPr+iiAdwiyshf8 Sass69snymAmlv2w9RPxsB1q6+LKmXCPfpDzo0XV15UccAlREbVBq+V+jHCI6ci5QwI2 xW3KXMx8jhphyq6rezDemv6LqKppWr9EI6OjM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=3joCMQEgMYTRWtwvNU8XfkRxQvl1XcPWoJqmHhlAjNg=; b=gh1stiZl8dKKQZyEwxOwL+dKil3RmnUu5gdhjU2sgTHCBRT05fy8Qoo00AiAyATan9 brropX+pCLdK1TmD1XVANh1qgB5L7pdOZt1CNJVbMQXb9vsq8u3PilXDDsxImDaiSLgl bi99EMkhsK4hHcg8IcEJtdjjvEZhoh6ARwaH8f8FnVjUR0cIf1fiD2gvJk+8fHwvlDc8 79bKCNAmsZo4tjf2sS1yTnHO776a4kBmCRiiMAE2JNWfXy0NkXsyN//yfaA5jfUatGSA VLixFeeMMosj+i0pS4ZWXvbGHZ+0P8vmt1QTZUDh1vRxn+dOeamkAqdBn/cw3OxX5r/J +Hmg== X-Gm-Message-State: AOAM533BfTTlusKkM2pTDX0jdRMmeGwC8Op+0Z8chInf57SY+P3wpPyo aExa4475c4jLIQBlDrIXDsrXvQ== X-Received: by 2002:ac8:6758:: with SMTP id n24mr29731870qtp.258.1607911438765; Sun, 13 Dec 2020 18:03:58 -0800 (PST) Received: from localhost ([2620:15c:6:411:cad3:ffff:feb3:bd59]) by smtp.gmail.com with ESMTPSA id g63sm13912475qkf.80.2020.12.13.18.03.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Dec 2020 18:03:57 -0800 (PST) Date: Sun, 13 Dec 2020 21:03:56 -0500 From: Joel Fernandes To: Chinwen Chang Cc: Laurent Dufour , Haiyan Song , akpm@linux-foundation.org, mhocko@kernel.org, peterz@infradead.org, kirill@shutemov.name, ak@linux.intel.com, dave@stgolabs.net, jack@suse.cz, Matthew Wilcox , aneesh.kumar@linux.ibm.com, benh@kernel.crashing.org, mpe@ellerman.id.au, paulus@samba.org, Thomas Gleixner , Ingo Molnar , hpa@zytor.com, Will Deacon , Sergey Senozhatsky , sergey.senozhatsky.work@gmail.com, Andrea Arcangeli , Alexei Starovoitov , kemi.wang@intel.com, Daniel Jordan , David Rientjes , Jerome Glisse , Ganesh Mahendran , Minchan Kim , Punit Agrawal , vinayak menon , Yang Shi , zhong jiang , Balbir Singh , sj38.park@gmail.com, Michel Lespinasse , Mike Rapoport , linux-kernel@vger.kernel.org, linux-mm@kvack.org, haren@linux.vnet.ibm.com, npiggin@gmail.com, paulmck@linux.vnet.ibm.com, Tim Chen , linuxppc-dev@lists.ozlabs.org, x86@kernel.org, miles.chen@mediatek.com Subject: Re: [PATCH v12 00/31] Speculative page faults Message-ID: References: <20190416134522.17540-1-ldufour@linux.ibm.com> <20190606065129.d5s3534p23twksgp@haiyan.sh.intel.com> <3d3cefa2-0ebb-e86d-b060-7ba67c48a59f@linux.ibm.com> <1c412ebe-c213-ee67-d261-c70ddcd34b79@linux.ibm.com> <20190620081945.hwj6ruqddefnxg6z@haiyan.sh.intel.com> <1594027500.30360.32.camel@mtkswgap22> <490c0811-50cd-0802-2cbc-9c031ef309f6@linux.ibm.com> <1594099897.30360.58.camel@mtkswgap22> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1594099897.30360.58.camel@mtkswgap22> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 07, 2020 at 01:31:37PM +0800, Chinwen Chang wrote: [..] > > > Hi Laurent, > > > > > > We merged SPF v11 and some patches from v12 into our platforms. After > > > several experiments, we observed SPF has obvious improvements on the > > > launch time of applications, especially for those high-TLP ones, > > > > > > # launch time of applications(s): > > > > > > package version w/ SPF w/o SPF improve(%) > > > ------------------------------------------------------------------ > > > Baidu maps 10.13.3 0.887 0.98 9.49 > > > Taobao 8.4.0.35 1.227 1.293 5.10 > > > Meituan 9.12.401 1.107 1.543 28.26 > > > WeChat 7.0.3 2.353 2.68 12.20 > > > Honor of Kings 1.43.1.6 6.63 6.713 1.24 > > > > That's great news, thanks for reporting this! > > > > > > > > By the way, we have verified our platforms with those patches and > > > achieved the goal of mass production. > > > > Another good news! > > For my information, what is your targeted hardware? > > > > Cheers, > > Laurent. > > Hi Laurent, > > Our targeted hardware belongs to ARM64 multi-core series. Hello! I was trying to develop an intuition about why does SPF give improvement for you on small CPU systems. This is just a high-level theory but: 1. Assume the improvement is because of elimination of "blocking" on mmap_sem. Could it be that the mmap_sem is acquired in write-mode unnecessarily in some places, thus causing blocking on mmap_sem in other paths? If so, is it feasible to convert such usages to acquiring them in read-mode? 2. Assume the improvement is because of lesser read-side contention on mmap_sem. On small CPU systems, I would not expect reducing cache-line bouncing to give such a dramatic improvement in performance as you are seeing. Thanks for any insight on this! - Joel