Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1323481 > unrolled thread
| Started by | Thomas Voegtle <tv@lio96.de> |
|---|---|
| First post | 2016-02-01 21:40 +0100 |
| Last post | 2016-02-03 20:30 +0100 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.kernel
Performance drop on Baytrail with 4.5-rc2 Thomas Voegtle <tv@lio96.de> - 2016-02-01 21:40 +0100
RE: Performance drop on Baytrail with 4.5-rc2 "Longepe, Philippe" <philippe.longepe@intel.com> - 2016-02-02 11:40 +0100
RE: Performance drop on Baytrail with 4.5-rc2 Thomas Voegtle <tv@lio96.de> - 2016-02-02 19:00 +0100
RE: Performance drop on Baytrail with 4.5-rc2 Thomas Voegtle <thomas@voegtle-clan.de> - 2016-02-03 20:30 +0100
| From | Thomas Voegtle <tv@lio96.de> |
|---|---|
| Date | 2016-02-01 21:40 +0100 |
| Subject | Performance drop on Baytrail with 4.5-rc2 |
| Message-ID | <qXtqr-8iB-39@gated-at.bofh.it> |
Hi,
I have a Celeron J1900 system (Asrock Q1900B-ITX) always running the
latest kernel.
Since running the 4.5-rc2 kernel I have a performance drop in a ffmpeg
benchmark compared to 4.4. Converting a piece of mpeg to mp4 (to
/dev/null).
4.1 made the benchmark in 74s, 4.4 in 75s and now the 4.5-rc2 in 80s.
As the benchmark is very stable in results I easily could bisest it down
to the commit:
commit e70eed2b64545ab5c9d2f4d43372d79762f1b985
Author: Philippe Longepe <philippe.longepe@intel.com>
Date: Fri Dec 4 17:40:32 2015 +0100
cpufreq: intel_pstate: Account for non C0 time
I can revert this commit on top on 4.5-rc2 (4 of 5 hunks) and then the
benchmark is down to 76s.
Was this intended to decrease energy consumption?
Thomas
[toc] | [next] | [standalone]
| From | "Longepe, Philippe" <philippe.longepe@intel.com> |
|---|---|
| Date | 2016-02-02 11:40 +0100 |
| Message-ID | <qXGxl-1h1-31@gated-at.bofh.it> |
| In reply to | #1323481 |
Hi Thomas,
Yes, this new algorithm is intented to improve the performance versus power efficiency.
Can you please provide us the exact instructions to reproduce your test ?
Best Regards,
Philippe,
________________________________________
From: Thomas Voegtle [tv@lio96.de]
Sent: Monday, February 01, 2016 9:34 PM
To: Longepe, Philippe
Cc: linux-kernel@vger.kernel.org; Gasparini, Stephane; Wysocki, Rafael J
Subject: Performance drop on Baytrail with 4.5-rc2
Hi,
I have a Celeron J1900 system (Asrock Q1900B-ITX) always running the
latest kernel.
Since running the 4.5-rc2 kernel I have a performance drop in a ffmpeg
benchmark compared to 4.4. Converting a piece of mpeg to mp4 (to
/dev/null).
4.1 made the benchmark in 74s, 4.4 in 75s and now the 4.5-rc2 in 80s.
As the benchmark is very stable in results I easily could bisest it down
to the commit:
commit e70eed2b64545ab5c9d2f4d43372d79762f1b985
Author: Philippe Longepe <philippe.longepe@intel.com>
Date: Fri Dec 4 17:40:32 2015 +0100
cpufreq: intel_pstate: Account for non C0 time
I can revert this commit on top on 4.5-rc2 (4 of 5 hunks) and then the
benchmark is down to 76s.
Was this intended to decrease energy consumption?
Thomas
---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris,
92196 Meudon Cedex, France
Registration Number: 302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
[toc] | [prev] | [next] | [standalone]
| From | Thomas Voegtle <tv@lio96.de> |
|---|---|
| Date | 2016-02-02 19:00 +0100 |
| Message-ID | <qXNpa-6yq-33@gated-at.bofh.it> |
| In reply to | #1323961 |
On Tue, 2 Feb 2016, Longepe, Philippe wrote:
> Hi Thomas,
>
> Yes, this new algorithm is intented to improve the performance versus power efficiency.
>
> Can you please provide us the exact instructions to reproduce your test ?
Hi,
my benchmark which I used is a little bit weird, so I tried to strip it
down a little.
The sample I used: https://32h.de/tv/test.vdr
I downloaded a static built version from
http://johnvansickle.com/ffmpeg/
I used the 64bit v2.8.6 binary.
(md5 of ffmpeg binary: 2989d50b4b13cb1e549955522fd7d311)
And then I did:
time -p ./ffmpeg -v 0 -y -i test.vdr -preset veryfast -vf scale=320:208
-strict -2 -f mp4 /dev/null
Very interesting: you only get a difference between 4.5-rc2-with-revert
and 4.5-rc2 with the downscaling. When you remove "-vf scale=320:208", you
get the same times on 4.5-rc2-with-revert and the unmodified 4.5-rc2. See
below:
with downscale
==============
4.5-rc2-with-revert
real 93.16
real 92.96
real 93.24
4.5-rc2
real 100.00
real 99.31
real 99.12
without "-vf scale=320:208"
===========================
4.5-rc2-with-revert
real 157.59
real 157.27
real 157.58
4.5-rc2
real 157.49
real 157.68
real 157.53
I'm confused, but I hope this helps? Do you need anything else?
Thanks in advance.
Thomas
[toc] | [prev] | [next] | [standalone]
| From | Thomas Voegtle <thomas@voegtle-clan.de> |
|---|---|
| Date | 2016-02-03 20:30 +0100 |
| Message-ID | <qYbhM-67g-9@gated-at.bofh.it> |
| In reply to | #1323481 |
On Wed, 3 Feb 2016, Longepe, Philippe wrote: > Thank you for sharing this test. I just did a quick test and yes this is > really interesting ! > > Without the scale option, the load is close to 100% for each cpus (so > the pstates are increasing up to the turbo frequency) but with > scale=320:208, the load is oscillating (close to 50% in average), so the > requested frequencies are lower (the power is also reduced). > > I have a patch (not yet submitted) that reduce the gap for such a use case. That's nice, glad the benchmark helped. > As a temporary solution, you can also switch to performance with: > > sudo su > echo performance > /sys/devices/system/cpu/cpu*/scaling_governor Yes, ok, thanks. > However, I still don't know why there is 50% of idle with the scale > option (is it using a Hw accelerator ?). Mh. I don't know. I always thought this is stuff which is not that threadable as the mpeg to mp4 conversion, or something like that? Thanks, Thomas
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web