Received: by 10.223.185.116 with SMTP id b49csp105269wrg; Thu, 22 Feb 2018 17:38:12 -0800 (PST) X-Google-Smtp-Source: AH8x225tQOvqSUgxSe3qDQvqGiWvmlWczApbYzlYw0e0/Y0CrfS3D3ruQQ7aySCqciwWJgWvaYje X-Received: by 2002:a17:902:8604:: with SMTP id f4-v6mr24016plo.380.1519349892568; Thu, 22 Feb 2018 17:38:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519349892; cv=none; d=google.com; s=arc-20160816; b=K2VLgbqYM4URrR/a4vlW2YCWuyGbj6enIhNReTsjhOIu5TuX+56eERxoInGv/5Cgoz AemuotNfnZrptdgt9kZ8HsjRTBcGVTM5ord9hAAj8g5F26u2VrxMjUyDjafFsvPtso/r Op5PAKUPjH5xrE+hOc14XAyldfzQiLsK9KJaaF9731nOimxG9GYDKclLgILedVUMn5fj C9Z7EjyufG3vtk7TtT7w6jM4Mm9qekJLLKOn6OthYkT8G3utNU472//qA3lDmiIkq02H p3L13wSollgWCbq05CuQq5cB4PYUczZ2qEuaoC9uFnMyQq0B0Rs93HMR0kqm1ukK755r ncrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=ob+ufZ29ZbvJpc4lXN1GpQVv2xk9jSDCFIqdvm/Wfi8=; b=h9qGR0VXbHf8Ir73dp34Pt4HeYveOSlc4CCI5fyJ04ABxX/hOXf4MimyPF54W6m4Hs H+txiqEn3mudxW2q34kPreY5CBBbKqAgNAjS8RXf6KEcgEe5JAkashCYloutMtT2oEyn dNrabD+RWHKn618cDLB1aCSsHhYfwo5IYXp2JEA2leFU6opZftkZrVOOmQnF8MgFCzr+ sPz1nLwgHZB/UotkQDCZieS4pu2Y/A5nk2HDD7XcWXS8xRr/iSgFMUZZZ77lsC8POzcj JSJt5vFA0dPzZqSu7KxLLJQVmnQDTzpzjH7YRwuMswzccvQRIkooFdjuQJfwT9vSHfIW EFrw== 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 c17-v6si919037plo.118.2018.02.22.17.37.57; Thu, 22 Feb 2018 17:38:12 -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 S1751404AbeBWBgU (ORCPT + 99 others); Thu, 22 Feb 2018 20:36:20 -0500 Received: from mga09.intel.com ([134.134.136.24]:1209 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751158AbeBWBgT (ORCPT ); Thu, 22 Feb 2018 20:36:19 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Feb 2018 17:36:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,381,1515484800"; d="scan'208";a="32912498" Received: from aaronlu.sh.intel.com (HELO intel.com) ([10.239.159.135]) by fmsmga001.fm.intel.com with ESMTP; 22 Feb 2018 17:36:16 -0800 Date: Fri, 23 Feb 2018 09:37:14 +0800 From: Aaron Lu To: Mel Gorman 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 Subject: Re: [PATCH v2 1/2] free_pcppages_bulk: do not hold lock when picking pages to free Message-ID: <20180223013714.GA4338@intel.com> References: <20180124023050.20097-1-aaron.lu@intel.com> <20180124163926.c7ptagn655aeiut3@techsingularity.net> <20180125072144.GA27678@intel.com> <20180215120608.g5wj2qb2thkkzu5e@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180215120608.g5wj2qb2thkkzu5e@techsingularity.net> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 15, 2018 at 12:06:08PM +0000, Mel Gorman wrote: > On Thu, Jan 25, 2018 at 03:21:44PM +0800, Aaron Lu wrote: > > When freeing a batch of pages from Per-CPU-Pages(PCP) back to buddy, > > the zone->lock is held and then pages are chosen from PCP's migratetype > > list. While there is actually no need to do this 'choose part' under > > lock since it's PCP pages, the only CPU that can touch them is us and > > irq is also disabled. > > > > Moving this part outside could reduce lock held time and improve > > performance. Test with will-it-scale/page_fault1 full load: > > > > kernel Broadwell(2S) Skylake(2S) Broadwell(4S) Skylake(4S) > > v4.15-rc4 9037332 8000124 13642741 15728686 > > this patch 9608786 +6.3% 8368915 +4.6% 14042169 +2.9% 17433559 +10.8% > > > > What the test does is: starts $nr_cpu processes and each will repeatedly > > do the following for 5 minutes: > > 1 mmap 128M anonymouse space; > > 2 write access to that space; > > 3 munmap. > > The score is the aggregated iteration. > > > > https://github.com/antonblanchard/will-it-scale/blob/master/tests/page_fault1.c > > > > Acked-by: Mel Gorman > > Signed-off-by: Aaron Lu > > It looks like this series may have gotten lost because it was embedded > within an existing thread or else it was the proximity to the merge > window. I suggest a rebase, retest and resubmit unless there was some > major objection that I missed. Patch 1 is fine by me at least. I never > explicitly acked patch 2 but I've no major objection to it, just am a tad > uncomfortable with prefetch magic sauce in general. Thanks for the suggestion. I just got back from vacation and will send out once I collected all the required date.