Xgrid 与 Xcode 并行编译的配合效果如何?

发布于 2024-08-03 02:40:23 字数 137 浏览 9 评论 0原文

我对使用 Xgrid 来加速跨多台机器编译 Xcode 的想法很感兴趣……但似乎很难找到有关人们使用它的经验、任何陷阱等的任何信息。我​​没有多台 Mac我现在就可以测试它,所以我很好奇。

你尝试过吗?它对你来说效果如何?您看到过什么样的加速?

I'm intrigued by the idea of using Xgrid to speed up my Xcode compiling across multiple machines... but it seems very difficult to find any information on people's experiences with it, any gotchas, etc. I don't have multiple Macs that I can test it with right now, so I'm curious.

Have you tried it? How well has it worked for you? What kind of speedups have you seen?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

⒈起吃苦の倖褔 2024-08-10 02:40:23

我使用它有一段时间了,但对于中等规模的项目(在 4 核 Mac Pro 上构建需要不到 5 分钟的时间),通常没有获得很好的结果。最值得注意的问题是,当我设置可用机器的 Bonjour 发现时,当前机器(即我从中开始构建的机器)没有被包含为可用构建机器之一。由于我通常使用 4 核 Mac Pro 并尝试利用较小的机器(Macbook Pro、Mac Mini 等),因此它极大地减慢了我的构建时间,因为最大的机器没有帮助。解决方案是手动添加所有机器,但是如果任何机器不在线(这对我来说很常见),我就会遇到一些速度减慢的情况。

最令人沮丧的是,当我上次检查时,iPhone 项目根本无法在 Xgrid 上编译(尚未检查 3.0 SDK 时间范围,因此这可能已更改)。更糟糕的是,请求分布式编译实际上会导致错误,而不仅仅是被忽略。所以我在 Mac 和 iPhone 之间切换时不得不来回切换我的配置。我经常这样做,所以这成为了一个严重的头痛问题。

最后,这对我来说麻烦多了,尤其是因为我的主机器比所有其他机器大得多,而且我的大多数项目的总体构建时间在 Mac Pro 上都很短。如果我的主要机器是笔记本电脑,我可能会有不同的感觉。

I used it for a while, but generally didn't get very good results for moderate sized projects (things that take less than 5 minutes to build on a 4-core Mac Pro). The most noteworthy gotcha is that when I set up Bonjour discovery of available machines, the current machine (i.e. the one I'm kicking off the build from), didn't get included as one of the available build machines. Since I generally sit at a 4-core Mac Pro and was trying to leverage smaller boxes (Macbook Pro, Mac Mini, that sort of thing), it dramatically slowed my build time because the biggest box wasn't helping. The solution was to manually add all the machines, but then I ran into some slow downs if any of the machines weren't online (which was common for me).

Most frustrating was that iPhone projects couldn't be compiled in on Xgrid at all when I last checked (haven't checked in the 3.0 SDK time frame, so this may have changed). Worse, requesting distributed compilation actually caused errors, rather than just being ignored. So I had to switch my configuration back and forth when switching between Mac and iPhone. I do this a lot, so this became a serious headache.

In the end it was much more trouble than it was worth for me, particularly because my primary machine is so much bigger than all the other machines, and the overall build time for most of my projects is small on a Mac Pro. I might feel different if my primary machine were a laptop.

握住你手 2024-08-10 02:40:23

我发现它在运行相当长的任务(大约 10 分钟)时效果很好。我已经设置了 4 台机器的 XGrid 来对电影进行转码。

不过,当我使用 XGrid 框架时,我在 XCode 4 中遇到了很多问题。当您启用垃圾收集器时,请勿尝试让它工作!

I've found that it works quite well when running fairly long tasks (around 10 minutes). I've set up an XGrid of 4 machines to transcode movies.

I ran into a lot of problems in XCode 4 when using the XGrid framework though. Do not attempt to try and get it working when you've enabled the garbage collector!

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