From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751181AbdHBHBn (ORCPT ); Wed, 2 Aug 2017 03:01:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:42104 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750725AbdHBHBm (ORCPT ); Wed, 2 Aug 2017 03:01:42 -0400 Date: Wed, 2 Aug 2017 08:01:39 +0100 From: Mel Gorman To: riel@redhat.com Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, mingo@kernel.org, jhladky@redhat.com, lvenanci@redhat.com Subject: Re: [RHEL-ALT-7.4 PATCH 1/2] numa,sched: slow down scan rate if shared faults dominate Message-ID: <20170802070139.qsfo5ydcafdlomso@suse.de> References: <20170731192847.23050-1-riel@redhat.com> <20170731192847.23050-2-riel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20170731192847.23050-2-riel@redhat.com> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 31, 2017 at 03:28:46PM -0400, Rik van Riel wrote: > From: Rik van Riel > > The comment above update_task_scan_period says the scan period should > be increased (scanning slows down) if the majority of memory accesses > are on the local node, or if the majority of the page accesses are > shared with other tasks. > > However, with the current code, all a high ratio of shared accesses > does is slow down the rate at which scanning is made faster. > > This patch changes things so either lots of shared accesses or > lots of local accesses will slow down scanning, and numa scanning > is sped up only when there are lots of private faults on remote > memory pages. > > Signed-off-by: Rik van Riel Acked-by: Mel Gorman -- Mel Gorman SUSE Labs