Received: by 10.213.65.68 with SMTP id h4csp389289imn; Fri, 30 Mar 2018 07:29:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/SXMe6nlwGnRRIF5edbs1x0UxqYYorSIhS7SScQbhJGNoKxcWV39D36RuRqWMs564hTwHT X-Received: by 2002:a17:902:3341:: with SMTP id a59-v6mr13214578plc.68.1522420161242; Fri, 30 Mar 2018 07:29:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522420161; cv=none; d=google.com; s=arc-20160816; b=IY9gYZkvf+i/QFHMyYvb/UCiRgNgaKAniSmOTPDSVnymJIfPQOAq61qXlb6jJCIlpV oW2OWbq2a9r/y5VbncDGAqNOMTqn7vIMUuPWi0Nrn4OXcZJQYKsbezJ7r1E9VBuri0n6 V6hTRHEJJBuMFTxsb/0y8N6zadUFB0qi2kdorOMwEPjxWocxie411N784ozbUNYiXMYg lZn+/YPeV2Vq9TkLkg78k0J4NoFKN6lEr+6EgJ5QUFp7qyTPkBWuU+BkRDeTBu5igrbP q0s8vKxQbUj3mNPSG3QF8m/NIyGu14+3G37nz/hOdhwTQaby2gfidTcNHsy6y3QhnnLW xjSQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=+jQQWzr1E1MvM4Lg9ypf3tmv+6TecyH5ozcptF+rq1s=; b=iGmshcUyTxx15BSSUH6RnUPeTn8eHboecWQjGPKFowGO0yn0qmFzcs7quNmlfIlFvU qKFYUQZFbYuJjrMUnII4CmsTnkCj6ZpSMODkC6GeLcRMWzwl7IsE9meBQIn+mZ6brv3s qsVEbAgWxh0oZwVLDXXsDmvQiu7pJ6D0NZaeFMWF6z6DLEKxj0K9Qk1sdlqek2SpyVDx Yy6B/hwBa/ByEK89H8lmbDQD/ONkyW/vPQ8eTQcM/FP0qa5ZjSoFnUpiehtMotCpoRgG lP4m4KadkiS0q1G9cXJFtGqbpeMQw+FpvdnzS3kOWKJtD2RS2FnDMI5IszLl/FbDUYq8 SpRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=P1Z+o+Kk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1si1283999pgr.741.2018.03.30.07.29.05; Fri, 30 Mar 2018 07:29:21 -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=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=P1Z+o+Kk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751324AbeC3O14 (ORCPT + 99 others); Fri, 30 Mar 2018 10:27:56 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:33580 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751163AbeC3O1y (ORCPT ); Fri, 30 Mar 2018 10:27:54 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2UEHwPo166209; Fri, 30 Mar 2018 14:27:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=+jQQWzr1E1MvM4Lg9ypf3tmv+6TecyH5ozcptF+rq1s=; b=P1Z+o+KkkyogMBCuweB5faERmETy4n0LPrIvVofPKNne4q/1psVTNezCMOdTq3Owzbzw lmzyWbFe6RORyENxDMuWtBE1fRKcJwZ6AHnKcVarqBVo7Sf6ghlRu2woY6FdQ0sHXq1n 3HTe3h5klzoJA4PcJOwYeU5gUmwDKxRMmJpLQgHelyFdE/WGdsgutMBHKOUs9eW1RqE+ tpvDNHkH5dbgHRrQu0x6Q4LioEQ6vHn9X/kP3yO+CCqpQFbNLcWFu2o92/gWtWKqgXJp /jnD1SpeyMMdfB48Y1lGGTjw9UlM7inHL6fHEDBmvKi9AFmUbKxvtkrPR026aoO91kNY bg== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp2120.oracle.com with ESMTP id 2h1pvmg0xr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 30 Mar 2018 14:27:27 +0000 Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w2UERRGh028018 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 30 Mar 2018 14:27:27 GMT Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w2UERPAv018709; Fri, 30 Mar 2018 14:27:25 GMT Received: from [10.0.0.100] (/24.34.252.193) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 30 Mar 2018 07:27:25 -0700 Subject: Re: [RFC PATCH v2 0/4] Eliminate zone->lock contention for will-it-scale/page_fault1 and parallel free To: Aaron Lu Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Huang Ying , Dave Hansen , Kemi Wang , Tim Chen , Andi Kleen , Michal Hocko , Vlastimil Babka , Mel Gorman , Matthew Wilcox References: <20180320085452.24641-1-aaron.lu@intel.com> <2606b76f-be64-4cef-b1f7-055732d09251@oracle.com> <20180330014217.GA28440@intel.com> From: Daniel Jordan Message-ID: Date: Fri, 30 Mar 2018 10:27:24 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180330014217.GA28440@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8847 signatures=668697 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803300148 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/29/2018 09:42 PM, Aaron Lu wrote: > On Thu, Mar 29, 2018 at 03:19:46PM -0400, Daniel Jordan wrote: >> On 03/20/2018 04:54 AM, Aaron Lu wrote: >>> This series is meant to improve zone->lock scalability for order 0 pages. >>> With will-it-scale/page_fault1 workload, on a 2 sockets Intel Skylake >>> server with 112 CPUs, CPU spend 80% of its time spinning on zone->lock. >>> Perf profile shows the most time consuming part under zone->lock is the >>> cache miss on "struct page", so here I'm trying to avoid those cache >>> misses. >> >> I ran page_fault1 comparing 4.16-rc5 to your recent work, these four patches >> plus the three others from your github branch zone_lock_rfc_v2. Out of >> curiosity I also threw in another 4.16-rc5 with the pcp batch size adjusted >> so high (10922 pages) that we always stay in the pcp lists and out of buddy >> completely. I used your patch[*] in this last kernel. >> >> This was on a 2-socket, 20-core broadwell server. >> >> There were some small regressions a bit outside the noise at low process >> counts (2-5) but I'm not sure they're repeatable. Anyway, it does improve >> the microbenchmark across the board. > > Thanks for the result. > > The limited improvement is expected since lock contention only shifts, > not entirely gone. So what is interesting to see is how it performs with > v4.16-rc5 + my_zone_lock_patchset + your_lru_lock_patchset Yep, that's 'coming soon.'