Received: by 10.213.65.68 with SMTP id h4csp1445785imn; Wed, 21 Mar 2018 10:47:11 -0700 (PDT) X-Google-Smtp-Source: AG47ELu2k7bivT6r9oLmXG5XeY/gNYsk2XbO1CkcVfrzw7FF+yD3zpSJ08h0JFAiX2y+76WT6UkN X-Received: by 10.98.194.26 with SMTP id l26mr982095pfg.47.1521654431381; Wed, 21 Mar 2018 10:47:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521654431; cv=none; d=google.com; s=arc-20160816; b=u1MfgvnePnJa/AhaRNYNGAe3ybn1jeesQSxT/jK8gCS6a3gKByBoNDv8ak3+yieq+g zdPbvjQY/n0ww5BQ3+S62JRgAdGniwyB9b2N2pyg+z/sK+av04yLOCNFEAspnNKgmIYN rPjto1oAIKRVvvS8snePtn5d9f1+XA8IS2K0dOGJ/tXvrDDBlMofkyD+xpKGI5Mszh10 bWI/FMQ8MLLbccoeOs+p+ub5vwR4RxH9rmFRfI5ZdWS1Jd4TQFK3ZK0SX5cVNdS11fw8 khqHXuQ6JAUMcS1alLMnkQ26G6IOg6qvksn6UrT8W9Q6ifKxh0tV9VSpXm4lO0Sna68j zEyg== 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=BwiRmfu9/B2bA14VKlrSUPG4dwQ1PaAIzNLtIZOeNgE=; b=KH1YTzZdwC1wvQyadeq4P6Uug7rrE29TN4yP1tnbTisQZAKmMEp1Sy5b/xqNdICzt8 Y6BaHaVzClmPowSa6uDOSXW8GVditMbm+IWLObF+EjXs/8aytEvrx0I7Ug0JxQebmiGp X1/OO8xE6pNbO2iGl+W2UwtImwtBjNVq2L9bM9nSl4dUqO2YcCznBDgO5GFfALzTsaSE Md33E7lZAhm+UGJTI4xcTSNl8BBcQZ+6324+iVGKy1QsGTwgnnRA8rjkN6lOwTH4bYqn mkqBDq1W/15gwyXagGDhl6hK/YYsgoqiRhnrJpCfrAR2aZ/7k8Ft6YRshDCLxuvZlVhp 1wAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=QKD5wOUc; 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 z17si3346151pfh.136.2018.03.21.10.46.55; Wed, 21 Mar 2018 10:47:11 -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=QKD5wOUc; 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 S1752347AbeCURpS (ORCPT + 99 others); Wed, 21 Mar 2018 13:45:18 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:51124 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751699AbeCURpO (ORCPT ); Wed, 21 Mar 2018 13:45:14 -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 w2LHgqu6122803; Wed, 21 Mar 2018 17:44:32 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=BwiRmfu9/B2bA14VKlrSUPG4dwQ1PaAIzNLtIZOeNgE=; b=QKD5wOUc7fK/HYuGiqBqXCQdFOb/6TZ3F5rT00RdYZe8DgHDeum3U6qO1nejv9+3CqFV MjFArCcyOea5t7iskMNDqg52MgsEQBLs87NAzXuTJmz0cvj9TITPDyfjltf9TgLg9y0d 9jW4VZtwquP18VpK5UCg4jYu03pWBfdCs2ugJr5g6K9GleNwuj8UP359ZBk9+O7fekiE AC0bQZTzNZz8RyJe2T+LPIWRkM7dlGmyD7x37NI3z93YuQH0gL5t7jX45cIR4OjSp6Y3 avq2JDWRbb64zsnJuFIqFTc85L/A9sBonji1fPdd/F9hVomYqxdJnGt/8NcdUZ6vAzIL Sw== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2guv1f007p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 21 Mar 2018 17:44:32 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w2LHiUrR004993 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 21 Mar 2018 17:44:30 GMT Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w2LHiTxU018915; Wed, 21 Mar 2018 17:44:29 GMT Received: from [10.39.202.110] (/10.39.202.110) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 21 Mar 2018 10:44:29 -0700 Subject: Re: [RFC PATCH v2 0/4] Eliminate zone->lock contention for will-it-scale/page_fault1 and parallel free To: Aaron Lu , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Vlastimil Babka Cc: 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> From: Daniel Jordan Message-ID: <1dfd4b33-6eff-160e-52fd-994d9bcbffed@oracle.com> Date: Wed, 21 Mar 2018 13:44:25 -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: <20180320085452.24641-1-aaron.lu@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/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. 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.