Received: by 10.213.65.68 with SMTP id h4csp604827imn; Thu, 22 Mar 2018 04:50:04 -0700 (PDT) X-Google-Smtp-Source: AG47ELvt4h/47L4ErcDCQRAVAGD4OUI8XCVupYA57txzGJgR22ja+ugtlIR2od4nPIENscvzDaq4 X-Received: by 10.101.96.200 with SMTP id r8mr17655675pgv.152.1521719404871; Thu, 22 Mar 2018 04:50:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521719404; cv=none; d=google.com; s=arc-20160816; b=rN0crpMXYct0mMcEagNcL1kLgkHZ173ODNTP6RQoF9iW3thu5NuWdfSsuwaN4ngvmW J1hrNVT9f/EwH3ZZgxEIlx/GhHRqSKt/n1wwgoxlD1Iq9Uq2pDTFhueA0rVGakz8fjzG ASaHOCbdgDhaMIh5yzYA//k6xIRovLfRzGQxy9zEnzRS9CjVT5oFIhGtonQNdnR29LC5 EhfqicNZ6vb/bc+uFucwsEqmgGt1xyeZP5fmI/nDKxgFmVb0cu76Rs8IOjbpWLb4WxkO ygFExrJfIKkao2HuAzM8y8Mutg8UQrqnNNNaldrHYtipYVwhHzTp1TaDk3LYtELQ/Zgw IlDg== 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:organization:from:references:cc:to:subject :dkim-signature:arc-authentication-results; bh=hXC0idlwILTMRo5ua+6OuRkZQTKzgTjMk7SFuY8mN/k=; b=UVDbGrrfTT6qTW1fQ9al+Ch1UTxe7whZ4XIMFieZL6JSRm91ZjkiCMy06HyO3VogBY hs2ZwSzeqos8Hh0CqqE+4Dq8e1M9QU8n+Bb06fr7e6KijOsl/XykFgaan1PtNvYvkM9Y mShax+eun2/20CwQEE5z9yA3qRD/Ty9NNgkMP+nZbETTLlXsumlkEmcolCn1ZsNsBbwh ZRQFhMX8SkRSKHBu2GC7n4eC3nwBpX+hjY8TesEP8G32QrdZqUxRRC9u31SyRpzA+MCe IcbuPMym4C7evnoHmz48FQC+D2IiGmRnTjQi+qohfyGw5ne9yRALZOvIZq+kscR5jWmY Iilg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=bw6rrZwy; 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 b22si4763716pfi.244.2018.03.22.04.49.47; Thu, 22 Mar 2018 04:50:04 -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=bw6rrZwy; 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 S1752902AbeCVLVJ (ORCPT + 99 others); Thu, 22 Mar 2018 07:21:09 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:47450 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752514AbeCVLVG (ORCPT ); Thu, 22 Mar 2018 07:21:06 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w2MB9h5A031577; Thu, 22 Mar 2018 11:20:39 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=hXC0idlwILTMRo5ua+6OuRkZQTKzgTjMk7SFuY8mN/k=; b=bw6rrZwytZ7G6al2MGoM9UZTBSf3tU+xNPVdgMHIRvDfaZNnSQ4KedaOk5KyxvgYtFRl ZM25quChYGhPk263wLFBVmK9yyZwBf3Yee0ty+a/P/0k0tFeMZP4/xS0wAYRa9K5aYNh BBzG5jcrDB/8LyyNOuGivpEVIrWPuZFM2rnKJS/XgGHJVE4qp00PFHl/02gEbRFNNiPw OJD7fkgpts1KXkOm/ciSpRijkXEYj76Gffzq/ntc40I2Rk0XK6AyO5U0dROHwqKgszAI LiUTd4RAOatCcIrw6MmTm6V1iiQXBBNaUbMh401JMG5PZurpN4O2Mj/dWqu+PdxwSIGh +A== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2gvbcc01sf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 22 Mar 2018 11:20:39 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w2MBKb4l023055 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 22 Mar 2018 11:20:38 GMT Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w2MBKY0X020502; Thu, 22 Mar 2018 11:20:34 GMT Received: from [10.152.33.180] (/10.152.33.180) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 22 Mar 2018 04:20:28 -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, Vlastimil Babka , Andrew Morton , Huang Ying , Dave Hansen , Kemi Wang , Tim Chen , Andi Kleen , Michal Hocko , Mel Gorman , Matthew Wilcox References: <20180320085452.24641-1-aaron.lu@intel.com> <1dfd4b33-6eff-160e-52fd-994d9bcbffed@oracle.com> <20180322013049.GA4056@intel.com> From: Daniel Jordan Organization: Oracle Message-ID: <5fa1b7f6-4614-c0d9-9f85-007cdd049a5b@oracle.com> Date: Thu, 22 Mar 2018 07:20:14 -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: <20180322013049.GA4056@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=8839 signatures=668695 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=2 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-1803200127 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/21/2018 09:30 PM, Aaron Lu wrote: > On Wed, Mar 21, 2018 at 01:44:25PM -0400, Daniel Jordan wrote: >> On 03/20/2018 04:54 AM, Aaron Lu wrote: >> ...snip... >>> reduced zone->lock contention on free path from 35% to 1.1%. Also, it >>> shows good result on parallel free(*) workload by reducing zone->lock >>> contention from 90% to almost zero(lru lock increased from almost 0 to >>> 90% though). >> >> Hi Aaron, I'm looking through your series now. Just wanted to mention that I'm seeing the same interaction between zone->lock and lru_lock in my own testing. IOW, it's not enough to fix just one or the other: both need attention to get good performance on a big system, at least in this microbenchmark we've both been using. > > Agree. > >> >> There's anti-scaling at high core counts where overall system page faults per second actually decrease with more CPUs added to the test. This happens when either zone->lock or lru_lock contention are completely removed, but the anti-scaling goes away when both locks are fixed. >> >> Anyway, I'll post some actual data on this stuff soon. > > Looking forward to that, thanks. > > In the meantime, I'll also try your lru_lock optimization work on top of > this patchset to see if the lock contention shifts back to zone->lock. The lru_lock series I posted is pretty outdated by now, and I've got a totally new approach I plan to post soon, so it might make sense to wait for that.