linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [REGRESSION] 774ac8b7eff6 ("Thermal: initialize thermal zone device correctly") causes performance drop
@ 2016-03-16 22:27 Laura Abbott
  2016-03-16 22:46 ` Greg Kroah-Hartman
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Laura Abbott @ 2016-03-16 22:27 UTC (permalink / raw)
  To: Zhang Rui, Javi Merino, Chen Yu
  Cc: Greg Kroah-Hartman, Manuel Krause, szegad, prash, amish, Matthias,
	linux-pm, Linux Kernel Mailing List

Hi,

Fedora received a bug report (https://bugzilla.redhat.com/show_bug.cgi?id=1317190)
of a major performance drop on various bench marks and general system
sluggishness with the 4.4.4 kernel update. The benchmarks were showing
a reduction to about 18% performance (not minor).

Bisection showed the first bad commit was

commit 774ac8b7eff69e0786970157de2157e68b22f456
Author: Zhang Rui <rui.zhang@intel.com>
Date:   Fri Oct 30 16:31:47 2015 +0800

     Thermal: initialize thermal zone device correctly
     
     commit bb431ba26c5cd0a17c941ca6c3a195a3a6d5d461 upstream.
     
     After thermal zone device registered, as we have not read any
     temperature before, thus tz->temperature should not be 0,
     which actually means 0C, and thermal trend is not available.
     In this case, we need specially handling for the first
     thermal_zone_device_update().
     
     Both thermal core framework and step_wise governor is
     enhanced to handle this. And since the step_wise governor
     is the only one that uses trends, so it's the only thermal
     governor that needs to be updated.
     
     Tested-by: Manuel Krause <manuelkrause@netscape.net>
     Tested-by: szegad <szegadlo@poczta.onet.pl>
     Tested-by: prash <prash.n.rao@gmail.com>
     Tested-by: amish <ammdispose-arch@yahoo.com>
     Tested-by: Matthias <morpheusxyz123@yahoo.de>
     Reviewed-by: Javi Merino <javi.merino@arm.com>
     Signed-off-by: Zhang Rui <rui.zhang@intel.com>
     Signed-off-by: Chen Yu <yu.c.chen@intel.com>
     Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>



Reverting this plus to other commits in the series (a67208e94d94
"Thermal: handle thermal zone device properly during system sleep"
and 27f356149d59 "Thermal: do thermal zone update after a cooling
device registered") confirmed the performance was back to normal.

Bugzilla has the full discussion but this comment from one of the
reporters sums it up:

"In 4.4.3 and prior, my 2.40 MHz processor would fluctuate between
1000 and 3400 MHz.  In 4.4.4, the processor would fluctuate between
400 and 700 MHz, according to /proc/cpuinfo.

Setting /sys/devices/system/cpu/cpufreq/policy0/scaling_governor to
performance, instead of the default "powersave" forces the CPU to
2400 MHz, and improves performance greatly, but still not to the
same level as in 4.4.3."

Any ideas?

Thanks,
Laura

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-03-21 12:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-16 22:27 [REGRESSION] 774ac8b7eff6 ("Thermal: initialize thermal zone device correctly") causes performance drop Laura Abbott
2016-03-16 22:46 ` Greg Kroah-Hartman
2016-03-17  0:00   ` Laura Abbott
2016-03-17  0:11     ` Greg Kroah-Hartman
2016-03-17  0:20     ` Pandruvada, Srinivas
2016-03-18 22:28       ` Laura Abbott
2016-03-18 23:36         ` Pandruvada, Srinivas
2016-03-17  0:17 ` Zhang, Rui
2016-03-19  4:43 ` Zhang Rui
     [not found]   ` <CAJABK0MXJRh9wtud+RQrL-==afymcqVovRC8FAZ6=qG4Sob+Tw@mail.gmail.com>
2016-03-21 11:14     ` Vladyslav Frolov
2016-03-21 12:14       ` Vladyslav Frolov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).