Bug 12590

Summary: [2.4.2 rc2] No. of Chars/sec For Yocto Image is very Low To that of Ubuntu
Product: [Build System, Metadata & Runtime] BSPs Reporter: Ashwin Soman <ashwinx.soman>
Component: bsps-intel-corei7-64Assignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact: Ashwin Soman <ashwinx.soman>
Severity: normal    
Priority: Medium+ CC: ee.peng.yeoh, nagarajagopalx.velu, pravin.shankarx.patil, randy.macleod, ross.burton, stephano
Version: 2.4.2   
Target Milestone: 2.4.4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on: 12019    
Bug Blocks:    
Attachments:
Description Flags
log_ubuntu
none
Yocto_log none

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.