如何加快android图像编译速度
我为 x86 构建 android ICS 映像,我使用 make installer_img -j8 ,编译需要很长时间。我使用功能强大的机器(XEON 4 核、8 线程、16GB 内存)。 我使用 CCACHE,但是当我运行编译时,我必须等待 5 分钟才能开始“编译核心”。 编译过程之后运行java,我必须再次等待。
可以看到这样的情况: make installer_img -j8
表(系统类型、目标等)= 5 分钟
编译(CCACHE)= 20 分钟
>java、perl、python 脚本 = 20 分钟
将组件集成到 installer.img = 20 分钟
我在每次编译之前都会使用 make deep-clean,并且我不想放弃这一步。
如何加快步骤 1、3 和 4 的速度?有什么想法吗?
我在 Intel Sandy Bridge E - 6 核、12 线程上对此进行了测试,但这台机器稍微加速了第 1、2 和 4 步... 编辑:我在这台机器上使用 32GB 的内存。
I build android ICS image for x86, i use make installer_img -j8 and compilation takes a very long time. I use powerfull machine (XEON 4 cores, 8 Threads, 16GB of memmory).
I use CCACHE, but when i ran compilation i must wait 5 mimutes to begun "core of compilation".
After that compilation process run java and I must wait again.
This is seen like that:
make installer_img -j8
Table (type of system, target etc.) = 5 minutes
Compilation (CCACHE) = 20 minutes
java, perl, python scripts = 20 minutes
integrate components to installer.img = 20 minutes
I use make deep-clean before every compilation and i don't want give up this step.
How to speed up steps 1, 3 and 4? Any ideas?
I tested this on Intel Sandy Bridge E - 6 cores, 12 threads, but this machine slighty accelerate 1st, 2nd and 4th step...
EDIT: I use 32GB of ram on this machine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
RAM,据我所知,在您拥有一定的CPU之后,这一切都与RAM有关。
请参阅:https://plus.google.com/113702637309752822154/posts/GWN55ZdGmxe
具体说明:
另外:
和
http://tech .slashdot.org/story/11/10/24/0016241/android-ics-will-require-16gb-ram-to-compile
两者都声明 Android ICS 将“要求” 16. 建议的 RAM 更像是 24GB。
RAM, it's all about the RAM as far as I can tell after you have a certain CPU which you have.
See: https://plus.google.com/113702637309752822154/posts/GWN55ZdGmxe
Specifically stating:
Also: http://www.tabletroms.com/index.php/2011/10/23/getting-ready-to-build-ics-from-android-source-code-heavy-duty-machines-required/
and
http://tech.slashdot.org/story/11/10/24/0016241/android-ics-will-require-16gb-ram-to-compile
Where both state Android ICS will "require" 16. Recommended RAM is more like 24GB.