可以通过C&QUOT打开的最大文件数;&的fopen QUOT;在Linux [英] Maximum number of files that can be opened by c "fopen" in linux

查看:115
本文介绍了可以通过C&QUOT打开的最大文件数;&的fopen QUOT;在Linux的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是最大的文件的数量c的的fopen 可以在Linux上同时打开?

what is the maximum of number of files c fopen can open at the same time in Linux?

推荐答案

您可以通过执行看到的最大允许打开文件(内核的限制):

You can see the maximum allowed open files (kernel limit) by doing:

cat /proc/sys/fs/file-max

报价从内核文档:

在文件最大的值表示文件级的最大数量
  处理Linux内核将分配。当你得到很多
  有关运行出的文件句柄错误消息,则可能
  要增加此限制。

The value in file-max denotes the maximum number of file- handles that the Linux kernel will allocate. When you get lots of error messages about running out of file handles, you might want to increase this limit.

这篇关于可以通过C&QUOT打开的最大文件数;&的fopen QUOT;在Linux的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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