Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1474799ybt; Thu, 2 Jul 2020 06:30:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfv0KeqaxYfGpNIZ8EZK8zSSgirZnIYtJMCELFfzI+wXD2x2b7ID+Ce9qugyUyBlAiVmGK X-Received: by 2002:a17:906:dbe5:: with SMTP id yd5mr27929816ejb.328.1593696615384; Thu, 02 Jul 2020 06:30:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593696615; cv=none; d=google.com; s=arc-20160816; b=m8+Lb5XMkfmdJCnu+v/q9wnUOdxEmbtAJsTBzZbErnj6x7pLJNTpvq25hhtFwdkRET iTTk66bCiLjpkEEtNF8HZ9zL/2ZX/GziCaZiRr+UBWun1xKDmHwVn+siUWbTOB/k6AAO /15xAHcOtf3R4nivDmCXVkPswl+hLu1dRWqQV9yy5Dt4Pf516RPD1VPXK9G7S/u8u80u Fp45GBbB2Q6V/a2MVx340cKbERjn3BBJVEXJ1hVO7oyldJdeRW+Y1fJJ8OEc5/kNZn13 mZYYWvf1t1fDnByQqmaf7EnYTnC5fixak3g9UU6vKgrKwK352aSRn01wL96R0TFsE6ic Z0FQ== 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=8RaDfvHZuNOdpIdYqf6U+ccRa0tb9D/vwW4XEcIGiP0=; b=VhwLHGQj93CLVZTWxFCy9m1LIru+FHCogBojfg20P/1jbb6KQmkNmRvSsEKYmQ9GHn Uxj7UWHbSw8wRiDOT1Gf8Gej9aw5scOdXKX0gukU8SSsXdZSff0rV1Ph5MHB6xiXKNC1 MWagAWwLZ0XdZPW2i/Cwwy7/9kic+LJdezKn3HE358eaO+wM4m4RVZIv+1v3DXy2roYa 1jocrNr7I7PN0o6vrpt9nW836fuqm8KR5XJFNJfqp3aP/EcQJnuW/RHd5fImRtfbOXF0 Pk7TVPSHBymQPH/kOkrKK4nPB6YUGV6hfIza1X9czxyIgUXxHAyZyVGiTcRYIV15yLqO RYPg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cb9si5852003ejb.176.2020.07.02.06.29.52; Thu, 02 Jul 2020 06:30:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729150AbgGBN3n (ORCPT + 99 others); Thu, 2 Jul 2020 09:29:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:34510 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729051AbgGBN3n (ORCPT ); Thu, 2 Jul 2020 09:29:43 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 8DE30BA17; Thu, 2 Jul 2020 13:29:41 +0000 (UTC) Date: Thu, 2 Jul 2020 14:20:58 +0100 From: Mel Gorman To: Dietmar Eggemann Cc: Peter Puhov , Valentin Schneider , linux-kernel@vger.kernel.org, Robert Foley , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Steven Rostedt , Ben Segall Subject: Re: [PATCH] sched/fair: update_pick_idlest() Select group with lowest group_util when idle_cpus are equal Message-ID: <20200702132058.GN3129@suse.de> References: <20200616164801.18644-1-peter.puhov@linaro.org> <106350c5-c2b7-a63c-2b06-761f523ee67c@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <106350c5-c2b7-a63c-2b06-761f523ee67c@arm.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 Thu, Jul 02, 2020 at 11:27:52AM +0200, Dietmar Eggemann wrote: > On 17/06/2020 16:52, Peter Puhov wrote: > > On Wed, 17 Jun 2020 at 06:50, Valentin Schneider > > wrote: > >> > >> > >> On 16/06/20 17:48, peter.puhov@linaro.org wrote: > >>> From: Peter Puhov > >>> We tested this patch with following benchmarks: > >>> perf bench -f simple sched pipe -l 4000000 > >>> perf bench -f simple sched messaging -l 30000 > >>> perf bench -f simple mem memset -s 3GB -l 15 -f default > >>> perf bench -f simple futex wake -s -t 640 -w 1 > >>> sysbench cpu --threads=8 --cpu-max-prime=10000 run > >>> sysbench memory --memory-access-mode=rnd --threads=8 run > >>> sysbench threads --threads=8 run > >>> sysbench mutex --mutex-num=1 --threads=8 run > >>> hackbench --loops 20000 > >>> hackbench --pipe --threads --loops 20000 > >>> hackbench --pipe --threads --loops 20000 --datasize 4096 > >>> > >>> and found some performance improvements in: > >>> sysbench threads > >>> sysbench mutex > >>> perf bench futex wake > >>> and no regressions in others. > >>> > >> > >> One nitpick for the results of those: condensing them in a table form would > >> make them more reader-friendly. Perhaps something like: > >> > >> | Benchmark | Metric | Lower is better? | BASELINE | SERIES | DELTA | > >> |------------------+----------+------------------+----------+--------+-------| > >> | Sysbench threads | # events | No | 45526 | 56567 | +24% | > >> | Sysbench mutex | ... | | | | | > >> > >> If you want to include more stats for each benchmark, you could have one table > >> per (e.g. see [1]) - it'd still be a more readable form (or so I believe). > > Wouldn't Unix Bench's 'execl' and 'spawn' be the ultimate test cases > for those kind of changes? > > I only see minor improvements with tip/sched/core as base on hikey620 > (Arm64 octa-core). > > base w/ patch > ./Run spawn -c 8 -i 10 633.6 635.1 > > ./Run execl -c 8 -i 10 1187.5 1190.7 > > > At the end of find_idlest_group(), when comparing local and idlest, it > is explicitly mentioned that number of idle_cpus is used instead of > utilization. > The comparision between potential idle groups and local & idlest group > should probably follow the same rules. > There is the secondary hazard that what update_sd_pick_busiest returns is checked later by find_busiest_group when considering the imbalance between NUMA nodes. This particular patch splits basic communicating tasks cross-node again at fork time so cross node communication is reintroduced (same applies if sum_nr_running is used instead of group_util). -- Mel Gorman SUSE Labs