From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EB4C7C43144 for ; Wed, 27 Jun 2018 13:26:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AA3B02634D for ; Wed, 27 Jun 2018 13:26:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AA3B02634D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ucw.cz Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965495AbeF0N0Y (ORCPT ); Wed, 27 Jun 2018 09:26:24 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:54272 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965114AbeF0N0V (ORCPT ); Wed, 27 Jun 2018 09:26:21 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 438D280521; Wed, 27 Jun 2018 15:26:19 +0200 (CEST) Date: Wed, 27 Jun 2018 15:26:18 +0200 From: Pavel Machek To: Tony Lindgren Cc: kernel list , linux-arm-kernel , linux-omap@vger.kernel.org, sre@kernel.org, nekit1000@gmail.com, mpartap@gmx.net, merlijn@wizzup.org Subject: Re: v4.18-rc1 on droid 4: very bad CPU performance Message-ID: <20180627132618.GA32007@amd> References: <20180621121542.GA4836@amd> <20180622072005.GF112168@atomide.com> <20180622074936.GG112168@atomide.com> <20180625094949.GA17001@amd> <20180626061604.GK112168@atomide.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BOKacYhQ+x31HxR3" Content-Disposition: inline In-Reply-To: <20180626061604.GK112168@atomide.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon 2018-06-25 23:16:04, Tony Lindgren wrote: > * Pavel Machek [180625 09:52]: > > Hi! > >=20 > > > > > V4.18 is slower than it should be. > > > > >=20 > > > > > user@devuan:~$ time cat /dev/urandom | head -c 10000000 | bzip2 = -9 - > > > > > | wc -c > > > > > 10044291 > > > > > 52.73user 2.40system 61.53 (1m1.534s) elapsed 89.60%CPU > > > > > user@devuan:~$ uname -a > > > > > Linux devuan 4.18.0-rc1-87964-gfa19934-dirty #743 SMP Sun Jun 17 > > > > > 19:26:37 CEST 2018 armv7l GNU/Linux > > > > >=20 > > > > > That bzip should take 12 seconds, not minute. > > > > >=20 > > > > > Any ideas? Do you see it, too? > > > >=20 > > > > I've noticed firefox is super slow.. Git bisect time? > > >=20 > > > Hmm not happening for me at least on duovero and droid4, > > > I'm getting about 20s for v4.17 and v4.18-rc1. > >=20 > > Something weird is going on here. My notes say it should be 12 > > seconds. > >=20 > > It is indeed 20 seconds for v4.17, but it is 12 seconds in v4.14. > >=20 > > v4.14 is: > > # CONFIG_CPU_FREQ is not set > > CONFIG_CPU_IDLE=3Dy > > # CONFIG_CPU_IDLE_GOV_LADDER is not set > > CONFIG_CPU_IDLE_GOV_MENU=3Dy > > # CONFIG_ARM_CPUIDLE is not set > >=20 > > In v4.18, I have: > >=20 > > CONFIG_CPU_FREQ=3Dy > > CONFIG_CPU_FREQ_GOV_ATTR_SET=3Dy > > CONFIG_CPU_FREQ_GOV_COMMON=3Dy > > CONFIG_CPU_FREQ_STAT=3Dy > > CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=3Dy > >=20 > > CONFIG_CPU_IDLE=3Dy > > CONFIG_CPU_IDLE_GOV_MENU=3Dy > > CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED=3Dy >=20 > I gave it a quick try here with v4.14 and it was 21 seconds > on 4430 duovero. But this was with omap2plus_defconfig. Weird. In v4.18 I seen times from 57 seconds to 27 seconds to 20 seconds. It seems to be consistent after boot. v4.14 is fast... 12 second. v4.15 (all-v4.15 branch) -- no boot. all-v4.16 -- 15.7 seconds. all-v4.18 with "all" config: time varies (20, 24, 27, 57 seconds). all-v4.18 with "droid4" config: 20 seconds. What needs to be done to get cpufreq to work? One of my hypothesis is that cpu is running at wrong rate. I have it enabled in config, but no luck: user@devuan:~$ zcat /proc/config.gz | grep CPU_FREQ CONFIG_CPU_FREQ=3Dy CONFIG_CPU_FREQ_GOV_ATTR_SET=3Dy CONFIG_CPU_FREQ_GOV_COMMON=3Dy CONFIG_CPU_FREQ_STAT=3Dy # CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=3Dy # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set CONFIG_CPU_FREQ_GOV_PERFORMANCE=3Dy CONFIG_CPU_FREQ_GOV_POWERSAVE=3Dy CONFIG_CPU_FREQ_GOV_USERSPACE=3Dy CONFIG_CPU_FREQ_GOV_ONDEMAND=3Dy CONFIG_CPU_FREQ_GOV_CONSERVATIVE=3Dy # CONFIG_CPU_FREQ_GOV_SCHEDUTIL is not set user@devuan:~$ sudo cpufreq-info cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009 Report errors and bugs to cpufreq@vger.kernel.org, please. analyzing CPU 0: no or unknown cpufreq driver is active on this CPU maximum transition latency: 0.00 ms. analyzing CPU 1: no or unknown cpufreq driver is active on this CPU maximum transition latency: 0.00 ms. user@devuan:~$ Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --BOKacYhQ+x31HxR3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlszkHoACgkQMOfwapXb+vIbtgCdEu9IBOrqMt0u3F+8H664y4L2 t6kAoIZ+um480sa4LZAhgRq3Xlrvj4gy =zpFJ -----END PGP SIGNATURE----- --BOKacYhQ+x31HxR3--