Received: by 10.192.165.148 with SMTP id m20csp4234880imm; Tue, 8 May 2018 05:22:20 -0700 (PDT) X-Google-Smtp-Source: AB8JxZop0RAkTPKN2yfWBS/tRQCaC8XdSfeovOcHiMIIGlS52jKdoDIPD4yWSDRsY9v/sp2WNtfC X-Received: by 2002:a63:9557:: with SMTP id t23-v6mr32014748pgn.77.1525782140215; Tue, 08 May 2018 05:22:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525782140; cv=none; d=google.com; s=arc-20160816; b=03pew1svxaZlIIgxJcXM7Dqpde2JI6sk8nmCusu7iez38gi65O9GgpBBPYMezkIS2z ijJWpNYs/3h8/Ye5ANI8rsy+ZfPLuqgQ7Qz7hT0/v557KVkSXookyk5oBFGkPNCoYwtX x2q9wm9UNiCr8iPBxJXaIO6AZe/YPm7Jarb/jBVp1CczcxifII/Wpcil9SpoI2Gk4LdO 6/DzOlTfFUGR5Ddvs/FWOs7ptUriYCjBm7AAKXcPUBF3KPh8trhvYxqnlieuD7FeFy2u Ajr4pqEKmcmEFsB4TM6Ql6Mk5YhS+o7k/lwY+bA9fAXHRCvXyVbnGwbQ2oxsQJt4ZFDc wZNA== 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:arc-authentication-results; bh=GbofunZCxrJuWCgApBwabFkd1akras0xFcWaxAuosF8=; b=XyVEO4MH3xO633ia/at/86+tfFOnozqFj30keu85LXhSKcvpSa4V7ZOmk2Z1H3heJX UpApUFu+aO/BxzesiKRwl7/OQpKaDJHSIQDTg5VQTIXvUpXleSJfXpf5oXO5w3JvC+yR vEspw91eBsXMWRHfDIcspIdtgJXFhYPbicBw6UEMJGbbkAeeygICsPsERybzU3gV0z6N HYcT8XQtRSu9cv5fiCprLMd3XooMmztbuApUIWBXkjTUB0yI+LdCqn6YEAvvkYKfOf5h seJot5TJKth2zJlaDiL7uZWs4zT4tUwKrR/221SOC7zB9GhleOnIuqMXzvW+mG/qhW5X KX1g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b96-v6si20406078pli.172.2018.05.08.05.22.05; Tue, 08 May 2018 05:22:20 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754963AbeEHMUp (ORCPT + 99 others); Tue, 8 May 2018 08:20:45 -0400 Received: from mail-wm0-f51.google.com ([74.125.82.51]:34432 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754005AbeEHMUn (ORCPT ); Tue, 8 May 2018 08:20:43 -0400 Received: by mail-wm0-f51.google.com with SMTP id a137-v6so18945252wme.1 for ; Tue, 08 May 2018 05:20:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=GbofunZCxrJuWCgApBwabFkd1akras0xFcWaxAuosF8=; b=bMjmUENYeKc+I7Beiigfj5sUjgrTs8O8SOY0S0S6aRDvZDCcx0t+bCMjIYiv8Bd6TH Wm8I+dgOARh/HrgXlyeZeWspcaOSkhcDMfkQ6wV+nca+POiQdKjI1xfb1aErTqxWpzD6 d1BUDKVWqY/dhDSq5RM68GtRWm5FtjcN9DlBGZ2IXISt1n1IU1VTTsUbVwtGE7wwHLaN oRrr0wtHCAsn4OG4JM01Ue+Qler/7BNep1iqfFdSbcEOdUlOy1A4ZYkzppCYmJDwQC7v E6WEGt/E5fpM6uT4Saq0ZIWuVVGZ4P1tWj9+BhLNwMscsH9v4Br2rO/ZmrgJP613IoDo dDnA== X-Gm-Message-State: ALKqPwd+PRbH4b3BGnM6ljZCv4Zl5iJAidWunuVwwMtrR+t1zvXIwL2n OPqGr3HsnFpllVPG0TZNEfOPKA== X-Received: by 10.28.20.66 with SMTP id 63mr3095635wmu.100.1525782042742; Tue, 08 May 2018 05:20:42 -0700 (PDT) Received: from localhost.localdomain ([151.15.207.48]) by smtp.gmail.com with ESMTPSA id x24sm8207466wmh.18.2018.05.08.05.20.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 08 May 2018 05:20:42 -0700 (PDT) Date: Tue, 8 May 2018 14:20:40 +0200 From: Juri Lelli To: Quentin Perret Cc: Viresh Kumar , Dietmar Eggemann , linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , linux-pm@vger.kernel.org, Pavan Kondeti , "Rafael J . Wysocki" , Joel Fernandes , Patrick Bellasi Subject: Re: [PATCH] Revert "cpufreq: schedutil: Don't restrict kthread to related_cpus unnecessarily" Message-ID: <20180508122040.GE19168@localhost.localdomain> References: <20180508073340.13114-1-dietmar.eggemann@arm.com> <20180508082242.bre6sjfvefhz6xc3@vireshk-i7> <8cf21b1a-ca6e-fed7-43c5-94c66ff5986b@arm.com> <20180508094526.ajyjrwytguhv4xpe@vireshk-i7> <20180508100227.GB3752@e108498-lin.cambridge.arm.com> <20180508103427.w2rq3vz3f66y4cxh@vireshk-i7> <20180508110003.GC3752@e108498-lin.cambridge.arm.com> <20180508111451.rmoi2rk3md6lhbvl@vireshk-i7> <20180508112424.GA463@e108498-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180508112424.GA463@e108498-lin.cambridge.arm.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/05/18 12:24, Quentin Perret wrote: > On Tuesday 08 May 2018 at 16:44:51 (+0530), Viresh Kumar wrote: > > On 08-05-18, 12:00, Quentin Perret wrote: > > > Right, I see your point. Now, with the current implementation, why should > > > we randomly force a CPU to manage the kthread of another ? IIUC deadline > > > should assign the kthreads to CPUs depending on the state of the system > > > when the task is created. So, from one boot to another, you could > > > theoretically end up with varying configurations, and varying power/perf > > > numbers. > > > > Yeah, if it is fixed at boot then there is no good reason to push it > > to any other CPU. I agree. > > > > To be fair, I think that DL tasks _can_ migrate, but only in special > conditions (hotplug, or if a DL task wakes up when another DL task is > running and things like that IIRC) but that probably doesn't matter much > for our discussion here. More than "special" I'd say "different" (w.r.t. CFS). DL looks at tasks deadlines and use that info to migrate tasks around. So, it's correct that they will currently stay on first CPU they run on if no other DL tasks are around. Luca's capacity(/energy) awareness stuff should change that in the future. But that might take a while I guess. :/