From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753788AbcHSJAV (ORCPT ); Fri, 19 Aug 2016 05:00:21 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35380 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750806AbcHSJAU (ORCPT ); Fri, 19 Aug 2016 05:00:20 -0400 Date: Fri, 19 Aug 2016 11:00:17 +0200 From: Michal Hocko To: Linus Torvalds Cc: Dave Chinner , Mel Gorman , Minchan Kim , Vladimir Davydov , Johannes Weiner , Vlastimil Babka , Andrew Morton , Bob Peterson , "Kirill A. Shutemov" , "Huang, Ying" , Christoph Hellwig , Wu Fengguang , LKP , Tejun Heo , LKML Subject: Re: [LKP] [lkp] [xfs] 68a9f5e700: aim7.jobs-per-min -13.6% regression Message-ID: <20160819090017.GF32619@dhcp22.suse.cz> References: <20160816150500.GH8119@techsingularity.net> <20160817154907.GI8119@techsingularity.net> <20160818004517.GJ8119@techsingularity.net> <20160818071111.GD22388@dastard> <20160818132414.GK8119@techsingularity.net> <20160818211949.GE22388@dastard> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 18-08-16 15:25:40, Linus Torvalds wrote: [...] > So just for testing purposes, you could try changing that > > return alloc_pages(gfp, 0); > > in __page_cache_alloc() into something like > > return alloc_pages_node(cpu_to_node(raw_smp_processor_id())), gfp, 0); That would break mempolicies AFAICS. Anyway, I might be missing something (the mempolicy kod has a strange sense for aesthetic) but the normal case without any explicit mempolicy should use default_policy which is MPOL_PREFERRED and MPOL_F_LOCAL which means numa_node_id() so the local node. So the above two should do the same thing unless I have missing something. -- Michal Hocko SUSE Labs From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============3342054054972907480==" MIME-Version: 1.0 From: Michal Hocko To: lkp@lists.01.org Subject: Re: [xfs] 68a9f5e700: aim7.jobs-per-min -13.6% regression Date: Fri, 19 Aug 2016 11:00:17 +0200 Message-ID: <20160819090017.GF32619@dhcp22.suse.cz> In-Reply-To: List-Id: --===============3342054054972907480== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Thu 18-08-16 15:25:40, Linus Torvalds wrote: [...] > So just for testing purposes, you could try changing that > = > return alloc_pages(gfp, 0); > = > in __page_cache_alloc() into something like > = > return alloc_pages_node(cpu_to_node(raw_smp_processor_id())), gfp= , 0); That would break mempolicies AFAICS. Anyway, I might be missing something (the mempolicy kod has a strange sense for aesthetic) but the normal case without any explicit mempolicy should use default_policy which is MPOL_PREFERRED and MPOL_F_LOCAL which means numa_node_id() so the local node. So the above two should do the same thing unless I have missing something. -- = Michal Hocko SUSE Labs --===============3342054054972907480==--