From: Pavel Machek <pavel@ucw.cz>
To: Tony Lindgren <tony@atomide.com>
Cc: kernel list <linux-kernel@vger.kernel.org>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
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
Date: Wed, 27 Jun 2018 15:26:18 +0200 [thread overview]
Message-ID: <20180627132618.GA32007@amd> (raw)
In-Reply-To: <20180626061604.GK112168@atomide.com>
[-- Attachment #1: Type: text/plain, Size: 3356 bytes --]
On Mon 2018-06-25 23:16:04, Tony Lindgren wrote:
> * Pavel Machek <pavel@ucw.cz> [180625 09:52]:
> > Hi!
> >
> > > > > V4.18 is slower than it should be.
> > > > >
> > > > > 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
> > > > >
> > > > > That bzip should take 12 seconds, not minute.
> > > > >
> > > > > Any ideas? Do you see it, too?
> > > >
> > > > I've noticed firefox is super slow.. Git bisect time?
> > >
> > > Hmm not happening for me at least on duovero and droid4,
> > > I'm getting about 20s for v4.17 and v4.18-rc1.
> >
> > Something weird is going on here. My notes say it should be 12
> > seconds.
> >
> > It is indeed 20 seconds for v4.17, but it is 12 seconds in v4.14.
> >
> > v4.14 is:
> > # CONFIG_CPU_FREQ is not set
> > CONFIG_CPU_IDLE=y
> > # CONFIG_CPU_IDLE_GOV_LADDER is not set
> > CONFIG_CPU_IDLE_GOV_MENU=y
> > # CONFIG_ARM_CPUIDLE is not set
> >
> > In v4.18, I have:
> >
> > CONFIG_CPU_FREQ=y
> > CONFIG_CPU_FREQ_GOV_ATTR_SET=y
> > CONFIG_CPU_FREQ_GOV_COMMON=y
> > CONFIG_CPU_FREQ_STAT=y
> > CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
> >
> > CONFIG_CPU_IDLE=y
> > CONFIG_CPU_IDLE_GOV_MENU=y
> > CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED=y
>
> 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=y
CONFIG_CPU_FREQ_GOV_ATTR_SET=y
CONFIG_CPU_FREQ_GOV_COMMON=y
CONFIG_CPU_FREQ_STAT=y
# 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=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
# 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
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: pavel@ucw.cz (Pavel Machek)
To: linux-arm-kernel@lists.infradead.org
Subject: v4.18-rc1 on droid 4: very bad CPU performance
Date: Wed, 27 Jun 2018 15:26:18 +0200 [thread overview]
Message-ID: <20180627132618.GA32007@amd> (raw)
In-Reply-To: <20180626061604.GK112168@atomide.com>
On Mon 2018-06-25 23:16:04, Tony Lindgren wrote:
> * Pavel Machek <pavel@ucw.cz> [180625 09:52]:
> > Hi!
> >
> > > > > V4.18 is slower than it should be.
> > > > >
> > > > > user at 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 at 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
> > > > >
> > > > > That bzip should take 12 seconds, not minute.
> > > > >
> > > > > Any ideas? Do you see it, too?
> > > >
> > > > I've noticed firefox is super slow.. Git bisect time?
> > >
> > > Hmm not happening for me at least on duovero and droid4,
> > > I'm getting about 20s for v4.17 and v4.18-rc1.
> >
> > Something weird is going on here. My notes say it should be 12
> > seconds.
> >
> > It is indeed 20 seconds for v4.17, but it is 12 seconds in v4.14.
> >
> > v4.14 is:
> > # CONFIG_CPU_FREQ is not set
> > CONFIG_CPU_IDLE=y
> > # CONFIG_CPU_IDLE_GOV_LADDER is not set
> > CONFIG_CPU_IDLE_GOV_MENU=y
> > # CONFIG_ARM_CPUIDLE is not set
> >
> > In v4.18, I have:
> >
> > CONFIG_CPU_FREQ=y
> > CONFIG_CPU_FREQ_GOV_ATTR_SET=y
> > CONFIG_CPU_FREQ_GOV_COMMON=y
> > CONFIG_CPU_FREQ_STAT=y
> > CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
> >
> > CONFIG_CPU_IDLE=y
> > CONFIG_CPU_IDLE_GOV_MENU=y
> > CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED=y
>
> 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 at devuan:~$ zcat /proc/config.gz | grep CPU_FREQ
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_GOV_ATTR_SET=y
CONFIG_CPU_FREQ_GOV_COMMON=y
CONFIG_CPU_FREQ_STAT=y
# 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=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
# CONFIG_CPU_FREQ_GOV_SCHEDUTIL is not set
user at devuan:~$ sudo cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq at 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 at devuan:~$
Best regards,
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180627/387e589d/attachment.sig>
next prev parent reply other threads:[~2018-06-27 13:26 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-21 12:15 v4.18-rc1 on droid 4: very bad CPU performance Pavel Machek
2018-06-21 12:15 ` Pavel Machek
2018-06-22 7:20 ` Tony Lindgren
2018-06-22 7:20 ` Tony Lindgren
2018-06-22 7:49 ` Tony Lindgren
2018-06-22 7:49 ` Tony Lindgren
2018-06-25 9:49 ` Pavel Machek
2018-06-25 9:49 ` Pavel Machek
2018-06-26 6:16 ` Tony Lindgren
2018-06-26 6:16 ` Tony Lindgren
2018-06-27 13:26 ` Pavel Machek [this message]
2018-06-27 13:26 ` Pavel Machek
2018-06-27 19:48 ` Pavel Machek
2018-06-27 19:48 ` Pavel Machek
2018-06-27 20:58 ` Pavel Machek
2018-06-27 20:58 ` Pavel Machek
2018-06-28 9:06 ` Tony Lindgren
2018-06-28 9:06 ` Tony Lindgren
2018-07-04 20:12 ` Pavel Machek
2018-07-04 20:12 ` Pavel Machek
2018-07-04 20:12 ` Pavel Machek
2018-07-04 20:22 ` Pavel Machek
2018-07-04 20:22 ` Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180627132618.GA32007@amd \
--to=pavel@ucw.cz \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=merlijn@wizzup.org \
--cc=mpartap@gmx.net \
--cc=nekit1000@gmail.com \
--cc=sre@kernel.org \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.