fork:重试:资源暂时不可用 [英] fork: retry: Resource temporarily unavailable

查看:414
本文介绍了fork:重试:资源暂时不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在计算机上安装Intel MPI Benchmark,但出现此错误:

I tried installing Intel MPI Benchmark on my computer and I got this error:

fork: retry: Resource temporarily unavailable

然后,当我运行lstop命令时,我再次收到此错误.

Then I received this error again when I ran ls and top command.

是什么原因导致此错误?

What is causing this error?

我的机器的配置:

Dell precision T7500
Scientific Linux release 6.2 (Carbon)

推荐答案

这通常是由文件描述符用尽引起的.

This is commonly caused by running out of file descriptors.

有系统总文件描述符限制,您可以从命令中得到什么:

There is the systems total file descriptor limit, what do you get from the command:

sysctl fs.file-nr

这将返回文件描述符的数量:

This returns counts of file descriptors:

<in_use> <unused_but_allocated> <maximum>

要了解用户文件描述符限制是多少,请运行以下命令:

To find out what a users file descriptor limit is run the commands:

sudo su - <username>
ulimit -Hn

要查找用户正在使用多少个文​​件描述符,请运行以下命令:

To find out how many file descriptors are in use by a user run the command:

sudo lsof -u <username> 2>/dev/null | wc -l

因此,如果您现在遇到系统文件描述符限制问题,则需要编辑/etc/sysctl.conf文件并添加或修改它已经存在的fs.file-max行并将其设置为一个足够大的值,可以处理所需的文件描述符数量并重新启动.

So now if you are having a system file descriptor limit issue you will need to edit your /etc/sysctl.conf file and add, or modify it it already exists, a line with fs.file-max and set it to a value large enough to deal with the number of file descriptors you need and reboot.

fs.file-max = 204708

这篇关于fork:重试:资源暂时不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆