Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3044621imm; Fri, 10 Aug 2018 02:49:44 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwdFUmaPPG+Uk/6LpR/UjdpvDT6ZsCb/ln8r/RmkXjWNDiVq5tqjCmHKyiCKB1iuvlNHE+q X-Received: by 2002:a65:448a:: with SMTP id l10-v6mr5770827pgq.382.1533894584808; Fri, 10 Aug 2018 02:49:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533894584; cv=none; d=google.com; s=arc-20160816; b=aoE1mYnmdkf2lc+c9ksYIDaC420p+ITJBW13cZKwTtYy7b/0enzkYlo9PI1dOTbP6L HFt4s0B8jdSvcwkc3kDW//xLAUl/yH9UgeDZTI99eBn5gM7PJiulNgaI+yMLlTh51m2a zZHbuRKkGB41j0V2f/1+3vza4hrPCShgqu7Rjo9x4KZCyfoNTVH51yDEceElCp7XGi4N jk7c7+xRHtS6fuLkbQnxjAXhUY6iuTzv8g5/j0MXdr7Rlv6on2gN/0pLhUaBJm0b5VYT t8/RFmXHEbI5jRCftnLqKedpEWeuGNuSBuKMnkoqhbede9/iF8Cjbalt/wYz1/MF1x+o 8ZRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=KFusjVxECGoron62r/H+rHpDlXwPMZk8NPJCaimLVy8=; b=beRF4UN5BHEJe1mfXH/vhQ6TWBQx5WVXtN360UHqrlwLTTZBxMJtS+HCMtVc7atLSD Ul6bZc1Mk6ruBwtuMk4UD4oT+fHkl0SI/CgcpErsbkajrzYUFl15lcXO3/FamDoDKMlI XLNrTRzZX5HIOsWzezQgjcmC60vZQqrXm59O7ztCIlr37Ou1FT7SoQHFGx6bcd7Ls9yH ksJ6mCSKbol60Yi+F5Evr4+Oei9dtdITg9BgfX3YF/fSVeIIwLpkoHiqsbd3gtNprFlw VQR1Qem76xXX/4UD+0pxGHJOy3Ek4C9IdzFefKs4Qr3jchPBmgwbhMKL8DudiiEDXF+/ EnBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Y/YsD6BX"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x1-v6si7407964pln.336.2018.08.10.02.49.30; Fri, 10 Aug 2018 02:49:44 -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; dkim=pass header.i=@linaro.org header.s=google header.b="Y/YsD6BX"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727522AbeHJL7e (ORCPT + 99 others); Fri, 10 Aug 2018 07:59:34 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:42685 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725980AbeHJL7e (ORCPT ); Fri, 10 Aug 2018 07:59:34 -0400 Received: by mail-io0-f195.google.com with SMTP id n18-v6so7113016ioa.9 for ; Fri, 10 Aug 2018 02:30:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KFusjVxECGoron62r/H+rHpDlXwPMZk8NPJCaimLVy8=; b=Y/YsD6BXzEZjI4SIx5fuvq4FQbr3DU8PGY1svzyaWm0Kh9KvtqDZt25dLEZxw51x2r lo7vPP+2RNJaXHBTqlwTcINhNWUaZUG/ti4MXlQGQBYfvJoWFio2wAbhG46DGJgypbz5 I/4Hpy8+tq9XdsJHj8aWiomVYxHdICoxs79d0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KFusjVxECGoron62r/H+rHpDlXwPMZk8NPJCaimLVy8=; b=t1vZNgXGNOdNxJjmosiPm/7tQp/Ra7bYn160/liHe83IJckHhQ3UVdDljS7bKBydQn Hb/frTcJOubb3mQfIHRJy0rhtHHHL58cpb3/fhfcUyx9dRWqQzcoBC2w0rh7lsCgM77p Kz7vTMgomrGX+wAWN4roIcEiZwH0ZtXpx9rwS4O0QGY+aDEhkdi6O391A/0aSCfHRN39 UvIqkBxgZkBcNwt2EbsOCSfbAn+OMgeMjzI2/M/O2cMusPbFRfuFrFCL9HShBP61A2zm x7HxoshI/I5tDgKlwQ4NtHbhb+Osjdu2qa3xPP18QhJRUUCgiAl6DZE1vMz+IVxkGaMo kjSQ== X-Gm-Message-State: AOUpUlHw41biTr/8RTVAu8ui1bmH6FzjNXkobNqJKU5eZiAp3IGMAV9b ypg/JZNGo0wY331IWrCQ6Pgc6AcLioGRgJaioyIziw== X-Received: by 2002:a5e:8341:: with SMTP id y1-v6mr4386960iom.183.1533893429655; Fri, 10 Aug 2018 02:30:29 -0700 (PDT) MIME-Version: 1.0 References: <1530699470-29808-1-git-send-email-morten.rasmussen@arm.com> <1530699470-29808-13-git-send-email-morten.rasmussen@arm.com> <20180706143139.GE8596@e105550-lin.cambridge.arm.com> In-Reply-To: From: Vincent Guittot Date: Fri, 10 Aug 2018 11:30:18 +0200 Message-ID: Subject: Re: [PATCHv4 12/12] sched/core: Disable SD_PREFER_SIBLING on asymmetric cpu capacity domains To: Valentin Schneider Cc: Morten Rasmussen , Peter Zijlstra , Ingo Molnar , Dietmar Eggemann , gaku.inami.xh@renesas.com, linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 6 Aug 2018 at 12:53, Valentin Schneider wrote: > > Hi, > > On 06/08/18 11:20, Vincent Guittot wrote: > > Hi Valentin, > > > > On Tue, 31 Jul 2018 at 14:33, Valentin Schneider > > wrote: > >> > >> Hi, > >> > >> On 31/07/18 13:17, Vincent Guittot wrote: > >> [...] > >>>> > >>>> This can easily happen with SD_PREFER_SIBLING enabled too so I wouldn't > >>>> say that this patch breaks anything that isn't broken already. In fact > >>>> we this happening with and without this patch applied. > >>> > >>> At least for the use case above, this doesn't happen when > >>> SD_PREFER_SIBLING is set > >>> > >> > >> On my HiKey960 I can see coscheduling on a big CPU while a LITTLE is free > >> with **and** without SD_PREFER_SIBLING. Having it set only means that in > >> some cases the imbalance will be re-classified as group_overloaded instead > >> of group_misfit_task, so we'll skip the misfit logic when we shouldn't (this > >> happens on Juno for instance). > > > > Can you give more details about your test case ? > > > > I've been running the same test case as presented in the cover letter on > my HiKey960 but with sched_switch tracing and with no tasksets. I've just > re-run the testcase with tasksets and I get similar results (i.e. a big > with coscheduling while a LITTLE is free) with or without the flag. > > >> > >> It does nothing for the "1 task per CPU" problem that Morten described above. > >> When you have this little amount of tasks, load isn't very relevant, but it > >> skews the load-balancer into thinking the LITTLE CPUs are more busy than > >> the bigs even though there's an idle one in the lot. ok. I meant that without misfit patch, SD_PREFER_SIBLING ensures 1 task per CPU and no co scheduling. But co scheduling appears with misfit task patchset Vincent > >> > >>>> > >>>> Morten