Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp364628pxj; Fri, 7 May 2021 10:16:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0tj1EA1rttgVdafjN7QDhJdWWA9oj8ChlRMjYYOYX1ELycoC31EigQ67+89fcOrGteP2U X-Received: by 2002:a63:2055:: with SMTP id r21mr10979864pgm.115.1620407777144; Fri, 07 May 2021 10:16:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620407777; cv=none; d=google.com; s=arc-20160816; b=V8kgcYAuaIIASglPUVKcK9+VkoyAtcANQVxf382DVQspLZyBs3xJQqNfT5GZ6p39fu ezNppzmiZIqXGPMU51RQ0ne4Ppag+NMfxDVcLq4X3ugQ3RF4WZUlHEY4NnXq1JaA6c7I AP3X56hK0jDzt9Y9G7en5dmFjXGLpqfCf4BqTaDgeQnwIJgKUfkrbf9mXqMny5oUQ137 +6UjVUsXYVoIIgpKm0kEctajy4C0RV4c2n7i5+igZoXBAmpAtehP9y95EDyT9r5H+qQc X+p+fqGbV2zxi8yJgmLQoyNIoOFBHmN5DV+Bm3NEXZYt8NbKQG6LccOCbQdz8Nlln9gR o8Sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=xUzOuz1kuPeOYu8ewOGJY3yw/u3qWhdnkK6oZzRIlmw=; b=Ax6Gcb2CXocjJFFXkdoPwzCU0SMEveC5ABkDN9IQj2U+163vQE29Mf4SOGLeYRrKuh FeXab7gxOeAwp+BTpKNPnu1LNMG6s5Ggz1VR0rZll/xE3NuZ9ESqYkgVK9hOTrpFAWpd HyGeJOWwy8xU7GjNFatclU6FdeqUvZPuQ5g2u+PZrDtsR/cE8Tr/gYkyd47Dw+yFFuAi tEESYAVY0KZARIUVwMnDjEmGedhGioTXikAaikcfoWWHGLfvDPi+6sNG4Ur/gOo3E26t +fWOlzprl4kb8hyVKFmcnX8I+us+I7qykv51iVgrgK/OfFthNypqLrKyMcyHw4z6hiH0 mR1A== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b19si6787389pfi.123.2021.05.07.10.16.04; Fri, 07 May 2021 10:16:17 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235920AbhEGNsG (ORCPT + 99 others); Fri, 7 May 2021 09:48:06 -0400 Received: from foss.arm.com ([217.140.110.172]:59764 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234951AbhEGNsG (ORCPT ); Fri, 7 May 2021 09:48:06 -0400 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 CFFFF106F; Fri, 7 May 2021 06:47:05 -0700 (PDT) Received: from e113632-lin (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 5F8413F73B; Fri, 7 May 2021 06:47:04 -0700 (PDT) From: Valentin Schneider To: Vincent Guittot Cc: linux-kernel , Peter Zijlstra , Ingo Molnar , Dietmar Eggemann , Morten Rasmussen , Qais Yousef , Quentin Perret , Pavan Kondeti , Rik van Riel , Lingutla Chandrasekhar Subject: Re: [PATCH 2/2] sched/fair: Relax task_hot() for misfit tasks In-Reply-To: References: <20210415175846.494385-1-valentin.schneider@arm.com> <20210415175846.494385-3-valentin.schneider@arm.com> <20210416135113.GA16445@vingu-book> <87blaakxji.mognet@arm.com> <878s5bvrij.mognet@arm.com> Date: Fri, 07 May 2021 14:46:59 +0100 Message-ID: <87y2cqirl8.mognet@arm.com> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vincent, apologies for the belated reply On 30/04/21 08:58, Vincent Guittot wrote: > On Wed, 21 Apr 2021 at 12:52, Valentin Schneider > wrote: >> On 20/04/21 16:33, Vincent Guittot wrote: >> > Is it something that happens often or just a sporadic/transient state >> > ? I mean does it really worth the extra complexity and do you see >> > performance improvement ? >> > >> >> "Unfortunately" yes, this is a relatively common scenario when running "1 >> big task per CPU" types of workloads. The expected behaviour for big.LITTLE >> systems is to upmigrate tasks stuck on the LITTLE CPUs as soon as a big CPU >> becomes free, usually via newidle balance (which, since they process work >> faster than the LITTLEs, is bound to happen), and an extra task being >> enqueued at "the wrong time" can prevent this from happening. >> >> This usually means a misfit task can take a few dozen extra ms than it > > A few dozens is quite long. With a big core being idle, it should try > every 8ms on a quad x quad system and I suspect the next try will be > during the next tick. Would be good to understand why it has to wait > so much > True, IIRC this was mostly due to a compound effect of the different issues I've described in that thread (and the previous one). Now that 9bcb959d05ee ("sched/fair: Ignore percpu threads for imbalance pulls") is in, I'll re-run some tests against upstream and see how we fare.