Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3884737imu; Mon, 10 Dec 2018 09:18:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/VutdQxpJv3AFfu8jwafTncaF5VqCbeOFjKcuJB0uoEx4w1upz1hNEFwe6gIM2h3ZndAOyV X-Received: by 2002:a63:3e05:: with SMTP id l5mr10760469pga.96.1544462305819; Mon, 10 Dec 2018 09:18:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544462305; cv=none; d=google.com; s=arc-20160816; b=0eZnSSFIe2wgyujjgAqc+9KxepaIFvP7zMvuMZETt1acMFpbuljpX5iI81U9fu5/E7 FdkY4Xso47mgDXBL/ZUCLS97jo+/SoSyUt6Ggl8jrnq2kJMhTlO/sidX+IIBXLDFePQD 3zpxNPYqmLPSu/ic3aPFD1JchHONncKRVFC+8iw2RiY+UTqi8k9A2qq0qT4Nn95PveNY f8A/BlsryXRPWh0+dwFKcJiai3bbV+A5nNXd0/G8xHh49EbRcdF/EIdMDHTTbkpoVJSL X8Kbf0E/SLFSQqkvRtdpJyuqmNnJywMfze/NIU+Db5ooozmTMaYQsJ0cXdpRsECmA4zK MJTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=1Y3zKoCtLr2eQKkjZgkHAi3OIlvoPkl5oQj0T6eQAmg=; b=QkHItyvJDtOfxlv+hA+0XDAEioYPnvw8S8xcKTZ9OFtmt6jg76NsB+HtTxTJMqW5ug VWU4t0qg64iTDITy8Jw55RInyIMhJVg8u+rxikE9H9SCIPwuG5OcW3swDw3q9sEFOMqi ksDPcc0iZHxjJ9PnvWx4Dpq/jydwrkNq13N7XeE/G2RXaEXUdgWiwufPR1OncnyV5qQ4 jg4cyM89H6VpbMG48bgbKoVDs06ywnPZ7vxtW11yrY4Kwg7xYj89inDYHsztOzrZempH ahDyeYrjwdcsfx/nhv+idJMrS8+rPF7uFR10YYcholDEiMOdFHpw5gRoChp6AvxapqFG KsKQ== 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 y7si9963206pgc.236.2018.12.10.09.18.10; Mon, 10 Dec 2018 09:18:25 -0800 (PST) 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 S1728257AbeLJRGV (ORCPT + 99 others); Mon, 10 Dec 2018 12:06:21 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:58834 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726261AbeLJRGV (ORCPT ); Mon, 10 Dec 2018 12:06:21 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9D9A91596; Mon, 10 Dec 2018 09:06:20 -0800 (PST) Received: from [10.1.194.37] (e113632-lin.cambridge.arm.com [10.1.194.37]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3FAC93F6A8; Mon, 10 Dec 2018 09:06:18 -0800 (PST) Subject: Re: [PATCH v4 00/10] steal tasks to improve CPU utilization To: Steven Sistare , Vincent Guittot Cc: Ingo Molnar , Peter Zijlstra , subhra.mazumdar@oracle.com, Dhaval Giani , daniel.m.jordan@oracle.com, pavel.tatashin@microsoft.com, Matt Fleming , Mike Galbraith , Rik van Riel , Josef Bacik , Juri Lelli , Quentin Perret , linux-kernel References: <1544131696-2888-1-git-send-email-steven.sistare@oracle.com> From: Valentin Schneider Message-ID: <6dd38557-149b-bdea-a544-cde2dcf563ae@arm.com> Date: Mon, 10 Dec 2018 17:06:16 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 10/12/2018 16:29, Steven Sistare wrote: [...] >> I have run some hackbench tests on my hikey arm64 octo cores with your >> patchset. My original intent was to send a tested-by but I have some >> performances regressions. >> This hikey is the smp one and not the asymetric hikey960 that Valentin >> used for his tests >> The sched domain topology is >> domain-0: span=0-3 level=MC and domain-0: span=4-7 level=MC >> domain-1: span=0-7 level=DIE >> >> I have run 12 times hackbench -g $j -P -l 2000 with j equals to 1 2 3 4 8 >> >> grps time >> 1 1.396 >> 2 2.699 >> 3 3.617 >> 4 4.498 >> 8 7.721 >> >> Then after disabling STEAL in sched_feature with echo NO_STEAL > >> /sys/kernel/debug/sched_features , the results become: >> grps time >> 1 1.217 >> 2 1.973 >> 3 2.855 >> 4 3.932 >> 8 7.674 >> >> I haven't looked in details about some possible reasons of such >> difference yet and haven't collected the stats that you added with >> patch 10. >> Have you got a script to collect and post process them ? >> I used the script that Steve sent just before LPC [1] - I probably should have given that a try sooner... Running the base "hackseries" on my H960 gave me this: --- base -- --- new --- groups time %stdev time %stdev %speedup 1 1.021 9.1 1.214 9.1 -15.9 2 1.066 4.3 1.232 7.1 -13.5 3 1.140 9.3 1.247 3.0 -8.6 4 1.207 5.4 1.246 6.2 -3.2 Now that board struggles with thermal, so I swapped the order of testing (STEAL enabled first, then NO_STEAL) out of curiosity: --- base -- --- new --- groups time %stdev time %stdev %speedup 1 0.986 8.6 1.218 4.9 -19.1 2 1.096 5.5 1.290 6.2 -15.1 3 1.124 5.5 1.237 8.1 -9.2 4 1.181 8.7 1.238 5.9 -4.7 And actually running the same test twice with NO_STEAL gives me: --- base -- --- new --- groups time %stdev time %stdev %speedup 1 1.005 8.3 1.225 5.5 -18.0 2 1.126 6.4 1.220 7.1 -7.8 3 1.199 5.8 1.264 3.2 -5.2 4 1.167 4.6 1.314 8.5 -11.2 We might need some other benchmark to test this. Or a much bigger fan... [1]: https://lore.kernel.org/lkml/0eaa3ee9-64d6-4739-eec9-e28befa0e97f@oracle.com/ >> Regards, >> Vincent > > Thanks Vincent. What is the value of /proc/sys/kernel/sched_wakeup_granularity_ns? > Try 15000000. Your 8-core system is heavily overloaded with 40 * groups tasks, > and I suspect preemptions are killing performance. > While hackbench is not super representative of "real life", I wonder if we shouldn't do something about the default if using stealing suggests it (wild speculation here). > I have a python script to post-process schedstat files, but it does many things > and is large and I am not ready to share it. I can write a short bash script if > that would help. > > - Steve >