Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3339536ybc; Thu, 21 Nov 2019 06:59:46 -0800 (PST) X-Google-Smtp-Source: APXvYqzQtsCMQKXLr9roxy9hM91hg8MTPPICg+5chEhwS7zTeSk6orhS8IAQ5DNvQVx/z3zxZN2i X-Received: by 2002:adf:9f52:: with SMTP id f18mr10969235wrg.51.1574348386104; Thu, 21 Nov 2019 06:59:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574348386; cv=none; d=google.com; s=arc-20160816; b=hdfyFd6LSqg1IMWhH6Ia6BHMXQ00p234h8OpAuWvEFJIzwL0KOG1Me0rY42N1lSOQN eG/EzOguxbqj2dMiqTRzFl+Z9n+GKymJpzUSvVeIb+XpOizU4ZHJ05vS/1VPN3TgSimA hWjzhkWKLQHFbFhp7mEbLpgdX07ff24eHr1yZt68Bq5PFEKAjkE+lT2bYDNTx4KcxHAZ trp4rqdr7IOcZGQu7vApt7lLaLvnDWutMUpUA1UGQlcCXqoPz5OW3p1uYd9ZDOBoOW78 tD3Nz7vADZnNEIsYnztWfaYXxqs4Y3vqKD6cnbFqHgsDag8jicUwH5abnV6Q0es4PgvC Z5Aw== 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=3qhCxTAi6ridB03Qew98PqNjqor5cu4Qe8pCyZFeN10=; b=RzMmHarLBR5mSDmz5hqjbEzyiEttNN3mXhlBWfdMxb5+UNJiB9Uawvl+UWJ/xCnlpj 0Jb/CINV5NN1H5BmXDPnGFxvd6WEWukpQCsFzgMl/rv0H9O2h7jCncm6Jz7oUvM9TzoJ yriM4+S5EOgloo9dxp7OYhwGrDnnnqccLxMj7p+FE9uAo4yVwOl4eS/PiRLsml+u6Dag CZe9SsB00uL+pMxIEsWNQ5xQ24aA3ttPuROeg8/xfo6CLTeDQHLvV1L8o7AQ5fMxZegt CrPD0iuQX9UfzrUXolOkvUBOuGqVhFEfixJY7mT/elMLuixdb0jn3ZSqO9JCYOBZEbn4 UnfQ== 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 b96si2205861edf.450.2019.11.21.06.59.21; Thu, 21 Nov 2019 06:59:46 -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 S1726613AbfKUO6O (ORCPT + 99 others); Thu, 21 Nov 2019 09:58:14 -0500 Received: from foss.arm.com ([217.140.110.172]:57658 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726293AbfKUO6N (ORCPT ); Thu, 21 Nov 2019 09:58:13 -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 26340DA7; Thu, 21 Nov 2019 06:58:13 -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 5E80D3F703; Thu, 21 Nov 2019 06:58:11 -0800 (PST) Date: Thu, 21 Nov 2019 14:58:09 +0000 From: Qais Yousef To: Vincent Guittot , mark.rutland@arm.com 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: <20191121145808.vlixdy3ilxfaswyr@e107158-lin.cambridge.arm.com> References: <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> <20191120195521.nvhzvd3x7l7jdxsr@e107158-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191120195521.nvhzvd3x7l7jdxsr@e107158-lin.cambridge.arm.com> 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 19:55, Qais Yousef wrote: > 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. So it turns out there's a caveat on usage of perf counters on big.LITTLE systems. Mark on CC can explain this better than me so I'll leave the details to him. Sorry about the noise Vincent - it seems your patch was shifting things slightly to cause migrating the task to another CPU, hence trigger the failure on reading the perf counters, and the test in return. Thanks -- Qais Yousef