Open Bug 1903039 Opened 2 years ago Updated 1 year ago

Consider binding taskcontroller threads on heterogeneous systems

Categories

(Core :: Performance Engineering, enhancement, P3)

enhancement

Tracking

()

Tracking Status
firefox129 --- affected

People

(Reporter: denispal, Unassigned)

References

(Blocks 1 open bug)

Details

Heterogeneous systems can provide complications in Taskcontroller where in many cases important tasks from the main thread gets scheduled on an efficiency core and can lead to slow performance. Some options to explore further that can help improve this situation:

  1. Consider binding taskcontroller threads to specific cores. i.e. Idle and low priority tasks to a thread that only runs on efficiency cores, main thread tasks to a performance core, etc.
  2. Use the PerformanceHintManager API offered from Android 12 and up. This is only supported on very limited devices at the moment, such as Pixels, but is less invasive than setting the affinity mask.
Blocks: 1879907

Some results from a basic prototype show a potential 2-4% improvement in SP3.

Summary: Consider binding taskcontroller threads on heterogenous systems → Consider binding taskcontroller threads on heterogeneous systems
Component: Performance → Performance Engineering

For reference I dumped the core info for our test devices:

Google Pixel 5
 - android-hw-p5-13-0-android-aarch64-shippable-qr
 - model Pixel_5
 - cores: big 1, medium 1, little 6

Samsung Galaxy A51
 - android-hw-a51-11-0-aarch64-shippable-qr
 - model SM_A515F
 - cores: big 4, medium 0, little 4

Samsung Galaxy S21
 - android-hw-s21-13-0-android-aarch64-shippable-qr
 - model SM_G991B
 - cores: big 1, medium 3, little 4

Goole Pixel 6
 - android-hw-p6-13-0-android-aarch64-shippable-qr
 - model Pixel_6
 - cores: big 2, medium 2, little 4
See Also: → 1913797
You need to log in before you can comment on or make changes to this bug.