Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2301284ybc; Wed, 20 Nov 2019 11:58:14 -0800 (PST) X-Google-Smtp-Source: APXvYqz6aDElJFAKsIKyo/GqnYX6qmmAcXlr2hfo9z4YwR/gV7HCDqgwwNis94LZanQf4Vy06ldY X-Received: by 2002:a1c:3b08:: with SMTP id i8mr5364173wma.56.1574279894713; Wed, 20 Nov 2019 11:58:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574279894; cv=none; d=google.com; s=arc-20160816; b=dQCUSBJ+rP933rSc/o8eaWtFg7T6eFFXNoD/7TmHp4oAy+qnaAztWXn360KxyBHk1s QYZ6qhTlnacnND5nn7xBvgqjDzSvvDPOGNUpcbKkyaGpNtcyMqBMmM5qyRpAsn2S0Sfw ZkSH8DHC2I19Ar8i/izyZPSObAzvJliaI/DLGw0stJEf1h0EKjBSl/AO4QNlvsxc9EFT HGBhcAHic/mJYDm+rlvpbkpueVBkJuGSQwKiPjv7nRo2Gc9Nihxq+iXNqlIP/CBxBtgG oYB3LJjYv4ka6Ve3vO2RIeuTiEfc4ECFZnoTk5oQuhDIGBGJnu06BSEFH19M3SXkCJgq Z2Gg== 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=sRk7HOmZgGiFygiViYHNWALe2DgxwGUB9ngbM53PNxA=; b=xzuij4f23XaIUd5zxr3EevLQ2w+RqHzVHR8ILDUIec5IIQhVnBhTUGb2ZsCly0IeUU tiqyW41B2k80TLZRbr0m6nucxvCk7OENW7ahL6a6pYtiPcFLxD/S4Gtff+GROvSt9uhx +wNNFxNkZQUerqzQZAWPs961z+t0hwukIJXXXg4JiGEsjC26JsFnxXaijj49tXsw4KVU r+mmepznt+i41cviwahpt75s47Eero6f61lqJDNYP/24HXFaP8vSZlSTBE6wGhiMNPs/ 37H6Bxt3VgtOCHXwajZRi/6y/fmP/+sZ0hGbdm7pUa3ACfyB5DZwdK8eM8E26djC3Hst eD5w== 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 a13si340209edr.154.2019.11.20.11.57.51; Wed, 20 Nov 2019 11:58:14 -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 S1727773AbfKTTz2 (ORCPT + 99 others); Wed, 20 Nov 2019 14:55:28 -0500 Received: from foss.arm.com ([217.140.110.172]:45450 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727702AbfKTTz0 (ORCPT ); Wed, 20 Nov 2019 14:55:26 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2BA541FB; Wed, 20 Nov 2019 11:55:26 -0800 (PST) Received: from e107158-lin.cambridge.arm.com (e107158-lin.cambridge.arm.com [10.1.195.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 795BB3F6C4; Wed, 20 Nov 2019 11:55:24 -0800 (PST) Date: Wed, 20 Nov 2019 19:55:22 +0000 From: Qais Yousef To: Vincent Guittot Cc: linux-kernel , Ingo Molnar , Peter Zijlstra , Phil Auld , Valentin Schneider , Srikar Dronamraju , Quentin Perret , Dietmar Eggemann , Morten Rasmussen , Hillf Danton , Parth Shah , Rik van Riel Subject: Re: [PATCH v4 11/11] sched/fair: rework find_idlest_group Message-ID: <20191120195521.nvhzvd3x7l7jdxsr@e107158-lin.cambridge.arm.com> References: <1571405198-27570-12-git-send-email-vincent.guittot@linaro.org> <20191120115844.scli3gprgd5vvlt4@e107158-lin.cambridge.arm.com> <20191120173431.b7e4jbq44mjletfe@e107158-lin.cambridge.arm.com> <20191120181002.lh7vukjm2ifhysbc@e107158-lin.cambridge.arm.com> <20191120182731.z2sh5ju7uir5s3cp@e107158-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/20/19 20:28, Vincent Guittot wrote: > I run few more tests and i can get either hw counter with 0 or not. > The main difference is on which CPU it runs: either big or little > little return always 0 and big always non-zero value > > on v5.4-rc7 and tip/sched/core, cpu0-3 return 0 and other non zeroa > but on next, it's the opposite cpu0-3 return non zero ratio > > Could you try to run the test with taskset to run it on big or little ? Nice catch! Yes indeed using taskset and forcing it to run on the big cpus it passes even on linux-next/next-20191119. So the relation to your patch is that it just biased where this test is likely to run in my case and highlighted the breakage in the counters, probably? FWIW, if I use taskset to force always big it passes. Always small, the counters are always 0 and it passes too. But if I have mixed I see what I pasted before, the counters have valid value but nhw is 0. So the questions are, why little counters aren't working. And whether we should run the test with taskset generally as it can't handle the asymmetry correctly. Let me first try to find out why the little counters aren't working. Thanks -- Qais Yousef