Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp2351976ybg; Fri, 5 Jun 2020 11:38:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxx2YwyK5s2Ouu/WXJhqwa3FRKXENlDCAuNvL+qV4nWSRbSKoV3gcDCwlnIX92scyBugHIo X-Received: by 2002:a50:e791:: with SMTP id b17mr11068275edn.366.1591382310414; Fri, 05 Jun 2020 11:38:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591382310; cv=none; d=google.com; s=arc-20160816; b=UUUD2LJJ9p3pNS3yv5LzL6F8G1GGuIYRlkOzJftQcvcp5RSwftvuCX7l65gBBAvOHS kfRaD9vw7PiZ2DaKLp7IWyfvv0kheqKMNtzmLSDZ8vd9xuCMUS3ra7FeDB+vsVIxxJT8 G6dkSvnaL1M+sgHGj32J01GKACNsxjDel6MA6hA+3dyYllqqa/5DXfU9SDJ2GcUP6216 H1JqaT33YJgPqo4aYbU84mkOV3bfir75r+94X9wtaxNuUDVFtBjymViZElrii8t90qHJ wANNNKVEISPwQYP/CkfX4GJR0jtWQMqJIDBAp1bM1rLFlW6Dt+SaIPmkQs2GmtgiR1kF I2vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=FoVIPgHQuO27+RnWC9ouFCvdcDMeqqyETPcSyT3fyB0=; b=QsAXg8RjWQVWQluK0FJBlMtkTCNrHEWop75rgE11QW9n+C/hxwtjxi6UZ5h2nzfRTe Zx1u73lNJySFF9cyzE5/VantHioWOllSCohtxJxp4UI2cY0usupJDJ0WG8iFPd9Q69n/ J5q8EQfjlen6VkvIn+he/i8KKe84mzo9UmGP0+zpwuM7ABbFm0vgv8L2fbjOnw5UmUdC xL6hwSZzeMVdzI9jLYTIdG5FROMlU0gO5Ppekf0mpm8AGOPx8+b6csH3h5UOEE1fDOg8 Cnrsr+2iKOLJliMRU2gbTcy9bEyWjRvgX4dEGq7yMWIVEdZl5icQoBey+hjCffg8tiKi TDmA== 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=ispras.ru Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id vr3si3892433ejb.520.2020.06.05.11.38.04; Fri, 05 Jun 2020 11:38:30 -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=ispras.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726926AbgFESgC (ORCPT + 99 others); Fri, 5 Jun 2020 14:36:02 -0400 Received: from winnie.ispras.ru ([83.149.199.91]:22679 "EHLO smtp.ispras.ru" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726448AbgFESgC (ORCPT ); Fri, 5 Jun 2020 14:36:02 -0400 Received: from monopod.intra.ispras.ru (monopod.intra.ispras.ru [10.10.3.121]) by smtp.ispras.ru (Postfix) with ESMTP id D0453203BF; Fri, 5 Jun 2020 21:35:56 +0300 (MSK) Date: Fri, 5 Jun 2020 21:35:56 +0300 (MSK) From: Alexander Monakov To: "Rafael J. Wysocki" cc: linux-kernel@vger.kernel.org, Linux PM , Peter Zijlstra , Giovanni Gherdovich , qperret@google.com, juri.lelli@redhat.com, Valentin Schneider , Vincent Guittot , Doug Smythies Subject: Re: schedutil issue with serial workloads In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20.13 (LNX 116 2015-12-14) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 5 Jun 2020, Rafael J. Wysocki wrote: > > This sounds like it should be a known problem, but I couldn't find any > > mention of it in the documentation. > > Well, what would you expect to happen instead of what you see? Not sure why you ask. Named workloads are pretty common for example on "build-bot" machines. If you don't work exclusively on the kernel you probably recognize that on, let's say, more "traditionally engineered" packages ./configure can take 10x more wall-clock time than subsequent 'make -j $(nproc)', and if schedutil makes the problem worse by consistently choosing the lowest possible frequency for the configure phase, that's a huge pitfall that's worth fixing or documenting. To answer your question, assuming schedutil is intended to become a good choice for a wide range of use-cases, I'd expect it to choose a high frequency, ideally the highest, and definitely not the lowest. I think I was pretty transparent about that in my initial mail. I understand there is no obvious fix and inventing one may prove difficult. Short term, better Kconfig help text to help people make a suitable choice for their workloads would be nice. I'd also like to point out that current Kconfig is confusingly worded where it says "If the utilization is frequency-invariant, ...". It can be interpreted as "the workload is producing the same utilization irrespective of frequency", but what it actually refers to is the implementation detail of how the "utilization" metric is interpreted. Does that sentence need to be in Kconfig help at all? Thanks. Alexander