第二會議室

Hacking Syscalls and APIs - By Examples of Firefox OS

The first Firefox OS phone was shipped in 2013. It is an important milestone, but it is just a begin. There are still a lot of improvements waiting for. This talk shows you some interesting ideas of hacking Linux syscalls to improve the performance of Firefox OS. It would cover following topics,
1. Nuwa
- the template process mechanism of Firefox OS. It reduce memory usage and launch time of apps.
- hacking setjmp/longjmp and pthread.
2. zram - compress data on RAM to squeeze more space for apps.
3. mmap - we use mmap() at various places to improve data loading and reduce RSS.
4. more topics.

就在 2013,第一支 Firefox OS phone 面市了。這是一個重要的里程杯,卻不是結束,只是旅程的開始。在那之後,我們還做了許多重要的改善。在這個主題裡,將談及一些用於 Firefox OS 效能善的 Linux syscall 和 API 的神奇使用方式。主題包括
1. Nuwa
- Firefox OS 的 template process,改善 app 的開啟速度與記憶體使用量。
- setjmp/longjmp 和 pthread 相關 API 的 hacking.
2. zram - 壓縮記憶體的資料,以挪出更多記憶體。
3. mmap - 我們大量使用 mmap(),以降低記憶體使用量和資料的載入時間。
4. 其它有趣的 API。

thinker

Thinker

Engineer @ Mozilla

十幾年經驗的自由軟體開發者與使用者,享受自由開發所帶來的樂趣。

A developer and user of Open Source community for 10+ years, enjoyed by the fun of developing projects in free.