Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
吴章金-Android_Linux_RAS_Practice
Search
Zoom.Quiet
May 27, 2013
Technology
280
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
吴章金-Android_Linux_RAS_Practice
[5.15]2013I/O大会珠海GDG直播之夜——吉大分场纪实
http://www.chinagdg.com/thread-1815-1-1.html
Zoom.Quiet
May 27, 2013
More Decks by Zoom.Quiet
See All by Zoom.Quiet
PyCon2014China-Zhuhai-high performance
zoomquiet
0
200
PyCon2014China-Zhuhai-meta programming
zoomquiet
1
180
PyCon2014China-Zhuhai-bpm.py
zoomquiet
0
160
PyCon2014China-Zhuhai-luna kv db
zoomquiet
0
150
PyCon2014China-Zhuhai-seed studio
zoomquiet
0
150
PyCon2014China-Zhuhai-Docker Registry Build By Python
zoomquiet
0
170
PyCon2014China-Zhuhai-jeff
zoomquiet
0
160
PyCon2014China-Zhuhai-pythonic front-end
zoomquiet
0
190
DevFest2014-Zhuhai-Polymer
zoomquiet
0
490
Other Decks in Technology
See All in Technology
beyond jj: config & tools ecosystem
indirect
0
310
Claude Code本って、 読む必要あるの?
oikon48
2
450
俺の仕事は AIに奪われないし、たぶんその BIも要らない
hikaruri
0
440
人間はどの意思決定を手放せるのか
kawasima
14
5.7k
あるけみー式LTスライド作成術
alchemy1115
1
210
DEFCON34-Write-up_HYCu-MYCu
daikiokazaki
0
160
Omarchy Quattro の日本語設定周り
simosako
2
170
アプリをもっと"iOSアプリっぽく"する小さな工夫 / Small Touches That Make Your App Feel More Like an iOS App
matsuji
1
840
研究開発部の紹介 / Sansan R&D Profile
sansan33
PRO
5
25k
Minecraft JavaのMODをSwiftで作る
1mash0
0
160
目の前の楽しいが人生を変える - コミュニティの螺旋の歩き方と楽しむコツ / change your life
soudai
PRO
4
560
株式会社シーエーシー エンジニア向け会社紹介資料
cac
0
57k
Featured
See All Featured
The Invisible Side of Design
smashingmag
301
52k
The Curse of the Amulet
leimatthew05
2
14k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Raft: Consensus for Rubyists
vanstee
141
7.7k
Rails Girls Zürich Keynote
gr2m
96
14k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
460
[SF Ruby Conf 2025] Rails X
palkan
2
1.4k
Why Our Code Smells
bkeepers
PRO
340
58k
Making the Leap to Tech Lead
cromwellryan
135
10k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.6k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
380
It's Worth the Effort
3n
188
29k
Transcript
. . . .. . . . .. . .
. .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . RAS 应用目标 RAS Android 实践 RAS 系统化部署 参考资料 - Android Linux RAS Practice - 吴章金
[email protected]
http://www.tinylab.org 2013 年 3 月 27 日 吴章金
[email protected]
- Android Linux RAS Practice -
. . . .. . . . .. . .
. .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . RAS 应用目标 RAS Android 实践 RAS 系统化部署 参考资料 概要 RAS 应用目标 RAS Android 实践 RAS 系统化部署 参考资料 吴章金
[email protected]
- Android Linux RAS Practice -
. . . .. . . . .. . .
. .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . RAS 应用目标 RAS Android 实践 RAS 系统化部署 参考资料 MX2 Uptime: 1037 小时 = 43 天 吴章金
[email protected]
- Android Linux RAS Practice -
. . . .. . . . .. . .
. .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . RAS 应用目标 RAS Android 实践 RAS 系统化部署 参考资料 RAS 应用目标(产品角度): Longer Uptime ▶ 用户体验 ▶ RAS 是产品的基本需求也是核心需求 ▶ 品牌价值 ▶ 提升用户口碑,扩大品牌价值 ▶ 降低成本 ▶ 降低返修率和维修费用 吴章金
[email protected]
- Android Linux RAS Practice -
. . . .. . . . .. . .
. .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . RAS 应用目标 RAS Android 实践 RAS 系统化部署 参考资料 RAS 应用目标(技术角度): Longer Uptime ▶ Reliability: 可靠性高 = 死机次数 / 持有时间 ▶ 故障(死机、重启等)少 ▶ Availability: 高可用性 = Uptime / 持有时间 ▶ 持续可用时间长 ▶ 性能高、响应快 ▶ 系统内存泄露少 ▶ 待机功耗小 ▶ Serviceability: 高可维护性 = Uptime / 开发周期 ▶ 解决问题快 ▶ 手段多 ▶ 工具齐全 吴章金
[email protected]
- Android Linux RAS Practice -
. . . .. . . . .. . .
. .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . RAS 应用目标 RAS Android 实践 RAS 系统化部署 参考资料 Android: Linux Inside Figure : Android/Linux 关系示意图 吴章金
[email protected]
- Android Linux RAS Practice -
. . . .. . . . .. . .
. .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . RAS 应用目标 RAS Android 实践 RAS 系统化部署 参考资料 Android + Linux = Android Linux Figure : Android 对 Linux 做了大量改进 吴章金
[email protected]
- Android Linux RAS Practice -
. . . .. . . . .. . .
. .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . RAS 应用目标 RAS Android 实践 RAS 系统化部署 参考资料 Android RAS Practice: RAS Revolution ▶ Error Reporting ▶ Ram Console: Panic to DRam ▶ Apanic: Panic to Flash ▶ Panic Timeout ▶ Logger + Logcat ▶ Debugger ▶ IRQ/FIQ Debugger ▶ Android Debug Bridge(adb) ▶ Ledtrig-Sleep ▶ Autotest ▶ CTS ▶ Fastboot ▶ Monkeyrunner 吴章金
[email protected]
- Android Linux RAS Practice -
. . . .. . . . .. . .
. .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . RAS 应用目标 RAS Android 实践 RAS 系统化部署 参考资料 Android RAS Practice: RAS Revolution(Cont.) ▶ Improve Performance ▶ OOM –> LowMemoryKiller ▶ Ashmem/Pmem + Binder ▶ Yaffs2 ▶ Power Management ▶ Early suspend ▶ Autosleep + Wakelocks ▶ Alarm Timer ▶ Security ▶ Paranoid network 吴章金
[email protected]
- Android Linux RAS Practice -
. . . .. . . . .. . .
. .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . RAS 应用目标 RAS Android 实践 RAS 系统化部署 参考资料 RAS 部署: 一个可靠性防护的系统性保障工程 吴章金
[email protected]
- Android Linux RAS Practice -
. . . .. . . . .. . .
. .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . RAS 应用目标 RAS Android 实践 RAS 系统化部署 参考资料 RAS 三要害: Faults, Errors and Failure ▶ Faults/缺陷 ▶ 固有的不足和瑕疵 ▶ 例如:需求不明确、设计缺陷、算法漏洞、代码不规范 ▶ Errors/错误 ▶ 运行过程中,上述缺陷引起的的偏离正确状态的各种问题 ▶ 例如:因为延迟不够导致访问寄存器出错,因为锁操作设计 缺陷导致死锁等 ▶ Failures/故障 ▶ 使用时,上述错误导致的偏离客户需求的各种系统表现 ▶ 例如:需求不完整导致系统运行不符合客户需要,系统运行 过程中资源不够而崩溃,组件不兼容,文档描述错误 吴章金
[email protected]
- Android Linux RAS Practice -
. . . .. . . . .. . .
. .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . RAS 应用目标 RAS Android 实践 RAS 系统化部署 参考资料 RAS 三要害关系(实例分析) :逐步恶化 ▶ 需求: 当余额不足 100 或者刚好为 100 时,不允许提款 ▶ 实现 if (Balance < 100) return false; else WithDrawal(); ▶ 缺陷、错误和故障 ▶ 缺陷 ▶ Bug: if (Balance < 100) ▶ 错误 ▶ 不正确的条件: when Balance = 100 ▶ 故障 ▶ 偏离需求: withDrawal() called when Balance = 100 吴章金
[email protected]
- Android Linux RAS Practice -
. . . .. . . . .. . .
. .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . RAS 应用目标 RAS Android 实践 RAS 系统化部署 参考资料 RAS 三要害防护措施 ▶ Serviceability: Fault Removal/修复缺陷 ▶ 分析和总结各种常见的故障模式 ▶ 在故障出现之后修复缺陷 ▶ 对应问题的解决过程/Debug 过程 ▶ 代价最大 ▶ Availability: Fault Tolerance/容错机制 ▶ 运行过程中即使出现错误,也能够继续提供服务 ▶ 对应软件本身的运行过程 ▶ 代价较小 ▶ Reliability: Fault Prevention/预防缺陷 ▶ 避免/检测缺陷的引入和发生 ▶ 对应产品发布之前的整个研发进程 ▶ 代价最小 吴章金
[email protected]
- Android Linux RAS Practice -
. . . .. . . . .. . .
. .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . RAS 应用目标 RAS Android 实践 RAS 系统化部署 参考资料 RAS 防护之盾 吴章金
[email protected]
- Android Linux RAS Practice -
. . . .. . . . .. . .
. .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . RAS 应用目标 RAS Android 实践 RAS 系统化部署 参考资料 RAS 防务图 吴章金
[email protected]
- Android Linux RAS Practice -
. . . .. . . . .. . .
. .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . RAS 应用目标 RAS Android 实践 RAS 系统化部署 参考资料 Android RAS 防务图 吴章金
[email protected]
- Android Linux RAS Practice -
. . . .. . . . .. . .
. .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . RAS 应用目标 RAS Android 实践 RAS 系统化部署 参考资料 参考资料 ▶ 一张图证明这手机不错、有招! (招已给完) ▶ http://bbs.meizu.cn/viewthread.php?tid=4360801&highlight= ▶ Android OS for Servers? ▶ http://elinux.org/images/8/89/Elc2011_stultz.pdf ▶ Andriod - A case study of an Embedded Linux Project ▶ http://elinux.org/images/c/ca/Gregkh-android-presentation-kernel.pdf ▶ Linux Inside Android Picture ▶ http://devsbuild.it/resources/type/presentation/inside-androids-ui ▶ Android Linux Picture ▶ http://www.androidpit.com/Ice-Cream-Sandwich-Top-15-Rumors-About-Android-4-0-Part-2 吴章金
[email protected]
- Android Linux RAS Practice -
. . . .. . . . .. . .
. .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . .. . . . .. . . . . .. . . . .. . . . . .. . . . .. . . . .. . RAS 应用目标 RAS Android 实践 RAS 系统化部署 参考资料 谢谢 吴章金
[email protected]
- Android Linux RAS Practice -