📲Digital Trends•較早收集於 8m
Google 將 AutoFDO 加入 Android 核心

#kernel-optimization#mobile-performance#os-updateandroidgoogleandroidautofdo
💡核心提升可加速數十億 Android 裝置上的裝置端 ML 推論。(38字元)
⚡ 30-Second TL;DR
有什麼變化
AutoFDO 使用真實應用程式使用資料優化核心
為什麼重要
提升行動裝置速度,有助於裝置端 AI 推論及 AI 應用程式的電池續航。
下一步行動
在 Android 測試版建置上基準測試 TensorFlow Lite 模型,以測量核心速度提升。
誰應關注:Developers & AI Engineers
關鍵要點
- •AutoFDO 使用真實應用程式使用資料優化核心
- •目標加速 Android 作業系統效能
- •改善作業系統核心層級的效率
🧠 深度解析
背景與延伸:來自公開資料,非原文內容。引用 10 個來源。
🔑 增強重點摘要
- •AutoFDO 最初於 Android 12 引入,用於優化使用者空間的原生模組,現擴展至核心,使用採樣技術取代傳統儀器化 PGO。
- •效能測試顯示在 Pixel 裝置上,針對 6.1、6.6 和 6.12 核心版本有顯著改善,透過實驗室環境的 app 爬取和啟動收集設定檔。
- •使用 ARM Embedded Trace Extension (ETE) 和 ARM Trace Buffer Extension (TRBE) 硬體功能,在 Pixel 裝置上記錄分支歷史以產生設定檔。
- •Google 持續更新設定檔至 LTS 分支,如 android16-6.12 和 android15-6.6,並計劃擴展至 android17-6.18。
- •AutoFDO 源自 Google 內部系統,已部署數百個二進位檔,提升 FDO 使用者 8 倍,並使優化二進位檔週期加倍。
🛠️ 技術深入
- •AutoFDO 為採樣式優化技術,使用 simpleperf 工具捕捉指令執行流,支援 X86、X86_64、ARM 和 ARM64 架構。
- •核心設定檔收集分兩步:記錄 ETM 資料後轉換為 AutoFDO 輸入檔,並透過 Android.bp 和 afdo_profiles.mk 整合至建置系統。
- •在核心建置中加入 afdo: true 旗標啟用;使用 LLVM 的 llvm-profdata 工具分析設定檔,afdo_summary.sh 腳本顯示最常執行函數。
- •從 Android 6.x 核心起支援 ETM,需啟用核心配置選項並新增裝置樹條目,TRBE 範例適用於 Pixel 9。
- •實驗室環境使用內部測試艦隊閃存最新核心映像,解耦設定檔收集與裝置發行週期,確保即時更新。
🔮 前景展望AI analysis grounded in cited sources
AutoFDO 將擴展至 android17-6.18 等新 GKI 版本
Google 官方部落格宣布正將更新交付至現有分支並計劃擴展支援更新的 GKI 版本。
實驗室設定檔將持續提供與真實世界資料相當的效能提升
測試確認實驗室資料在 Pixel 裝置上的效能改善與真實艦隊資料相近,支援定期刷新。
⏳ 時間線
2013
Google 發布 AutoFDO 研究論文,用於倉庫規模應用優化
2021-10
Android 12 引入 AutoFDO 支援使用者空間原生模組優化
2025-12
Android 16 QPR2 發行,為相關核心分支鋪路
2026-03
Google 宣布將 AutoFDO 整合至 Android 核心,針對 GKI 部署
📎 來源 (10)
Factual claims are grounded in the sources below. Forward-looking analysis is AI-generated interpretation.
- android-developers.googleblog.com — Boostingandroid%20performanceintroducingautofdo
- en.wikipedia.org — Android Version History
- source.android.com — Autofdo
- findarticles.com — Google Optimizes Android Kernel to Boost Speed
- android.googlesource.com — Collect Etm Data for Autofdo
- research.google.com — 45290
- research.google — Autofdo Automatic Feedback Directed Optimization for Warehouse Scale Applications
- developer.android.com — Revision History
- GitHub — Releases
- GitHub — Autofdo
📰
AI 週報
閱讀本週精選 AI 大事摘要 →
👉相關動態
AI 策展新聞聚合。所有內容版權歸原始發布者所有。
原始來源: Digital Trends ↗
每週 AI 簡報
每週一封,可隨時退訂。