Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2495660ybd; Mon, 24 Jun 2019 07:25:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUOudKyRv2Mxj/Wp4MzwxE2hKF/uYhQ5ANJb5RpeT796DJESyT5Q5+gR+fCXz+lDZL91g0 X-Received: by 2002:a17:90a:fa07:: with SMTP id cm7mr25447428pjb.115.1561386320677; Mon, 24 Jun 2019 07:25:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561386320; cv=none; d=google.com; s=arc-20160816; b=pBRZSnS+WYikeo9dpNmeQIp7zIRODTuntsAnvI/3pvswWS7hM2DASc3wJWr2K0jsdo PL0B8Qh1WG3y13aSCYUiKoTfxP3xLJ9PxO73GAT0TE8x5Bnd0Ah8qL2Fm7UkNVWXo86Y 13RmBi2RmHvBkrcynsUX1fpNUKr62fMBnyQHLr0tj9PjO7DwRarprHxdG3Npgl7eRnq2 PEcAth9aFpu+TwHD1MvkJcChBIAA+HmO74FQawV36e5qphU9rYFsE20OTN7XbCekk34O 7Ues3oV/dVppNHOk6ZYFEfWXZ9FdQGjRGbrpoSNoR0ptNzR0IXLMrq1jmRoQzNW/bREP gq4w== 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; bh=38bHJkNikBc1eCKeH/7ITGyAVwnUPzn0sHQySwixX8Q=; b=Xr5jmIBDelJn+pwFF+o+ss01aPEnZZDwbU0jn2nSNjeDvMm8kYcEqfX176qodxWdsJ bS/vhc/o5ahsJ1cH21hYsW/rZF6wyPIjTiAw1xJfyRZjXwQ9OC0lcZc8NSQ+oq+jtE// pixdTHftpb49ccS8OMlBlX5SSqurz8ZsTDzbERTsqRacKjTpEcoKivAzu0NLRNShIE6h WFlvKNSDHVDGbugevbEZxSLOxn7N3QblGZoEn95KqrVH+0XbBaRtRNTX/4ymArd+X3Xc GdWD3hvuQdKrAFnyZ4EUBKbzO2IIluZVb55qTV9jybcMMN8b6Y6JCArIq3sruBfufNR0 E8QA== 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 c12si9796978pll.138.2019.06.24.07.25.05; Mon, 24 Jun 2019 07:25:20 -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; 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 S1731932AbfFXOJz (ORCPT + 99 others); Mon, 24 Jun 2019 10:09:55 -0400 Received: from mx2.suse.de ([195.135.220.15]:40706 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731916AbfFXOJx (ORCPT ); Mon, 24 Jun 2019 10:09:53 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 86070AF2C; Mon, 24 Jun 2019 14:09:52 +0000 (UTC) Date: Mon, 24 Jun 2019 15:09:50 +0100 From: Mel Gorman To: Huang Ying Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Rik van Riel , Peter Zijlstra , jhladky@redhat.com, lvenanci@redhat.com, Ingo Molnar Subject: Re: [PATCH -mm] autonuma: Fix scan period updating Message-ID: <20190624140950.GF2947@suse.de> References: <20190624025604.30896-1-ying.huang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20190624025604.30896-1-ying.huang@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 24, 2019 at 10:56:04AM +0800, Huang Ying wrote: > The autonuma scan period should be increased (scanning is slowed down) > if the majority of the page accesses are shared with other processes. > But in current code, the scan period will be decreased (scanning is > speeded up) in that situation. > > This patch fixes the code. And this has been tested via tracing the > scan period changing and /proc/vmstat numa_pte_updates counter when > running a multi-threaded memory accessing program (most memory > areas are accessed by multiple threads). > The patch somewhat flips the logic on whether shared or private is considered and it's not immediately obvious why that was required. That aside, other than the impact on numa_pte_updates, what actual performance difference was measured and on on what workloads? -- Mel Gorman SUSE Labs