[OE-core] [PATCH 1/8] python: Run pybench once for optimisation task in pgo

Robert Yang liezhi.yang at windriver.com
Thu Sep 6 08:22:53 UTC 2018



On 09/06/2018 04:17 PM, richard.purdie at linuxfoundation.org wrote:
> On Thu, 2018-09-06 at 16:15 +0800, Robert Yang wrote:
>> What's the fault if I don't run it, please ? This is very slow, here
>> are some rough thoughts to speed it up:
>>
>> 1) Make it optional to run, and default to no if there isn't any
>> faults without running it.
> 
> Without running it, python is not profile optimised and runs slower.
> 
>> 2) Use qemu-kvm to run the tests if qemu kvm has been setup (I tried
>> it, it can
>>      reduce form 12m -> 4m, saved 8 mins:
>>      * Without kvm
>>        $ bitbake python3 -ccleansstate && time bitbake python3
>>        real    12m28.070s
>>        user    0m1.316s
>>        sys     0m0.184s
>>
>>      * With kvm:
>>      real    3m53.781s
>>      user    0m1.080s
>>      sys     0m0.220s
>>
>>     We may need a oe-core/scripts/qemu-kvm-check to check strictly
>> whether kvm
>>     can be used or not.
>>
>> Please feel free to give your comments.
> 
> Ross has some patches coming in this area which should improve things a
> lot so I'd suggest we wait for those. I merged the n10 -> n1 change
> simply because it was an easy fix to same some time whilst the other
> patches a debugged.

Sounds great, thanks.

// Robert

> 
> Cheers,
> 
> Richard
> 



More information about the Openembedded-core mailing list