Bug 12590 - [2.4.2 rc2] No. of Chars/sec For Yocto Image is very Low To that of Ubuntu
Summary: [2.4.2 rc2] No. of Chars/sec For Yocto Image is very Low To that of Ubuntu
Status: RESOLVED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-intel-corei7-64 (show other bugs)
Version: 2.4.2
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.4.4
Assignee: Ross Burton
QA Contact: Ashwin Soman
URL:
Whiteboard:
Depends on: 12019
Blocks:
  Show dependency tree
 
Reported: 2018-03-08 00:21 UTC by Ashwin Soman
Modified: 2018-11-01 22:31 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
log_ubuntu (4.52 MB, image/jpeg)
2018-06-04 09:05 UTC, pravin
no flags Details
Yocto_log (4.57 MB, image/jpeg)
2018-06-04 09:06 UTC, pravin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ashwin Soman 2018-03-08 00:21:49 UTC
When x11perf -aa10text and x11perf -rgb10text
is executed for Yocto and Ubuntu For Same Platform The Perfomance for Yocto is very low when Compared to that of Ubuntu.

For 2.4.2.rc2 
-aa10text
Yocto :495000.0/sec
Ubuntu:10600000.0/sec

-rgb10text
Yocto :491000.0/sec
Ubuntu:10600000.0/sec
Comment 1 Ross Burton 2018-03-08 07:58:48 UTC
My initial hunch is that this is because we're using xf86-video-intel and Ubuntu is using xf86-video-modesettings.

Can you replicate the test on a Yocto image, and then remove the xf86-video-intel package, reboot, and run the test again.
Comment 2 California Sullivan 2018-03-09 16:11:33 UTC
I can confirm that using xf86-video-modesettings gives better results than xf86-video-intel.

With a NUC6CAYS I'm getting the following on master:

-aa10text
xf86-video-intel: ~169000/sec
xf86-video-modesettings: ~2760000/sec

-rgb10text
xf86-video-intel: ~165000/sec
xf86-video-modesettings: ~3190000/sec
Comment 3 California Sullivan 2018-03-09 16:25:43 UTC
I sent a patch for 12019 which will fix this.
Comment 4 California Sullivan 2018-03-13 16:32:37 UTC
Patch was rejected.

Instead of not shipping xf86-video-intel by default, we will instead patch xserver to change the default auto loads depending on hardware, as xf86-video-intel is superior in some cases. I'll use the patch that's in Fedora and Ubuntu to do this.
Comment 6 pravin 2018-06-04 09:05:28 UTC
Created attachment 4319 [details]
log_ubuntu
Comment 7 pravin 2018-06-04 09:06:05 UTC
Created attachment 4320 [details]
Yocto_log
Comment 8 pravin 2018-06-04 09:10:15 UTC
still got low values on yocto image as compare to ubuntu.

I have executed this test case for yocto release 2.4.3.rc2.
I have executed this test case on Minowmax Board with core-image-sato-sdk.

I have attached screenshot.
Comment 9 California Sullivan 2018-06-04 17:09:55 UTC
2.4.3 won't have this patch and I don't know if its appropriate to backport or not.

Ross?
Comment 10 Ross Burton 2018-06-07 15:18:18 UTC
I don't think that oe-core will backport the patch as it's a massive behavioural change.

However, it's trivial to apply in a bbappend in your BSP.  The relevant patch you want to apply to xserver-xorg is in this commit to oe-core:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=be7511a33deb7c7eb38760ca60564da42c79d41e

Feel free to contact me directly for more details or information.
Comment 11 Ross Burton 2018-11-01 22:31:56 UTC
Closing, this is fixed in 2.5 onwards but we won't be backporting this patch to 2.4.x because it's an invasive change.