Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[macOS]打开性能模式,避免 -bash: fork: retry: Resource temporarily unavailable 问题 #38

Open
yangruihan opened this issue Feb 20, 2021 · 0 comments

Comments

@yangruihan
Copy link
Owner

打开性能模式,避免 -bash: fork: retry: Resource temporarily unavailable 问题

问题描述

在编译大型工程时遇到了如下错误

-bash: fork: retry: Resource temporarily unavailable
-bash: fork: Resource temporarily unavailable

查看最大进程限制:

$ ulimit -u
709

明显不太够用

解决方案

开启性能模式

sudo nvram boot-args="serverperfmode=1 $(nvram boot-args 2>/dev/null | cut -f 2-)"

详细参考官方文档

参考链接

相关问题

[macOS] 设置最大文件打开数量 #21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant