如何加快android图像编译速度

发布于 2024-12-25 16:36:19 字数 570 浏览 3 评论 0原文

我为 x86 构建 android ICS 映像,我使用 make installer_img -j8 ,编译需要很长时间。我使用功能强大的机器(XEON 4 核、8 线程、16GB 内存)。 我使用 CCACHE,但是当我运行编译时,我必须等待 5 分钟才能开始“编译核心”。 编译过程之后运行java,我必须再次等待。

可以看到这样的情况: make installer_img -j8

  1. 表(系统类型、目标等)= 5 分钟

  2. 编译(CCACHE)= 20 分钟

    >
  3. java、perl、python 脚本 = 20 分钟

  4. 将组件集成到 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

  1. Table (type of system, target etc.) = 5 minutes

  2. Compilation (CCACHE) = 20 minutes

  3. java, perl, python scripts = 20 minutes

  4. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

地狱即天堂 2025-01-01 16:36:19

RAM,据我所知,在您拥有一定的CPU之后,这一切都与RAM有关。

请参阅:https://plus.google.com/113702637309752822154/posts/GWN55ZdGmxe

具体说明:

加速 ICS 构建

另外:

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:

Speeds up ICS builds

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文