Skip to content

halium-generic-adaptation-build-tools: use main branch

Issue

Fix

I copied /pasted the content of the build.sh and .gitlab ci.yaml files from the official documention to the xiaomi-surya repository.
I specified our halium version in deviceinfo file.

Tests

I built the images and flashed them on my phone with fastboot flash.

  • The xenial development atifact is no more built.
  • There is a ~25% gain at endurance level.
  • The reboot time is shorter.
  • It seems to me that applications are getting slightly faster and the the device heats a little less.
  • No performance loss.
  • Stability is good. No system/application crash during tests.
  • Later, we will have the possibility of using LLVM to build the kernel.

Battery lifetime : 7-hour gain (greater than 25%)

before fix : 27 hours after fix : 34 hours
image image

Reboot time

before fix : random. often greater than 1 min after fix : less than 20 sec

Performance : no loss

  • WebGL : no loss
before fix : 36 fps after fix : 37 fps
image image
  • CPU : no loss
    • before fix
      sysbench --test=cpu --num-threads=2 --cpu-max-prime=20000 run
          1985 events per second
      sysbench --test=cpu --num-threads=8 --cpu-max-prime=20000 run
          4010 events per second
      
      sysbench --test=memory --num-threads=4 run
          Total operations: 47619005 (4759595.74 per second)
          46502.93 MiB transferred (4648.04 MiB/sec)
      
      sysbench --test=mutex --num-threads=64 run
          total time: 4.8462s
    • after fix
      sysbench --test=cpu --num-threads=2 --cpu-max-prime=20000 run
          1989 events per second
      sysbench --test=cpu --num-threads=8 --cpu-max-prime=20000 run
          4012 events per second
      
      sysbench --test=memory --num-threads=4 run
          Total operations: 47641133 (4763089.31 per second)
          46524.54 MiB transferred (4651.45 MiB/sec)
      
      sysbench --test=mutex --num-threads=64 run
          total time: 4.8909s
Edited by Eric HEINTZMANN

Merge request reports