Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp859594ybi; Fri, 12 Jul 2019 05:51:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwaTsGvW5vCZsAt8YqEj1+/XhT+weGjeAz6z/eQ1UVYbQ+M1/Jn5/WSMhKiR441sE5fUi8n X-Received: by 2002:a63:7a06:: with SMTP id v6mr10774891pgc.115.1562935899064; Fri, 12 Jul 2019 05:51:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562935899; cv=none; d=google.com; s=arc-20160816; b=QuBOLLQYT5iOWV7ZQ5GYxLcm/bQjrElpBRMXyMEYRNZQ8mgi8HvxzRA8k97yLaMTse T7JZ+cl0SrZH/3e82tAh5hVD+mprbcREpyRaerYxJrGsoYSRTAvrHpDuBrhn4icPk4Wa z9q+O9qhRKqCEU+ORSYSSKupbvdaVEDFlOMELY+k+ulYzpQ9MyZWsQSYKRcpFLAdqe0o vm5XOl5plPXTR86pYQgAC7p7rUqcMEBDX6iXsSGSnDWdLyl0eAE1aTwdxB2KqAv0Sfku ZZ+4xUzi2Bu1JX0ugrl+ASK6e7Nl+wwkw/Csq2cAfOL66qY9JtwiWLXepWTAc8VUwc4e A25w== 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=GhyPz7FHI3zBhpf39YLkhlDZQvPucO9z0Kyalr33zPM=; b=dbTURKDauJU3gT8mAnlSHfT1BTNeI5REhZTVm6zA1UZECFjOkMATNFWJ4/ToGSxdvx EcDy+r7TQ8ISAa2nmRpaOWdWUSk84IomBl2Zjkk0RpFw21s1usXnkzlByscO8Q8uyBba eJK0W3SrZOniJ4lXlLukixJfaAnurpU0NQmAjccCpq5uYBCAahdK5pn4XlxHP787bMcZ L8diTIdjqcgyegPH3/F6ryk1YJ1W29rQ7EAqmqxhVFi9AH3r1epf4zUS1gZpmn22PjhW 0pNtrVdz3+0ZcAQMaycv19HAOyBbEgDNaRDt2XKCU7DuEPgokqp5y16nN7hebe2FQzmd pbMQ== 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 l64si8052630pjb.93.2019.07.12.05.51.23; Fri, 12 Jul 2019 05:51:39 -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 S1727184AbfGLMuw (ORCPT + 99 others); Fri, 12 Jul 2019 08:50:52 -0400 Received: from mx2.suse.de ([195.135.220.15]:40692 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727027AbfGLMuv (ORCPT ); Fri, 12 Jul 2019 08:50:51 -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 80A04AC3F; Fri, 12 Jul 2019 12:50:50 +0000 (UTC) Date: Fri, 12 Jul 2019 13:50:47 +0100 From: Mel Gorman To: "Huang, Ying" Cc: huang ying , Andrew Morton , linux-mm@kvack.org, LKML , Rik van Riel , Peter Zijlstra , jhladky@redhat.com, lvenanci@redhat.com, Ingo Molnar Subject: Re: [PATCH -mm] autonuma: Fix scan period updating Message-ID: <20190712125047.GL13484@suse.de> References: <20190624025604.30896-1-ying.huang@intel.com> <20190624140950.GF2947@suse.de> <20190703091747.GA13484@suse.de> <87ef3663nd.fsf@yhuang-dev.intel.com> <20190712082710.GH13484@suse.de> <87d0ifwmu2.fsf@yhuang-dev.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <87d0ifwmu2.fsf@yhuang-dev.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 Fri, Jul 12, 2019 at 06:48:05PM +0800, Huang, Ying wrote: > > Ordinarily I would hope that the patch was motivated by observed > > behaviour so you have a metric for goodness. However, for NUMA balancing > > I would typically run basic workloads first -- dbench, tbench, netperf, > > hackbench and pipetest. The objective would be to measure the degree > > automatic NUMA balancing is interfering with a basic workload to see if > > they patch reduces the number of minor faults incurred even though there > > is no NUMA balancing to be worried about. This measures the general > > overhead of a patch. If your reasoning is correct, you'd expect lower > > overhead. > > > > For balancing itself, I usually look at Andrea's original autonuma > > benchmark, NAS Parallel Benchmark (D class usually although C class for > > much older or smaller machines) and spec JBB 2005 and 2015. Of the JBB > > benchmarks, 2005 is usually more reasonable for evaluating NUMA balancing > > than 2015 is (which can be unstable for a variety of reasons). In this > > case, I would be looking at whether the overhead is reduced, whether the > > ratio of local hits is the same or improved and the primary metric of > > each (time to completion for Andrea's and NAS, throughput for JBB). > > > > Even if there is no change to locality and the primary metric but there > > is less scanning and overhead overall, it would still be an improvement. > > Thanks a lot for your detailed guidance. > No problem. > > If you have trouble doing such an evaluation, I'll queue tests if they > > are based on a patch that addresses the specific point of concern (scan > > period not updated) as it's still not obvious why flipping the logic of > > whether shared or private is considered was necessary. > > I can do the evaluation, but it will take quite some time for me to > setup and run all these benchmarks. So if these benchmarks have already > been setup in your environment, so that your extra effort is minimal, it > will be great if you can queue tests for the patch. Feel free to reject > me for any inconvenience. > They're not setup as such, but my testing infrastructure is heavily automated so it's easy to do and I think it's worth looking at. If you update your patch to target just the scan period aspects, I'll queue it up and get back to you. It usually takes a few days for the automation to finish whatever it's doing and pick up a patch for evaluation. -- Mel Gorman SUSE Labs