Received: by 10.223.185.116 with SMTP id b49csp7074539wrg; Wed, 28 Feb 2018 22:30:02 -0800 (PST) X-Google-Smtp-Source: AG47ELu3W6aL7E0zaWiWfx9sCanaPhkTuwiD/wvvSG/Cef3ilRAaRKxf9jrkQ8jpGAHxEosIazUM X-Received: by 10.99.5.197 with SMTP id 188mr689335pgf.196.1519885802038; Wed, 28 Feb 2018 22:30:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519885801; cv=none; d=google.com; s=arc-20160816; b=WhZLkZrspNE7b83PoDhoPXEfyqEoGZHn/SpVKAuGGlh75b1kZoUFIeQFsfT86mUg96 BlfbPUJtV5KH3g6pwU78g6mX1R5bfPKL1J2nyVr5eqMa69h6Tr3Jfp4A5P88NEU59Wek mva61c5O+jnmJSeZONJcqJKkP/EBwsBmiI0dy7AC/BMZjqA1D+a9fRUA/j/ALbcWmaOc rk33i71L51DH9R8k+slwR2yhuPWQWAr1peOksggmrRclM6Kt1UAlh2SLBlrOph1qmV5r sZIQeXxSIw4EQ+3DhGCQvhjHtCO7hGXg16q+ZV0s+6Q/S+PT958bo38EPbQmnmgTX3gB ty7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=7UMKdXf3Audm9T4iZeVJBMzjt72d4J+nOGlqEzJ0otU=; b=LJAHwqMOEkmGJQP2E+MWZaUKaUdxkzVg2U7oK5Od3KHCz2gAq4iresEraJiECiwGuM cdS0C0YEZexiVWumNdlzEOmCQnPBvvxIdBTyGTJJoqma20qOOO2ZyVrDx6/4LzBILPHG 92ugGJliA4LRb14wmtqki3vdH881pUIloj/GaLtAMIg1+ThpJSiUsR3RjYZTfePFkzeH cV6WCbJimL9KXKBI8e2HMS/C2NEqaWYa+2pZgONHyrj6CUqZVM65yBlmMyFp2bD8efwF 3oEt6RmplNapfOyfzxPiOvJzcPag6P7lnV5iqkc7MHjWrTI0I/Kgnd7Ngrs/31FoS+wg 98DQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s21si2457561pfm.325.2018.02.28.22.29.47; Wed, 28 Feb 2018 22:30:01 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966344AbeCAG1v (ORCPT + 99 others); Thu, 1 Mar 2018 01:27:51 -0500 Received: from mga03.intel.com ([134.134.136.65]:12103 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966268AbeCAG1u (ORCPT ); Thu, 1 Mar 2018 01:27:50 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Feb 2018 22:27:49 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,407,1515484800"; d="scan'208";a="33761273" Received: from aaronlu.sh.intel.com ([10.239.159.135]) by fmsmga004.fm.intel.com with ESMTP; 28 Feb 2018 22:27:47 -0800 From: Aaron Lu To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Andrew Morton , Huang Ying , Dave Hansen , Kemi Wang , Tim Chen , Andi Kleen , Michal Hocko , Vlastimil Babka , Mel Gorman , Matthew Wilcox , David Rientjes Subject: [PATCH v4 0/3] mm: improve zone->lock scalability Date: Thu, 1 Mar 2018 14:28:42 +0800 Message-Id: <20180301062845.26038-1-aaron.lu@intel.com> X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Patch 1/3 is a small cleanup suggested by Matthew Wilcox which doesn't affect scalability or performance; Patch 2/3 moves some code in free_pcppages_bulk() outside of zone->lock and has Mel Gorman's ack; Patch 3/3 uses prefetch in free_pcppages_bulk() outside of zone->lock to speedup page merging under zone->lock but Mel Gorman has some concerns. For details, please see their changelogs. v4: Address David Rientjes' comments to not update pcp->count in front of free_pcppages_bulk() in patch 1/3. Reword code comments in patch 2/3 as suggested by David Rientjes. v3: Added patch 1/3 to update pcp->count inside of free_pcppages_bulk(); Rebase to v4.16-rc2. v2 & v1: https://lkml.org/lkml/2018/1/23/879 Aaron Lu (3): mm/free_pcppages_bulk: update pcp->count inside mm/free_pcppages_bulk: do not hold lock when picking pages to free mm/free_pcppages_bulk: prefetch buddy while not holding lock mm/page_alloc.c | 62 +++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 40 insertions(+), 22 deletions(-) -- 2.14.3