Closed Bug 1843538 Opened 1 year ago Closed 1 year ago

vixl::<ID_REG>::GetCpuFeatures() is slow on some Android devices

Categories

(Core :: Performance, defect)

Unspecified
Android
defect

Tracking

()

RESOLVED FIXED
118 Branch
Performance Impact low
Tracking Status
firefox117 --- wontfix
firefox118 --- fixed

People

(Reporter: jnicol, Assigned: jnicol)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sp3])

Attachments

(1 file)

https://share.firefox.dev/3XUGIyO

This shows up in speedometer profiles during baseline compilation. However, it only shows up on certain devices: eg Pixel 4, Pixel 5, Pixel 6, Pixel 7. Samsung S10, Samsung S20, Samsung A51. From the devices I've tested it appears to affect all devices running a kernel version >= 4.14, and affects no devices running an earlier kernel, though my sample size is fairly small.

Perhaps we can cache the features somewhere rather than querying them for every compilation.

Whiteboard: [sp3]

Set priority as low according to perf impact calc, but obviously we care about speedometer

Performance Impact: --- → low

On android devices repeatedly querying the CPU's features can be
expensive and frequently shows up in speedometer profiles. This patch
makes us query the features the first time they are required, then on
subsequent occaisions we reuse the cached result instead of querying
again each time.

Assignee: nobody → jnicol
Status: NEW → ASSIGNED
Pushed by jnicol@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5b2ef63ae58e Query AARCH64 CPU features once and cache result r=jseward
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: